Results 1 to 2 of 2

Thread: Clipping Plane Issues

  1. #1
    Member Newbie
    Join Date
    Mar 2002

    Clipping Plane Issues

    This is part of the code I have in my drawing function:


    double eqn[4] = {0.0, 1.0, tan(Plane_Angle*pi/180.0), 0.0};
    glClipPlane(GL_CLIP_PLANE0, eqn);

    else if(makecut==0)


    //Draw the rest of the scene

    plane_x and plane_y start out with a value of zero. X_Angle and Y_Angle are incremented and decremented by moving the mouse. I've coded in another function so that after the cut is made (makecut=1) plane_x and plane_y start to increase and decrease at the same rate as X_Angle and Y_Angle. This way when I rotate the cut scene, the clipping plane should rotate the same way and I should see the same objects clipped no matter how I rotate. But this doesn't happen, the clipping plane stays where it is and the result of rotating is that different parts of the scene appear and disappear.....why doesn't the clipping plane rotate also?? And I'm positive that the other functions are all fine.

    [This message has been edited by Rajveer (edited 04-14-2002).]

  2. #2
    Member Contributor
    Join Date
    Jul 2001

    Re: Clipping Plane Issues

    The clipping plane is defined by a vector, therefore there is no need to do a rotation before defining the clipping plane. The clipping plane equation will define the orientation relative to the current projection matrix.


    'rotate scene
    'define clipping plane
    'render scene

    Hope that helps...

Similar Threads

  1. Regarding Near plane clipping
    By myk45 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-29-2012, 09:32 AM
  2. Near Clipping Plane.
    By Clayton in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-16-2003, 11:28 AM
  3. clipping plane
    By schailan in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-09-2002, 07:35 AM
  4. Clipping plane
    By yossi in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 05-22-2001, 11:43 PM
  5. Clipping plane
    By masterpoi in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-05-2000, 10:18 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