I need to move clipping plane of OpenGL and begin the clipping from that position. The default location of clipping plane is (0,0,0), so if my model is far enough from the center of coordinate system it immediately disappears, as I begin the clipping, cause it appears in the half clipped by the plane that just moved from (0,0,0) point. So what I need is :
- Create a clipping plane
- Translate it to the point I want (normally it's near model surface I want to clip)
- Begin the clipping from that point and not from (0,0,0).
How can I achieve my goal ?