Computer Science Canada Need professional help... |
Author: | Homer_simpson [ 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:
i can't seem to figure it out |
Author: | Catalyst [ Sat Mar 06, 2004 11:33 pm ] | ||||
Post subject: | |||||
shouldnt this
be this
|
Author: | Homer_simpson [ Sun Mar 07, 2004 12:52 am ] |
Post subject: | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAHAHAHAHAHAAAAA!!!!! Man i'm a fvckin stoner!!! What a stupid mistake! Man that deserves bits! +lotsa bits! thx a lot man it works perfectly fine now. would have never figured that without yer help! LOL btw i made a little graphic thingy in assembly for pascal... pm me if u want it. |
Author: | da_foz [ Mon Mar 08, 2004 4:25 pm ] |
Post subject: | |
Subscripts are the devil. So hard to find the mistakes. |
Author: | wtd [ Mon Mar 08, 2004 4:42 pm ] |
Post subject: | |
da_foz wrote: Subscripts are the devil. So hard to find the mistakes.
While I don't necessarily agree with that, you should attempt to refactor your code. There should never be that much code in one function. |
Author: | Homer_simpson [ Mon Mar 08, 2004 6:09 pm ] |
Post subject: | |
Maaaan!!! the thread is already over! shut the hell up! |