Change texture on model

BlitzMax Modules Forums/MiniB3D/Change texture on model

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I found PaintMesh, and it takes 2 arguments. One brush and one mesh. But how do I replace only one of the textures on the mesh with the brush?

As a simple example, I want to load a mesh that looks like a picture frame. One texture is the nice golden frame, the other one is a placeholder inside the frame. Then when the game starts, I want to change the placeholder with a new texture, keeping the golden frame.

As far as I can see, the PaintMesh function would replace both textures.

Edit:
After some more digging around in the online B3d manual, I found the PaintSurface function. Is there a way to find the surface of a mesh using groupnames from the milkshape files?