PDA

View Full Version : GL_CLIP_PLANE



nrbrasiliense
02-11-2003, 11:32 AM
I made a 3D scene and enabled the six opengl's clip planes by calling:
glEnable(GL_CLIP_PLANE0);
...
glEnable(GL_CLIP_PLANE5);
I put a interface to the user interact and clip the scene. It was right, works perfectly.
When you "clip" the scene, its center move away (the direction it moves depends on the clip plane you are moving).
So, I would like to know how could I keep translating my scene based on its center (the up-to-date center), I mean, when you move a clip plane you "reduce" the scene and a new center should be found to rotate based on this new center.
Someone can help me ?!
Thanx a lot,

Rogerio

bakery2k
02-11-2003, 11:44 AM
No need to post to both forums.