Page 1 of 1

Question about AddSubMesh()

Posted: Thu Apr 20, 2023 2:41 pm
by Psychophanta
¿Can a submesh take advantage from those vertex already created on its mesh mom?
Instead to create own submeshed vertexes, i mean. :?:

If yes, HOW???
There is almost impossible to manage concrete indexes of vertex :!:

Re: Question about AddSubMesh()

Posted: Thu Apr 20, 2023 7:34 pm
by benubi
I don't know if, but you would have to share the vertices over the multiple sub-meshes (one vertex array for all sub-meshes). I don't know if Ogre makes a copy of that array or just sets a pointer to it, when you call SetMeshData().

Re: Question about AddSubMesh()

Posted: Sun Apr 23, 2023 9:42 am
by pf shadoko
no
it would be anyway rarely pertirnent (even uv, even normal...)
on the other hand, ogre allows to define common vertices for all submeshes, but PB does not integrate this feature