damn I used this in somthing for glancing collisions in somthing and I have forgot how i got it
from memory you can get the normal of the surface from a cross product of a tri's vert's
i'm on my laptop at the moment, but theres plenty of stuff to get you going for calculating stuff like that on the internet
I *think* the chase sample (on my site) might have some normal code in the vector lib extract that is included with it, so have a look!
Its not always the nightmare it might seem, look also on opengl lighting that relies on surface normals...
from memory you can get the normal of the surface from a cross product of a tri's vert's
i'm on my laptop at the moment, but theres plenty of stuff to get you going for calculating stuff like that on the internet
I *think* the chase sample (on my site) might have some normal code in the vector lib extract that is included with it, so have a look!
Its not always the nightmare it might seem, look also on opengl lighting that relies on surface normals...