D
D
DisaDisa2013-01-26 13:19:29
Programming
DisaDisa, 2013-01-26 13:19:29

Ogre 3d model part selection and control

Good afternoon.

The task is to select a submesh or subentity with the mouse + get the name of the model section (just like in the editor (mb max, maya or blender)) + the ability to change the position of these parts.

I've been scratching my head for a week now on how to do this. I asked on the forums, but something is wrong or I don’t understand something.

The selection of a model site is done using raycast at the polygon level + checking the presence of these polygons in this particular subMesh.

I don’t quite understand how the getSubMeshNameMap() method works. From my model it returns an array of 15 zeros, while getNumSubEntities() returns the correct value of 6 objects. The material is the same everywhere.

To change the position and scale of subEntity (subMesh) do you still need to somehow bind them through childNode? If so, how and what to cast?

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question