Posted: Sat Mar 06, 2004 9:47 pm Post subject: Need professional help...
First of all no spamming i'll delete yer spams and take bits away
here's the situation:
i got normals for my polygons... and as we all know normals are vectors...
then i got the normalized vector from my light source to my vector.
after normalizing the light source vectori use the dotproduct to calculate the angle in between the 2 angles and the answers comes in radians...
but sometimes for some reason the answer is bigger than one... so when i pass it through arcsin i get errors anyone know why? here's my code: