Help, please. What am I missing here? I have two Views onto the same scene
graph so I'm not using SimpleUniverse. Now, I want to take advantage of
Sun's OrbitBehavior which requires ViewingPlatform.setViewPlatformBehavior(
OrbitBehavior ), so I'm adding a ViewingPlatform to my Locale instead of a
BranchGroup. But It doesn't work (no rendering).

        boolean useViewingPlatform = false;
        ViewPlatform vp1 = new ViewPlatform();
        View v1 = new View();
        v1.setPhysicalBody( new PhysicalBody() );
        v1.setPhysicalEnvironment( new PhysicalEnvironment() );
        v1.attachViewPlatform( vp1 );
        v1.addCanvas3D( c1 );
        if( useViewingPlatform )  {//this doesn't work
            ViewingPlatform vingp = new ViewingPlatform();
            vingp.setViewPlatform( vp1 );
            locale.addBranchGraph( vingp );
        }else{  //this does work
            BranchGroup vbg1 = new BranchGroup();
            vbg1.addChild( vp1 );
            locale.addBranchGraph( vbg1 );
        }

Thanks,

Raffi

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