PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Multiple Textures Per Model

Hello,

I need to display a model that has more than one texture. Do you have some example code to do this please?

I am just using the code below from Animate3D, but with my own multi-texture model.

display->BindTexture(&turtle;_tex);
display->SetShading(rendertype_shading[rendertype]);
display->Render(&turtle;);

Thanks,
Lance
Hi Lance,

When using multiple textures you need to split your model into seperate meshes. Each mesh will have its own texture.

You can also big texture map containing all small images to texture the model. For an example, take a look at the turtle texture.