Jump to content
  • Advertisement
Sign in to follow this  
sunrisefe

OpenGL glClipPlane(GLenum plane, GLdouble *equation),what does the parameter plane mean?

This topic is 3986 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

glClipPlane(GLenum plane, GLdouble *equation), the plane can be GL_CLIP_PLANEi ,but the 'opengl programming guide' didn't tell what GL_CLIP_PLANE0 to GL_CLIP_PLANE5 exactly stand for. so it is difficult to make use of this function.. would u tell me ?thank you

Share this post


Link to post
Share on other sites
Advertisement
They are custom clip planes, availible additionally to the frustum and the ortho clip planes. You have to en and disable them via glEnable and glDisable.

Share this post


Link to post
Share on other sites
And, since this took me a while to figure out, if you are using custom clipplanes and shaders you have to set the gl_ClipVertex output from your vertex shader.

Share this post


Link to post
Share on other sites
i found there exist much differnce when replace GL_CLIP_PLANE0 to GL_CLIP_PLANE1 or GL_CLIP_PLANE2 even though the second parameter is same. so i dont know what GL_CLIP_PLANE0-5 exactly stand for.

Share this post


Link to post
Share on other sites
Quote:
Original post by sunrisefe
i found there exist much differnce when replace GL_CLIP_PLANE0 to GL_CLIP_PLANE1 or GL_CLIP_PLANE2 even though the second parameter is same. so i dont know what GL_CLIP_PLANE0-5 exactly stand for.


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!