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: Incorrect clipping planes on onboard card

  1. #1

    Incorrect clipping planes on onboard card

    I'm drawing a sphere with two clipping planes. On nvidia graphic cards everything works fine, the sphere is drawn and also clipped correctly.
    But on a different system using an Intel onboard graphic adapter the whole clipping goes terribly wrong. But only if both clipping planes are enabled. Using only one plane, regardless which one of them, the sphere is drawn correctly.
    I've already checked GL_MAX_CLIP_PLANES but the guaranteed six planes are supported.
    Any idea what's the problem here? A driver bug?
    There are only 10 types of people in the world: Those who understand binary, and those who don't

  2. #2
    Member Regular Contributor Jackis's Avatar
    Join Date
    Sep 2005
    Location
    Saint-Petersburg, Russia
    Posts
    279

    Re: Incorrect clipping planes on onboard card

    Originally posted by Snapshot:
    I've already checked GL_MAX_CLIP_PLANES but the guaranteed six planes are supported.
    Any idea what's the problem here? A driver bug?
    By the way, guaranteed six clipping planes are already enabled - they are your frustum near, far, left, right, up and down planes.
    So the implementation is free to decide, how many extra planes to support.
    It seems, like your onboard card can have only 1 extra-clipping plane.

  3. #3

    Re: Incorrect clipping planes on onboard card

    Are you sure about that? The Redbook says:
    All implementations of OpenGL must support at least six additional clipping planes...
    I think the keyword here is "additional". Doesn't that mean I have at least six clipping planes beside those used for the bounding rect?

    I'v checked again the returned number of max clip planes. In both cases it's six.
    So both should fail or both should work, shouldn't they?
    There are only 10 types of people in the world: Those who understand binary, and those who don't

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: Incorrect clipping planes on onboard card

    Originally posted by Snapshot:
    Doesn't that mean I have at least six clipping planes beside those used for the bounding rect?
    Yes, you have at least six user defined planes available. The frustum clipping is independent and does not count aginst that limit. If the Intel driver can not handle two user cliping planes, it contains a bug.

  5. #5

    Re: Incorrect clipping planes on onboard card

    Okay, thank you!
    There are only 10 types of people in the world: Those who understand binary, and those who don't

  6. #6
    Member Regular Contributor Jackis's Avatar
    Join Date
    Sep 2005
    Location
    Saint-Petersburg, Russia
    Posts
    279

    Re: Incorrect clipping planes on onboard card

    Eeeeh, thank you Komat, I didn't know that about additional.

Posting Permissions

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