Subentity export problem

a__et_

11-02-2007 20:40:39

Hello

I'm looking for a way to export my mesh from 3dmax to one mesh with multiple subentities. Currently I've only one mesh in 3dmax but with different material-ids for certain parts over the entire mesh. But this exports to single mesh with only one subentity. When I detach the different parts by had they are exported to multiple meshes. Can I export them to one single mesh with different subentities - preferable by material id?

thank you!

Lioric

12-02-2007 16:10:26

Yes you can export a single mesh with several subentities, use a Multi/Sub-Object material (each sub material will provide the name for the subentity, based on the material id) with your object mesh

Then in your application you can use the sub-material name to access the mesh subentities

If you assign a single material to different parts of your object, even if they have different mateials ids, those parts will be optimized by the mesh compiler and will be produced as a single mesh/submesh

Submeshes are created based on the material, if the material is different, a submesh is created