Results 1 to 2 of 2

Thread: triangles dissapearing when using tesselation at long distances

  1. #1
    Newbie Newbie
    Join Date
    May 2015
    Posts
    1

    triangles dissapearing when using tesselation at long distances

    So, I am trying to make some planet sized sphere . Supposing 0.001 opengl units correspond to a meter, my sphere would have a radius of about 5000. But as I go further away from my sphere, some triangles seem to stop being drawn.
    Every time I move (even the camera) different triangles dissapear and reapear, until, at about 15 000, the whole sphere isn't drawn anymore.
    I am using glm's infinite perspective but I tried with other perspective matrices without success. Do you have an idea as to why this is happening? Tell me if you need any code.
    (Sorry for the small image but i couldn't seem to get a bigger one in my post...)
    openg p.jpg

  2. #2
    Senior Member OpenGL Pro Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    1,214
    That is probably the manifestation of the finite precision. With single precision floating-point arithmetic you cannot rely on more than 6 decimal digits.

Similar Threads

  1. Replies: 2
    Last Post: 10-11-2011, 01:57 AM
  2. Moving objects BIG distances
    By C5C6ARG in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 11-21-2009, 06:33 PM
  3. Drawing Distances...
    By Carlop in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-19-2003, 09:45 PM
  4. More Dissapearing Problems
    By dutchstud in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-27-2002, 12:47 PM
  5. Strange problems(Dissapearing Faces)!
    By XBCT in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 10-07-2000, 10:04 AM

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