import-bot (20211) [Avatar] Offline
#1
[Originally posted by roggerchen]

Dear Daniel:
English is not my native language, sorry.
I will use your code to access the VRML file by the vrml97.jar from sun, the
java file "Java3DApplet.java" is the base 3D class, that is ok, but the file
"VrmlPickingTest.java" in package "org.selman.java3d.book.vrmlpickingtest"
will throw the exception.

If I have one instance of class in my project, the vrml files can loader and
show successfully, but when I have several intance of your code, they will
throw some exception:

javax.media.j3d.RestrictedAccessException: Cannot modify capability bits on
a live or compiled object
at javax.media.j3d.SceneGraphObject.setCapability(SceneGraphObject.java:101)
at com.sun.j3d.utils.picking.PickTool.setCapabilities(PickTool.java:283)

at com.sun.j3d.utils.picking.PickTool.setCapabilities(PickTool.java:270)
import-bot (20211) [Avatar] Offline
#2
Re: Pick.setCapability() Throw exceptions
[Originally posted by dselman]

roggerchen,

The error is:
"Cannot modify capability bits on a live or compiled object"

I'm guessing that you are somehow trying to make the *same* VRML instance
pickable twice, or perhaps making it pickable after you have already added it
to a live scenegraph.

Dan