Hello everbody,
I am trying to get things running for a couple of months now.
I import a VRML file into Java and want to get a feedback, when clicked
on a part.
I use scene.getNamedObjects to recognize the parts and .setUserData to
give them names.
When mouseClicked I iterate through the SceneGraphPath and check:
If you check the the scene, the userdata is there.
But if you do a PickRay and go through the nodes, there is NO userdata.
I attached the source code - it is manly the SimpleVrml97Viewer from
vrml-java-org with some additions in "gotoLocation" and an added
mouseClicked section.
I would be very pleased, if somebody could give me a hint.
Thanx for your support
-Juergen.
Simple8.zip