Hi i am trying to clip in Orthographic projection.
In Jogl its done something like this gl.glOrtho(0.0f,3.0f, 0.0f,3.0f, -10f,5f);
In xith i thought in method calculatePerspective(Canvas3D canvas) of View class when its setting projection Matrix with
orthoMesa it sets the ClippingVolume.
Also while calling this particular method in View.java
// TODO Check for the correct frontClipDistance calculation for this projection. This is known that current use of -backClipDistance is ugly and wrong, and better way for //this calculation needed
projection.orthoMesa(-screenScale, screenScale, -screenScale*canvasHalfHeight, screenScale*canvasHalfHeight,-backClipDistance, backClipDistance);
Here if i don’t supply balance parameters like for left, right say i supply 0,10 than perspective gets totally disoriented. Why this restriction of specifying
all the three pairs in equal and opposite values.
I checked out that the method orthoMesa of Transform3D its same as of Java3D ,so is that means we are not properly multiplying ModelViewMatrix and Projection matrix .
Also is their any other way to take a 2D image of a scene formed by intersection of A Scene And a Plane Specified .
Note : I am trying to write a small CAD Application with help of Xith . So you can Guess why i am working in Orthographic projection.