Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualVincent_M

Posted 10 January 2013 - 04:33 PM

I'm rewriting my model loader to support COLLADA, and I'm not sure how to handle vertex normals for lighting. I have all the shades and calculations working, but if I wanted to turn lighting off, I feel that it's wasting memory if I allocate and setup normals regardless. Especially if I'm updating my normals when lighting is OFF.

 

What are your opinions?


#1Vincent_M

Posted 10 January 2013 - 04:26 PM

I'm rewriting my model loader to support COLLADA, and I'm not sure how to handle lighting. I'd like to set it up where I can turn lighting on and off, but the normals data need to be embedded into the vertex data for efficiency. Should I just generate normals regardless of whether lighting is on or off, and then I'll have them? It'd be wasteful RAM-wise and possibly on the CPU though.

 

What are your opinions?


PARTNERS