04-14-2001, 05:02 AM

I've got some problems with using glClipPlanes(GL_CLIP_PLANEi, GLdouble* equation):

All the docs I found say equation is a GLdouble quadruple specifiying the clipping plane's equation...

I only know two equations for planes:

1. Specify a vektor which points to a vertex on the planes and specify two non-parallel vectors that lie within the plane.

2. Specify a vector which points to a vertex on the plane an which is a the same time a normal of that plane.

glClipPlane cannot use the first way and the second one doesn't semm to work either:

I interpreted the 4 coordinates as the normal vector starting at the origin *and starting at the eye position... Both ways didn't produce the expected results.

Help me please, until know I spent WAY to much time on this topic.

All the docs I found say equation is a GLdouble quadruple specifiying the clipping plane's equation...

I only know two equations for planes:

1. Specify a vektor which points to a vertex on the planes and specify two non-parallel vectors that lie within the plane.

2. Specify a vector which points to a vertex on the plane an which is a the same time a normal of that plane.

glClipPlane cannot use the first way and the second one doesn't semm to work either:

I interpreted the 4 coordinates as the normal vector starting at the origin *and starting at the eye position... Both ways didn't produce the expected results.

Help me please, until know I spent WAY to much time on this topic.