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 9 of 9

Thread: rotation problem

  1. #1
    Guest

    rotation problem

    Hi,

    I have an horizontal plane at z = 0.0f and a
    tree from 0.0f to 1.0f.

    When I rotate this scene 180 degrees, the lower part of the trunk is sticking out from the plane. How do I conceal this lower part??

    Thanks
    tare

  2. #2
    Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Turin
    Posts
    269

    Re: rotation problem

    try to be more specific...
    [rIO^sPINNING kIDS] - rio@nospam.spinningkids.org

    -/- This is a signature virus. Add it to your signature. Help it spreading! -/-

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jul 2001
    Location
    Sherbrooke
    Posts
    146

    Re: rotation problem

    I don't understand the question either !

    try to be more clear with some code or something...
    Let's have a funny day

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: rotation problem

    Do you mean that the plane and tree are not rotating about the same point?

  5. #5
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: rotation problem

    Do you mean that one can see the lower part of the tree when looking from beneath the plane?
    - Michael Steinberg

  6. #6
    Guest

    Re: rotation problem

    Yes Micheal ...
    you are right ...
    both the tree and the plane are rotating about the same point ...
    and I can see the bottom of the tree when I
    rotate to the bottom of the plane.

    Shouldnt the tree be covered by the plane??

  7. #7
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: rotation problem

    Perhaps you have GL_LEQUAL as depth func.
    Try to call that upon initialization:

    glDepthFunc( GL_LESS );
    - Michael Steinberg

  8. #8
    Guest

    Re: rotation problem

    I've already used glDepthFunc(GL_LESS)
    but I can still see the bottom of the tree when I rotate 180 degrees.

    Any more advices??? THanks!

  9. #9
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: rotation problem

    Code!
    - Michael Steinberg

Posting Permissions

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