Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: z-fighting question

  1. #1
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,042

    z-fighting question

    This is just out of curiosity.

    I just realized, that z-fighting is often "animated" although the camera does not move a bit.
    That means, that you can look at a wall and every frame other pixels "win" the fight.

    I think thatīs strange, because the input-data is bit by bit exactly the same. No vertices were changed, no modelview or projection matrix was touched, itīs all the same.
    But still you can get this "animated" z-fighting.

    Doesnīt that mean, that the hardware does not work correctly? Although this is of course a precision issue, the calculations should all yield to the same correct or wrong results, if the input data is the same, but nothing should change just out of fun.

    Maybe someone knows more about that.

    Bye,
    Jan.
    GLIM - Immediate Mode Emulation for GL3

  2. #2
    Intern Contributor
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    97

    Re: z-fighting question

    Personally Ive only ever seen z-fighting animate like that if one of the relevant inputs is changing.

    If all inputs stay the same, z-fighting stays the same Ive seen.

  3. #3
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,969

    Re: z-fighting question

    I agree, zfighting won't change unless the eye, objects or rendering order change. You may have something moving, even if the movement is so slight that you cannot see the difference.

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,042

    Re: z-fighting question

    Hm, have to check that, although i am quite sure nothing is moving.
    GLIM - Immediate Mode Emulation for GL3

  5. #5
    Junior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    218

    Re: z-fighting question

    I'd have to agree with the "something is moving" suggestion...

    But isn't it also possible that differing values could be getting generated if there is double buffering taking place?

  6. #6
    Intern Contributor
    Join Date
    Nov 2000
    Location
    Sweden
    Posts
    98

    Re: z-fighting question

    What about writing a Z-Fighting Game :P ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •