> Date:         Thu, 31 Jul 2003 11:07:32 -0400
> From: "McCormick, Brian" <[EMAIL PROTECTED]>
>
> I'm getting the following error while running my code:
>
>    javax.media.j3d.RestrictedAccessException: Cannot modify capability bits
> on a live or compiled object
>
> The code that is causing it is the second line shown below:
>
>   simpleUniverse = new SimpleUniverse(this);
>
> simpleUniverse.getViewingPlatform().setCapability(ViewingPlatform.ALLOW_LOCA
> L_TO_VWORLD_READ);
>
> Does anybody know how to fix this or do a work around?  Thanks.

SimpleUniverse creates a live ViewingPlatform.  Detach the
ViewingPlatform (it's just an extension of BranchGroup) before setting
capability bits, and then reattach.

-- Mark Hood

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