Question about AddSubMesh()

Everything related to 3D programming
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Question about AddSubMesh()

Post 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 :!:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
benubi
Enthusiast
Enthusiast
Posts: 220
Joined: Tue Mar 29, 2005 4:01 pm

Re: Question about AddSubMesh()

Post 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().
User avatar
pf shadoko
Enthusiast
Enthusiast
Posts: 386
Joined: Thu Jul 09, 2015 9:07 am

Re: Question about AddSubMesh()

Post 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
Post Reply