Jump to content

[SOLVED] addMeshSurface static mesh issue


photo

Recommended Posts

Posted (edited)

When merging surfaces via addMeshSurface for standard mesh, it breaks mesh. For skinned mesh everything is OK. Just merge 2. and 4. surface in attached file and meshe will break.

SM_BaseWallArchLarge6m_merged.mesh

Edited by demostenes
Posted

There is the code:

	// not working
	ObjectMeshStatic oldStatic = new ObjectMeshStatic("SM_BaseWallArchLarge6m_merged.mesh", 1);
	ObjectMeshStatic newStatic = new ObjectMeshStatic("SM_BaseWallArchLarge6m_merged.mesh", 1);

	newStatic.addMeshSurface(1, oldStatic, 3);

	newStatic.saveMesh("result_static.mesh");

	// working
	ObjectMeshSkinned oldSkinned = new ObjectMeshSkinned("SM_BaseWallArchLarge6m_merged.mesh", 1);
	ObjectMeshSkinned newSkinned = new ObjectMeshSkinned("SM_BaseWallArchLarge6m_merged.mesh", 1);

	newSkinned.addMeshSurface(1, oldSkinned, 3);

	newSkinned.saveMesh("result_skinned.mesh");

result_skinned.mesh have not artefact, result_static.mesh have artefact.

  • 3 weeks later...
  • silent changed the title to [SOLVED] addMeshSurface static mesh issue
  • 1 month later...
×
×
  • Create New...