Tina,
The Shape3Ds loaded by the VRML loader would never have
ALLOW_APPEARANCE_READ set, if you read the source code carefully. Therefore
you might have to change the source code, i.e.
com.sun.j3d.loaders.vrml97.Shape.initImpl(). As to where you want to set the
capability in the method is at your discretion. Although it doesn't sound
right to change the source code, for serious work you gonna have to do that
sooner or later.
Best regards,
Law, Yee Wei
http://www.ntu.edu.sg/camtech
Tel: +65 790 4201
ICQ: 10000977
-----Original Message-----
From: Tina Manoharan Valappil [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 4:14 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] RestrictedAccessException - VRMLloader
Dear all,
this is a part of my scene graph
TG
|
BG (ALLOW_CHILDREN_WRITE & ALLOW_CHILDREN_EXTEND)
To this I am adding a scenegraph dynamically with VRMLloader.
The new additions to it are
BG (from VRMLloader)
| |
BG1 BG2
| |
Shape3D1 Shape3D2
Now if I want to set the capability(ALLLOW_APPEARANCE_READ) to the
Shape3D 1 & 2 . It is giving me RestrictedAccessException. So, I
tried giving the BG1 & BG2 , ALLOW_CHILDREN_WRITE capability but it
also
gave a RestrictedAccessException cannot set capability bits on a
live or
compiled object. ( I knew that this wouldnt work but just a try)
Can somebody please tell me as to how I can set the capability for
the children shape3Ds which I am dynamically loading with a
VRMLloader.
Thanks
Tina
Tina Manoharan
PhD. Heriot Watt University
Ph: 07801 069485 / 07740 959483 (mobile)
Ph: 0131 449 5111 ext. 4191 (office)
Ph: 0131 449 5111 ext. 4197 (lab)
===========================================================================
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".
===========================================================================
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".