PDA

View Full Version : clipping plane



schailan
09-09-2002, 05:24 AM
hi,

is it possible to know for a particular orientation of the camera if an object is behind a clipping plane?

Bob
09-09-2002, 06:35 AM
With OpenGL, I think you can use the feed back mechanism. Draw a point where the object is located and see of the buffer contains the transformed point or not. I believe clipped primitives are not written to the buffer.

Or you can do all the math yourself. Transform the object and the clip plane as you like, and solve the plane equation. Positive number means in front of the clip plane. If you choose this way, you better know your linear algebra well.