Texture Packs

From Bridge Duel Wiki
Revision as of 13:00, 12 November 2023 by 127.0.0.1 (talk)

Texture packs allow players to customize the look of their items by uploading models to Roblox and importing them into the game. From Bridge Duel, they can export or import a texture pack as JSON, 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

This guide assumes you are using paint.net and 3D Builder.


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

Fix the black outline on your items (optional)

For each of your textures that you have opened, select it and press CTRL + R. A "Resize" window should pop up.

Select the "Nearest Neighbor" resampling mode, and resize the texture to 1000x1000. This is to prevent Roblox from blurring our items.

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


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


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


Open your resized textures and paint all of them white. Remember to turn off anti-aliasing for the paint bucket tool. Save them to the "whitened" folder. Now you should have your normal textures in one folder, and the white textures in another.


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


Take the non-whitened textures, then select 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 two folders now. They will be called "whitened" and "normal."


For each of your textures that you have opened, select it and press CTRL + R. A "Resize" window should pop up.

Select the "Nearest Neighbor" resampling mode, and resize the texture to 1024x1024. This is to prevent Roblox from blurring our items. Save the textures.

Importing 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 select "Add." It should show up with quite a bit of options, but we're going to press on "Load Image." Select and open one of your whitened textures.


Set the "Levels" slider to the lowest setting, and press "Import Image."


When importing tilted textures like swords, pickaxes and bows, be sure to rotate them correctly.


When you have rotated the item correctly, press CTRL + S to save. 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 file, 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 open a template place (Baseplate, Classic Baseplate, etc.).


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 a model, then press the ellipsis. Press "Open Asset Details".

If you have BetterRoblox installed, 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 texture IDs. For the sake of this tutorial, I will be importing a sword I made.

After getting the sword mesh ID, you will enter it 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 have to import all of the mesh and texture IDs one by one. After that, your texture pack is finished! You can share it with others by pressing the "Export to JSON" button.