Results 1 to 3 of 3

Thread: NAN

  1. #1
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    Donetsk,Ukraine
    Posts
    118

    NAN

    This is not an OpenGL question.
    I have -NAN (not-a-number) as a normal vector. So my normals are pretty random.
    I'll try to use spheremap before fixing - it may be looking cool.
    I cant find a documentation on NAN.
    Which operations can have a NAN as results?
    May it be crossproduct on invalid triangle?
    How NAN is represented? 0xFFC00000, or there are other numbers?

    Thanks in advance for any help.
    ***
    Nevermind, I've already fixed it.
    There was smth with wrong indexing.
    BTW spheremap with invalid normals looked pretty dull.

    [This message has been edited by RandyU (edited 05-26-2001).]

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: NAN

    Weel just to answer anyways... a couple of NAN producers are trig functions errors i.e.
    inv sin(x) -> -1>x>1
    or division by zero.....

    gav

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    Donetsk,Ukraine
    Posts
    118

    Re: NAN

    1/100000000 also produces NAN.
    AFAIK it's called "denormalized result"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean