Hi all,

I have two canvases (canvas_vr and canvas_sim). In canvas_vr I have the
3D view of my scene. In canvas_sim I want the same scene but I need to
make the animation of this scene. First, I want to make all the objects
in canvas_sim transparent and than make them solid as time passes.

To summarize, canvas_vr should immediately show objects; however
canvas_sim should show the animation of the same scene when required
(after a button click for example).

How can I do this?

Regards.
Ali




       // Create a VR graphics canvas.
       canvas_vr = new Canvas3D(dev.getBestConfiguration(template));
       canvas_vr.setSize(295, 360);
       canvas_vr.setLocation(0, 0);


       // Create simulation canvas.
       canvas_sim = new Canvas3D(dev.getBestConfiguration(template));
       canvas_sim.setSize(295, 360);
       canvas_sim.setLocation(0, 0);


           //VR VIEW
           PhysicalBody body = new PhysicalBody();
           PhysicalEnvironment p_env = new PhysicalEnvironment();
           vrView = new View();
           vrView.setBackClipDistance(BACK_CLIP_DISTANCE);
           vrView.setFrontClipDistance(FRONT_CLIP_DISTANCE);
           vrView.setPhysicalBody(body);
           vrView.setPhysicalEnvironment(p_env);
           vrView.addCanvas3D(canvas_vr);
           vrView.attachViewPlatform(vp_vr);


           //SIM VIEW
           PhysicalBody pbSim = new PhysicalBody();
           PhysicalEnvironment peSim = new PhysicalEnvironment();
           simView = new View();
           simView.setBackClipDistance(BACK_CLIP_DISTANCE);
           simView.setFrontClipDistance(FRONT_CLIP_DISTANCE);
           simView.setPhysicalBody(pbSim);
           simView.setPhysicalEnvironment(peSim);
           simView.addCanvas3D(canvas_sim);
           simView.attachViewPlatform(vpSim);

===========================================================================
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