Java3D has a screenScale variable in View that is useful for orthographic projections. Adding this compatibility feature would be very simple, requiring only two changes:
-
Implement the setScreenScale method in View.
-
Change the call to orthoMesa in calculatePerspective() to:
float a = (float)canvas.get3DPeer().getWidth()/(float)canvas.get3DPeer().getHeight();
float ss = 0.5fscreenScale;
projection.orthoMesa(-ass, a*ss, -ss, ss, -backClipDistance, backClipDistance);
Could someone look into this? It would be very helpful! 