Multiple Surfaces on a mesh

Blitz3D Forums/Blitz3D Programming/Multiple Surfaces on a mesh

You need to give each surface a unique ID in your modeling package. Then use the FindChild function in blitz to identify the surface.

Example.
Surface1 = "SURF1"
Surface2 = "SURF2"

tex = LoadTexture("mytex.bmp")
mymesh = LoadMesh("mymesh.b3d")
surf1 = FindChild(mymesh,"SURF1")
surf2 = FindChild(mymesh,"SURF2")
EntityTexture surf2,tex
EntityAlpha surf1,0.5 ; for example