How to make a clone submesh be a instance?

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


yubinyyy
Gnoblar
Posts: 3
Joined: Thu Oct 31, 2024 2:26 pm

How to make a clone submesh be a instance?

Post by yubinyyy »

Hello, everyone!
I have a v1 mesh.v1 mesh will be convert to v2 mesh. Finally it will be a Item.
If I clone a submesh from v1mesh(or v2),What is a good way to make clone submesh be a instance and give is a offset?

Code: Select all

v1Mesh->getSubMesh(submeshInfo.mSubMeshIndex)->clone(newname,v1Mesh.get());