Advertisement

OpenGL glClipPlane color

Started by January 02, 2003 08:27 PM
4 comments, last by Horsti 22 years, 1 month ago
Hi, im using glClipPlane to clip a plane of an object. But i couldn''t figure out how to set a color of the intersection plane? Can anyone help me with that? Thanx
You can''t as far as I know. Draw the plane with a big quad and change its color if all else fails.
Advertisement
Could you explain this a bit?

How can a big quad help me to dye the intersection plane of the object with a specified color?

Thanks
glColor3f
"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon
What you are looking for is called ''solid object capping''. Clip planes are used to slice the model, and the stencil buffer to fill the open cross section. Here is a short explanation of the method.
Horsti: you should give as much details as you can about the effect you want to achieve.
Maybe you simply want to render the (infinite) plane that is used for clipping, maybe you want to cap the clipped object to make them sort of filled (like Yann told), or maybe you want to set a special color for the intersection of the surfaces and the clipping plane (like the teleportation in the beginning of Terminator 2 : you can see the (red) hot metal at the edge of the teleportation''s sphere because heat has cut the metal).

This topic is closed to new replies.

Advertisement