View Full Version : clipping plane
09-09-2002, 05:24 AM
is it possible to know for a particular orientation of the camera if an object is behind a clipping plane?
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.