I haven't worked with SimpleUniverse (I always set up a VirtualUniverse) but I
assume that you have to change the order of these statements and add one:
SimpleUniverse simpleU = new SimpleUniverse(canvasStereo);
View stereoView = canvasStereo.getView();
stereoView.setScreenScalePolicy( View.SCALE_EXPLICIT); // add this
stereoView.setScreenScale(1);
PhysicalBody stereoBody = stereoView.getPhysicalBody();
stereoBody.setLeftEyePosition(new Point3d(-1,0,0));
stereoBody.setRightEyePosition(new Point3d(1,0,0));
rgards
Paul
Michael Haller schrieb:
> Hallo!
>
> was mir noch nicht klar ist ist, wie ich auf die View bzw. auf PhysicalBody
> komme. Ich habe zwar die Methode getView bei Canvas3D, aber irgendwas haut
> da absolut nicht hin.
>
> Besten Dank,
> Michael.
>
> At 09:21 20.09.2001 +0200, you wrote:
> >This is possible right now. You have to create a Canvas3D with Quadbuffer
> >enabled (your graphics card must support Quadbuffer, of course). Then use the
> >setScreenScale (and/or setFieldOfView) method of View to manipulate the image
> >plate (= focus plane) position in the virtual world. Also allow to adjust the
> >eye distance with the setLeft/RightEyePosition of PhysicalBody.
> >
> >Get a Quadbuffer Canvas3D with:
> >
> >final GraphicsEnvironment theEnvironment = GraphicsEnvironment .
> >getLocalGraphicsEnvironment( );
> >final GraphicsConfiguration[ ] configs = theEnvironment .
> >getDefaultScreenDevice( ) . getConfigurations( );
> >final GraphicsConfigTemplate3D configTemplate = new GraphicsConfigTemplate3D(
> >);
> >configTemplate . setStereo( GraphicsConfigTemplate3D . PREFERRED );
> >Canvas3D aCanvas = new Canvas3D ( configTemplate . getBestConfiguration(
> >configs
> >) );
> >
> >Java3D (or better OpenGL) will take care of rendering the left and right eye
> >images.
> >
> >regards
> >Paul
> >
> >Guang Bin Liu schrieb:
> >
> > > Hi Every One:
> > >
> > > Could any one tell me, with the new version of J3D, whether I can control
> > > the rendering of an image to left eye (only) and another image to right eye
> > > (only) so that with a shutter glasses, I can view the left-eye image
> > with my
> > > left eye and right-eye image with the right eye? If yes, how? Thank you a
> > > lot!
> > >
> > > Best,
> > >
> > > Guang Bin Liu
> > > VTHRC
> > > Univ. of Queensland
> > > Brisbane, Australia
> > >
> > > _________________________________________________________________
> > > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> > >
> > > ===========================================================================
> > > 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".
> >
> >===========================================================================
> >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".
>
> ------------------------------------------------------------------------
> Name: StereoTest.java
> StereoTest.java Type: JavaScript Program (application/x-javascript)
> Encoding: base64
===========================================================================
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".