I'm sending you 3 classes (we got them from a book), see if it helps.
Borja and I use them in our applications.
In my application I use them like this:

protected  AppWorld world= new AppWorld();          //Virtual World  (FIELD)
.
.
 public MainScene3D()
 {
      GraphicsConfigTemplate3D configuration = new
GraphicsConfigTemplate3D();
      configuration.setStereo(configuration.PREFERRED);
      GraphicsConfiguration gcfg =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice

().getBestConfiguration(configuration);

      view= new AppView(new AppDisplay(gcfg));

      display= view.getDisplay();

      setLayout(new BorderLayout());
      add(display, BorderLayout.CENTER);

      View vista= view.getView();
      vista.setBackClipDistance(1000);
      vista.setFrontClipDistance(0.1);
      world.addViewNode(BasicView.buildView(view,new Vector3d(100,50,70),new
Vector3d(0,0,0)));

     BranchGroup escena= createScene();
     world.addSceneNode(escena);
     world.setLive(true);
 }

I'm new in Java3D and graphics so if some one sees any mistake please tell
me... and tell Thomas.
Good luck

Carolina

----- Original Message -----
From: "Thomas Gilbert Giusepe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 2:11 PM
Subject: [JAVA3D] Help: VirtualUniverse and Java3D API Specification


> Hi There,
>
> I have tested the sample code from "Java3D API Specification (j3dAS)" -
> Chapter 1: HelloUniverse. Once that the example in the "j3dAS" was absent,
> to canvas3D I have setup as a suggestion received (thnx Nikolaos Abatzis)
> from j3D Discussion list, as follow:
>
> GraphicsDevice dev=
> GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()
;
> Canvas3D c = new Canvas3D( dev.getDefaultConfiguration()) ;
>
> At least the code began to run, but actually is happen strange rendering.
> So, could someone please help me telling where there is some simple code
> sample (if there is), which really works using VirtualUniverse instead of
> SimpleUniverse.
>
> Thnx in advance. Best wishes,
> Thomas
>
> _________________________________________________________________
> Downloaden Sie MSN Explorer kostenlos unter
http://explorer.msn.de/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".
>

World.zip

Reply via email to