Texture Packs

From Bridge Duel Wiki
Revision as of 17:45, 11 November 2023 by Breter98 (talk | contribs)

Texture packs allow players to customize the look of their items, by uploading Models to Roblox and importing it into the game. From Bridge Duel, they can export or import a texture pack as a JSON file, allowing them to share their creations easily.

Guide (Windows Only)

Recommended Programs

paint.net

paint.net 1px expansion plugin

3D Builder

BetterRoblox

Required Programs

Roblox Studio

Preparing the textures to be exported

First of all, you will need to open all of your textures with paint.net.

(optional) Fix the black outline in your items

When you are done, press CTRL+R on one of your textures in paint.net. A "Resize" window should pop up.

Resize the texture to 1000x1000. Do this for all of the remaining ones! This is to prevent Roblox from blurring our items.

When you are done, press CTRL+SHIFT+R. This should bring up a popup window called "Canvas Size". Set the canvas size to 1024x1024.

Making the canvas bigger just made some white outlines around your texture, you will need to use the selection wand or the square selection tool to remove it. After you're done, save the files as a .png (paint.net will try to make it .pdn). I suggest making a seperate folder for the texture pack to keep it more organized.

You will make 2 folders inside of the pack folder now. One of them will be called "whitened", the other will be called "normal".

Open your resized textures and paint all of them white. Remember to turn off anti-aliasing in the paint bucket tool. Save them into the "whitened" folder.

Install the 1px expansion paint.net plugin and move it to C:\Program Files\paint.net\Effects (restart paint.net when ur done)

Once you painted all of the textures white, it's time to move on to the next step. Take the non-whitened textures, then go into Effects>Distort>1px Expansion in paint.net. Repeat this 4 more times.

When you are done, save all of the textures into the "normal" folder.

Go on without fixing the black outlines (don't do this if you fixed them in the last step)

We will make 2 folders now. They will be called "whitened" and "normal".

press CTRL+R on one of your textures in paint.net. A "Resize" window should pop up.

Resize the texture to 1024x1024. Do this for all of the remaining ones! This is to prevent Roblox from blurring our items.

Save these textures in a folder somewhere.

Importing all the textures into 3D Builder

Open 3D Builder and press "New Scene". You should see a checkered baseplate and some topbar items.

One of those topbar items is called "Insert". Press it then press "Add". It should show up quite a bit of options from there, but we're going to press on "Load Image".

Set "Levels" to the lowest possible you can go.

When you pressed it, a prompt should show up. Now import one of your whitened textures. When importing tilted textures (swords, pickaxes, bows) be sure to tilt them correctly.

When you have tilted the item correctly, press the save icon in the top right. 3D Builder will try to save it as .3mf, but replace it with .obj.

Save the .obj and .mtl file into the "normal" folder. When you are asked to save the .png, press "Cancel".

Repeat this with all of the textures.

Well done! You have now exported all of the needed textures into .objs!

Importing the .obj files into Roblox Studio

Open Roblox Studio and make a Classic Baseplate.

Find the "Import 3D" button and press it. It's located around the top of the screen. (Make sure you are in the Home or Avatar tab).

Now you need to import all of the .obj files one-by-one.

When you are done, you can close Studio!

Getting the Mesh and Texture IDs

Go to your Roblox Dashboard. You should see the models you've uploaded there.

Hover over the first one, then press the three dots. Press "Open Asset Details".

If you installed BetterRoblox, you should see the explorer icon in the top right.

Press it, then press "default".

Under "Appearance", you should see "MeshId" and "TextureId".

Importing the textures into Bridge Duel

Now, join Bridge Duel. It's time to import the textures!

Go into Settings>Textures and Meshes. This is the texture pack editor.

You will want to get one of your items Mesh and TextureID. For the sake of this tutorial, I will be importing a sword I made.

After getting the swords meshID, you will enter it right into the "SwordMesh" box in the Textures and Meshes menu.

The model may look huge! This is because the base Bridge Duel meshes are much smaller than what we exported. For this reason i made this JSON you can import to fix the sizes.

You will import all of the mesh and texture IDs one by one, and after that your masterpiece is finished! You can share it with others by pressing the "Export to JSON" button.