Ooops
May 25, 2020, 11:27:27 AM

Author Topic: -1.#IND0000  (Read 241 times)

Offline JBR

  • Jr. Member
  • **
  • Posts: 91
-1.#IND0000
« on: March 28, 2020, 11:10:14 PM »
Hi, I've been getting this funny thing happen.

The craft is centered at 0,0,0 and I intentionally fly inside the craft to examine vertices/face/lines.

When I do EntityDistance from camera to centre sometimes I get the above as the distance.

The screen goes blank, except the 2D bit, and nothing brings the 3D back.

I suspect I'm too close to the centre?

Jim.

Offline Henri

  • Full Member
  • ***
  • Posts: 236
Re: -1.#IND0000
« Reply #1 on: March 29, 2020, 02:28:32 PM »
Hi,

error seems to imply that something was divided by zero. Not sure if this can be checked in your case before doing the calculation.

-Henri
- Got 01100011 problems, but the bit ain't 00000001

Offline markcwm

  • Sr. Member
  • ****
  • Posts: 453
Re: -1.#IND0000
« Reply #2 on: March 29, 2020, 05:40:09 PM »
Yes, seems like an out-of-range value, that on it's own can be fine, but divide by zero (or a very very small number) is known to cause crashes in most languages, why I don't know.

Offline JBR

  • Jr. Member
  • **
  • Posts: 91
Re: -1.#IND0000
« Reply #3 on: March 29, 2020, 07:05:13 PM »
Thanks guys,

I'll see if I can code to catch the problem.

Jim.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal