Referable children/surface of a model

Blitz3D Forums/Blitz3D Beginners Area/Referable children/surface of a model

Leto(Posted 2006) [#1]
Hi all, been getting into 3D after a long time solely 2D.

I have a simple cube-like model for use in an in-game wall. The entire model is UV textured using just two squares in one texture file - one square for model's top face, 2nd square for all other sides.

What I want is to be able to reference the top face to replace its texture (leaving all the other faces' textures alone).

Have been using Wings3D and tried separating the top as its own "geometry". So there I get two names "wall" and "top". Then exported to .3DS --> Milkshape --> .B3D

When I load the model in Blitz3D it appears to have no children or referable names.

I may not even be able to do what I want?


Stevie G(Posted 2006) [#2]
Have you tried using loadanimmesh rather than loadmesh?


Beaker(Posted 2006) [#3]
You could always 'find' the surface that has the texture you want to replace.
Use:
GetSurfaceBrush(surface)
GetBrushTexture(brush)
TextureName(texture)

NB. remember to free the 'found' brush and texture once you have the info you want.


Leto(Posted 2006) [#4]
Thanks for the tips, Stevie and Beaker. I was just using LoadMesh. I'll try it out tonight!


Leto(Posted 2006) [#5]
Thanks again - using LoadAnimMesh() now allows me to find the model's children surfaces and then I can re-texture the "top" with PaintSurface!