Set Material To SubMesh

Kohedlo

25-01-2010 23:53:42

I not understand - where in MOgre member for assigning materials for SubMeshes.How to save SUBmesh with new assigned material :?:

I trued - it works , but when restart my program and load mesh - load old materials(

smiley80

26-01-2010 14:49:49

The MeshSerializer can save changed meshes:

//.. assign new materials to submeshes

using (MeshSerializer ms = new MeshSerializer())
{
ms.ExportMesh(myMesh, FilenameOfTheNewMesh);
}

Kohedlo

26-01-2010 16:34:34

Thanks! Its works.My deals go as on oil.