Results 1 to 3 of 3

Thread: z-buffer/flickering

  1. #1
    Newbie Newbie
    Join Date
    Feb 2000


    Anyone have problems with (for example a cube
    -representing a building) with objects that are close to each other flickering between each other.
    I have tried altering the depth test parameters and changed everything to doubles( back face culling is also enabled).

    Thanks, T.J

  2. #2
    Member Contributor
    Join Date
    Feb 2000

    Re: z-buffer/flickering

    What do you mean: objects are static in the scene and flickering without any motion, or flicker during their motion, in the intersections?
    For the latter case, are you transforming vertices on your own, or using OGL matrix xform stage? (if this was the case, it could be a rounding-error problem)
    Paolo M.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    milano, italy

    Re: z-buffer/flickering

    z-fight is the problem.

    you can:
    -increase the bits of precision of the depth buffer.
    -use opengl polygon offset.
    -make your decal a bit more far away from its belonging surface.
    -use depth test=GL_EQUAL when decaling

    i prefer the last method, i found it working good when the decal polygon is the surface itself.
    i set the decal texture image border to alpha=0 and use GL_CLAMP as parameter.

    there are other ways to minimize this artifact, but i can't recall them at the moment...


Similar Threads

  1. Replies: 14
    Last Post: 10-19-2018, 01:12 AM
  2. some help regarding flickering
    By ankur bansal in forum OpenGL: Basic Coding
    Replies: 46
    Last Post: 01-23-2011, 06:33 PM
  3. flickering
    By stranimondi in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-17-2006, 11:41 PM
  4. Flickering OGL
    By M/\dm/\n in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 04-08-2003, 05:19 AM
  5. Z-Buffer flickering? But Why?
    By mphanke in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 08-27-2002, 07:32 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