vertex normal calculation

BlitzMax Forums/OpenGL Module/vertex normal calculation

Bremer(Posted 2006) [#1]
I am having problems understanding how to convert the math that I find on how to calculate vertex normals. Does anyone have a link to some working code, or something thats easy to follow for the math challenged :)

I am working on some 3D stuff in opengl, and I have most of what I want working, but getting the lights to work will require setting vertex normals, and thats where I get stuck.


Chris C(Posted 2006) [#2]
http://www.backyardproductions.org/tutorials/tutorial1.asp


Bremer(Posted 2006) [#3]
Thanks, I will take a look at it tommorow after work.


Bremer(Posted 2006) [#4]
Hi Chris, thanks for the link it helped a lot. I got face normals working now and I am going to try and work it into vertex normals so that I can do smoothshaded faces as well.