How to export models with multiple actors by DorfDork - dbc60/Render96Wiki GitHub Wiki

Tools Needed:

THIS TUTORIAL WORKS FOR BOTH DIFFERENT MODELS AND/OR DIFFERENT TEXTURES.

For this example we are doing a texture swap Super Show 64 Bob-ombs

Section 1

SETTING UP YOUR MODEL TO BE EXPORTED

Have a model already textured and ready to be ported to the game

MAKE SURE YOUR TEXTURES HAVE VERY CLEAR AND EASY TO READ NAMES. At least something you can remember which part has which texture.

We are going to be replacing the bob_metal_base texture for the bob-omb buddy actor.

After everything is done export your model.

Section 2

EDITING THE MODEL.INC.C FILE

Go to the Actors folder that corresponds to the model you exported (In this case it would be bobomb).

Open the model.inc.c file with notepad++

At the very top you will see the list of textures the model uses. Since the exported model didn't have the texture for the buddy actor, we have to add it in manually.

The texture should be placed in the same folder you're in.

Scroll down until you see the Gfx code blocks that renders textures. Clone a texture's Gfx code block and update it with the texture you implemented before.

Scroll down to the very bottom. Again close and edit the code blocks that show the material that you will be replacing for the secondary actor. Make sure to remember these code block names as we need them for the next section.

Section 3

EDITING THE GEO_HEADER.H FILE

You want to insert the names of the code blocks into the file with "extern" in the front. This is so the geo.inc.c file is able to use the texture you implemented.

Section 4

EDITING THE GEO.INC.C FILE

You can see that inside this file it has all the calls that set the model up to be used in game.

We want to clone the code block in this file and repurpose it like how the picture entails. You can see that we used the code blocks that were referenced in the geo_header.h file to update the textures used by the bob-omb buddy.

If everything goes well compile your game and check the model out!