Hi all,
I want to get the projection matrix of my view. However, for this,
I need to set the compatibility mode to true.
Now, if I set the compatibility mode to true, the objects in the view
disappear. What might be the reason. The view is fine till I set the
mode to true. Are the default view parameters different for when the
compatibility mode is set?
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
canvas3D = new Canvas3D(config);
add("Center", canvas3D);
BranchGroup scene = createSceneGraph();
// SimpleUniverse is a Convenience Utility class
simpleU = new SimpleUniverse(canvas3D);
// To enable this flag for getting the projection transform.
// getView().setCompatibilityModeEnable (true); // *************
// This will move the ViewPlatform back a bit so the
// objects in the scene can be viewed.
simpleU.getViewingPlatform().setNominalViewingTransform();
simpleU.addBranchGraph(scene);
If the starred statement is uncommented, the objects in the view disappear.
Thanks in advance.
Regards,
Sameer
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".