PDA

View Full Version : Aditional clipping planes in world coordinates



Dagostin
11-19-2002, 10:59 AM
How to maintain the coordinates of the six aditional clipping planes in world coordinates, in a way that permits rotations and translations to be multiplied to the modelview matrix without moving the planes in relation to the objects in the scene.
I know that the plane equations are stored in eye coordinates, but I don't want this behaviour.
For instance:
Suppose that I have a car in a scene and specify a clipping plane (might be GL_CLIP_PLANE0) that removes the front part of the car from the exact middle of it. What I want is to navigate around the car while maintaining the front part of car out of the image.

Thanks in advance

Relic
11-20-2002, 01:00 AM
The clip plane orientation depends on WHEN you specify it.

See http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/001912.html

Dagostin
11-20-2002, 12:17 PM
Thanks Relic, now it works.

http://www.opengl.org/discussion_boards/ubb/cool.gif