The problem
 
I have two canvases, c1 and c2, showing the  2 ColorCubes side by side., one in each canvas, using the same scene for both.
The left one shows a view from the Left "correctly" and the Right shows a view from the right, but from what appears to be very widely spaced eyes.
However, changing the eye position using setLeftManualEyeInImagePlate and similarly for the right eye produces no change in the eye positions.
The monoscopic view policy is set correctly to View.LEFT_EYE_VIEW and View.RIGHT_EYE_VIEW, respectively.
I have a firm grasp of the wrong end of the stick. Where have I gone wrong?
 
The fragment
    public TwoCanvases() {
        setLayout(new FlowLayout());
 
        GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
        GraphicsConfiguration gConfig =
            GraphicsEnvironment.getLocalGraphicsEnvironment().
             getDefaultScreenDevice().getBestConfiguration(template);
   
        Canvas3D c1 = new Canvas3D(gConfig);
  
        // Create a simple scene and attach it to the virtual universe
        BranchGroup scene = createSceneGraph();
  
        SimpleUniverse u = new SimpleUniverse(c1);
        u.getViewingPlatform().setNominalViewingTransform();
 
        View view = u.getViewer().getView();
  
        // Create a new canvas and add it to the view
   
  Canvas3D c2 = new Canvas3D(SimpleUniverse.getPreferredConfiguration());
  view.addCanvas3D(c2);
  c2.setSize(200,200);
  this.add(c2);
  
  c1.setMonoscopicViewPolicy(View.LEFT_EYE_VIEW);
  c2.setMonoscopicViewPolicy(View.RIGHT_EYE_VIEW);
  
  Point3d p1L = new Point3d(0.0, 0.2, 0.2);
  Point3d p2R = new Point3d(0.0, 0.2, 0.2);
  
  c1.setLeftManualEyeInImagePlate(p1L);
  c2.setRightManualEyeInImagePlate(p2R);
     
        c1.setSize(200, 200);
        c2.setSize(200, 200);
  
        add(c1);
        add(c2);
  
        u.addBranchGraph(scene);
    }
Peter S
=========================================================================== 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".

Reply via email to