Multisurfaced AddMesh()

Blitz3D Forums/Blitz3D Beginners Area/Multisurfaced AddMesh()

Shifty Geezer(Posted 2005) [#1]
Are there any tutes/tips for combining two separate textured models into one mesh? Ideally I want an untextured blitz cube and a textured plane, to be combined into a single mesh. The texture will be animated. I believe this can be accomplished with multiple surfaces but I don't know how to use LoadMesh() with surfaces and combine them.


Ross C(Posted 2005) [#2]
When you do add mesh, why don't you note down the UV co-ords and tranfer them across?


jfk EO-11110(Posted 2005) [#3]
You don't have to worry about combining Surfaces. The AddMEsh Command will do this for you. All you have to do is make sure you will use only Mesh Modifiers on the meshes until you AddMEsh them together, don't use the Entity Modifiers, eg:
PositionMEsh inststead of PositionEntity or
RotateMesh instead of RotateEntity or
PaintMesh instead of EntityTexture
etc.

AddMEsh will automaticly detect redundant materials and reuse the first of them. So in the end you have removed double materials and one single mesh that contains all neccessary surfaces.

Typicly you would first create an empty mesh:
mesh=CreateMesh()
then add all Meshes you want using AddMesh, then delete the original meshes.


Shifty Geezer(Posted 2005) [#4]
PaintMesh eh? I'll give it a go...


Shifty Geezer(Posted 2005) [#5]
Perfect solution. Thanks jfk!