Author Topic: Modifying the mesh during drawing process  (Read 2718 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11965
    • View Profile
    • http://www.jpct.net
Re: Modifying the mesh during drawing process
« Reply #15 on: February 28, 2012, 07:37:37 am »
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.
   

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Modifying the mesh during drawing process
« Reply #16 on: February 28, 2012, 10:39:04 am »
Yes, I know about serialized files, but when you modify mesh during the game, normals have to be recalculated...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11965
    • View Profile
    • http://www.jpct.net
Re: Modifying the mesh during drawing process
« Reply #17 on: February 28, 2012, 03:03:04 pm »
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.