> Date:         Tue, 13 Aug 2002 11:46:19 -0500
> From: Andy <[EMAIL PROTECTED]>
> Content-Length: 4565
>
> Sorry for not telling specific enough, here is my code:

Looks OK so far...  what do you do with the BranchGroup returned by your
createView() method?  SimpleUniverse creates a ViewingPlatform BranchGroup and
attaches it to the universe for you.  It looks like you're essentially
reimplementing ViewingPlatform but perhaps you're not making it live.

Keep posting more of your code, someone ought to see the problem eventually.
If you send a complete test app that reproduces the problem, we can determine
if it's a bug that needs to be investigated.

-- Mark Hood

> /**
>          * BranchGraph for View BranchGroup
>          */
>         private BranchGroup createView(Canvas3D c){
>                 BranchGroup bg = new BranchGroup();
>                 View view = new View();
>                 view.setSceneAntialiasingEnable(false);
>                 ViewPlatform vp = new ViewPlatform();
>                 vp.setViewAttachPolicy(View.NOMINAL_SCREEN);
>                 PhysicalBody body = new PhysicalBody();
>                 PhysicalEnvironment pe = new PhysicalEnvironment();
>                 view.addCanvas3D(c);
>                 view.attachViewPlatform(vp);
>                 view.setPhysicalBody(body);
>                 view.setPhysicalEnvironment(pe);
>                 TransformGroup tg = new TransformGroup();
>                 tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
>                 tg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
>                 bg.addChild(tg);
>                 tg.addChild(vp);
>                 KeyNavigatorBehavior key = new KeyNavigatorBehavior(tg);
>                 key.setSchedulingBounds(new BoundingSphere());
>                 bg.addChild(key);
>
>                 return bg;
>         }

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