Computer Science Canada Help with divide by zero error in 3d engine. |
Author: | Jonny Tight Lips [ Wed Jan 05, 2005 10:57 pm ] |
Post subject: | Help with divide by zero error in 3d engine. |
Well as soon as you run it you will see that there is a divide by zero error. I have tryed everything I can think of to fix it and have had no luck. It seems to occer when the image is in the middle of the screen. Yes I could move the object from the middle of the screen but then there is other issues. If you could take a look at my file and tell me what I might need to do, it would be great. Thx |
Author: | Cervantes [ Thu Jan 06, 2005 4:36 pm ] | ||
Post subject: | |||
Well, I haven't really looked over your code, but perhaps you could use an if statement to say:
|
Author: | Jonny Tight Lips [ Thu Jan 06, 2005 5:03 pm ] |
Post subject: | |
That seems to have fix it. I had tryed that b4 but since it is a big eqn that the div was in I had put the + 0.0001 in the wrong place. Thanks for your help. |