Modifying the mesh during drawing process

Started by Thomas., February 25, 2012, 01:00:13 AM

Previous topic - Next topic

EgonOlsen

If you are doing this for multiple meshes, you could do it yourself in multiple thread. But i think that the overhead introduced by the threads will eat up the potential performance gain. Can't you simply you serialized objects? They don't need any normals calculated if you already did it before serializing them.
   

Thomas.

Yes, I know about serialized files, but when you modify mesh during the game, normals have to be recalculated...

EgonOlsen

Not necessarily...you can either ignore it and use the same normals as before (if that's an option) or you can recalculate the normals in your controller. But i agree that this, depending on the mesh, might not be the simplest thing to do.