Hi Friends: The attached is a simple demo showing my problems. I am rendering two ColorCubes. The smaller one to the left eye and the bigger one to the right eye. I got two problems:
1. When this demo runs, by defination the images should be rendered to the allocated eye consistently. However, alternatively each eye can see the other image, which is not what I want. Can any one give me a suggestion how I can keep each eye viewing its allocated image only? 2. I was suggested to use the configuration: GraphicsConfigTemplate3D g3d = new GraphicsConfigTemplate3D(); g3d.setStereo(GraphicsConfigTemplate3D.REQUIRED); GraphicsConfiguration config = GraphicsEnvironment. getLocalGraphicsEnvironment(). getDefaultScreenDevice(). getBestConfiguration(g3d); Canvas3D canvas = new Canvas3D(config); However, when I ran the demo in this way, the image can be rendered, but I got an error message: ERROR: Canvas3D constructed with a null GraphicsConfiguration This will cause a NullPointerException in a subsequent release If I simply use: canvas = new Canvas3D(SimpleUniverse. getPreferredConfiguration()); There is no such error message and the demo still ran. So can I understand that it is not necessary to use the first configuration? Thank you very much for your kind help. Best regards, ===== Guang Bin Liu VTHRC University of Queensland Australia Phone: 61 7 3365 4072 Fax: 61 7 3800 5268 _________________________________________________________ Do You Yahoo!? 登記免費的 @yahoo.com 中文電子郵件 @ http://chinese.mail.yahoo.com Get your free @yahoo.com address at http://chinese.mail.yahoo.com
BrTestGratings.java
Description: BrTestGratings.java