Multiple textures for meshes

Blitz3D Forums/Blitz3D Beginners Area/Multiple textures for meshes

Paulo(Posted 2005) [#1]
Hi all,

Say I make a mesh in Milkshape that has 3 textures. Export to B3D and then load in to blitz with LoadMesh. As long as the textures are in the same DIR as the mesh, they all load up, without LoadTexture, so I assume B3D retains the texture names and not paths. How would I use LoadTexture, if I wanted to swap just one of them? Because it would seem I can only load/apply one texture to my mesh at a time, unless I am using TextureBlend, which is not what Im trying to do at the moment. But I might want to use Textureblend on say one of the 3 textures - ulimately. Any insight in to this would be greatly appreciated.

Cheers,

Paulo


GfK(Posted 2005) [#2]
http://www.blitzbasic.com/b3ddocs/command.php?name=EntityTexture&ref=3d_a-z

EntityTexture entity,texture[,frame][,index]
Parameters:
entity - entity handle
texture - texture handle
frame (optional) - frame of texture. Defaults to 0.
index (optional) - index number of texture. Should be in the range to 0-7. Defaults to 0.



Paulo(Posted 2005) [#3]
Thanks GFK, I didnt get what the Index referred to, but I see now!