Applying different texture to b3d file

Blitz3D Forums/Blitz3D Programming/Applying different texture to b3d file

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

I have a quick question that I hope somebody could shed some light on. I have a b3d file, exported via b3d pipeline from max, and a texture. I load the mesh in Blitz, and it displays fine and with texture. Problem is, when I then load a different texture and try to apply it to the model using the EntityTexture command, nothing happens. Any idea why this might be happening - is there a particular setting in b3d pipeline to watch out for?

Thanks in advance for any help.
Patrick


PowerPC603(Posted 2005) [#2]
Do you have the option "Add scene root" checked while exporting from Max?

When you apply your texture via code, then you will apply the texture to that Scene root, which is a pivot.
I think you need to find all children and apply the texture to them (if you're loading your model with LoadAnimMesh).


Midnight(Posted 2005) [#3]
Thanks PowerPC604 - applying the texture to all children as well did the trick.

Best wishes, and thanks again!