Results 1 to 4 of 4

Thread: Runway flickering???

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Ireland
    Posts
    19

    Runway flickering???

    Hello there,

    I'm building a flight simulator for college and I have a runway plain y+1.0 up from the ground. When I take-off and look at the runway its flickering. I have made a call to the function glEnable(GL_DEPTH_TEST);. But this doesn't help. If I plane the runway y + 10.0 up from the ground then the flickering stops.
    Any ideas or suggestions?
    Thanks in advance

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Runway flickering???

    Hi !

    Sounds like you have some "ground" or something at the same depth as the "runway", if that is that case then it will "flicker" because some times the "ground" gets visible, sometimes the "runway" get visible, you would have to increase the Y position or whever is up a little for the actual runway polygons.

    Not sure if that's the problem though.

    Mikael

  3. #3
    Member Newbie
    Join Date
    Apr 2003
    Posts
    33

    Re: Runway flickering???

    glPolygonOffset can be good for this purpose.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jun 2002
    Location
    Philadelphia, PA, US
    Posts
    108

    Re: Runway flickering???

    are you sure you're using the depth buffer? if so, did you request a 24 bit depth buffer? also, how are you setting up your perspective projection? if you're using gluPerspective(), make sure you're not specifying 0 as the distance to the near clipping plane, or a number really close to 0.

    if none of those things are the problem, then it's probably just a z fighting issue. to help with that, you can a) request a larger depth buffer (24 bits is the max on most cards), b) push out the near clipping plane, or pull in the far clipping plane, c) manually add an offset to the polygon location (as you're currently doing), or d) use glPolygonOffset() to automatically offset the polygon location for you.

    -steve

Similar Threads

  1. Still flickering
    By art-ganseforth in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-04-2016, 12:25 AM
  2. Parts of a runway dissapear randomly - why
    By robert_s in forum OpenGL: Advanced Coding
    Replies: 19
    Last Post: 02-28-2002, 08:53 AM
  3. Flickering?
    By ym in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-13-2001, 01:58 AM
  4. Runway lights ????
    By grrrrr in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-09-2001, 09:19 AM
  5. Flickering
    By cwhite40 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 09-23-2000, 10:49 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