Cloned meshes make useless edge lists.

Minor issues with the Ogre API that can be trivial to fix
User avatar
mkultra333
Gold Sponsor
Gold Sponsor
Posts: 1894
Joined: Sun Mar 08, 2009 5:25 am
x 116

Cloned meshes make useless edge lists.

Post by mkultra333 »

In 1.7.3, it appears that if you clone a loaded mesh, the clone has pMesh->mAutoBuildEdgeLists = true even though the original has pMesh->mAutoBuildEdgeLists = false.

That might mean that edge lists will be created for the mesh automatically even if shadows aren't active or shadow maps are being used. The clone should probably copy the mAutoBuildEdgeLists of the original.

A more complete description in this thread, http://www.ogre3d.org/forums/viewtopic. ... 07#p454607
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.
User avatar
duststorm
Minaton
Posts: 921
Joined: Sat Jul 31, 2010 6:29 pm
Location: Belgium
x 80

Re: Cloned meshes make useless edge lists.

Post by duststorm »

That indeed sounds reasonable.
At least I see no reason for it to work this way, probably just overlooked.
I don't think it would hurt to create a ticket for it.

I assume this solves the issues you were having here: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=69602 ?
Developer @ MakeHuman.org
User avatar
mkultra333
Gold Sponsor
Gold Sponsor
Posts: 1894
Joined: Sun Mar 08, 2009 5:25 am
x 116

Re: Cloned meshes make useless edge lists.

Post by mkultra333 »

Ticket created.

Yeah, it explained why rendering was hanging, the debug build was spending ages building unneeded edge lists. Unfortunately I don't think my workaround (pEnt->setCastShadows(false)) will work for people using Ogre's in built shadow mapping.
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.