hi all,
two way for do this :
first:
in your PickBehavior (you can find a exemple in the
J3d Demo)
pickcanvas = new PickCanvas(canvas,rootBG);
pickcanvas.setMode( PickTool.GEOMETRY_INTERSECT_INFO)
;
public void updateScene(int xpos, int ypos)
{
PickResult pickResult = null;
pickCanvas.setShapeL
In Mr. Selman's book, there is a section that mentions a way to index your
node using the setUserData method. You can then remove the node using a Group's
removeChild method. The only thing I don't understand is that setUserData takes
ClassificationObject as an arguement. What exactly is a Classif
Re: Re: [JAVA3D] Live ObjectHi Jonathan and others on this thread,
there were too many "might be ..."s and "is'nt it that ..."s in
this thread, so, in short: RTFM.
In long: please (re)read the excellent Java3D tutorial chapter
4.6 Picking; it explains it very well. Specifically look at
Figure 4-
PROTECTED]Subject: Re:
[JAVA3D] Live Object
The getParent() method only work on non-lived,
non-compiled object. What I need is a way to retrieve the parent node of a
lived-object. For example, I want to get the Transform3D associated to the
TransformGroup of a picked object from my
Alas my IDE has died so I can't check this myself but what I do is setUserData all my
nodes and then do searches from the root when live. As long as all the capibilities
are set I'm sure you should be able to find the object you need.
Of course I maybe talking complete cr*p! :)
Jase.
Title: Re: Re: [JAVA3D] Live Object
Arn't there some capabilities you can set on the shape to allow getting the
parent on a live node?
Kev
Jonathan Smolarski wrote:
000201c23316$0fa90f30$420a@Active3DSt3">
The getParent() method only work on non-lived,
non-compiled o
Title: Re: Re: [JAVA3D] Live Object
The getParent() method only work on non-lived, non-compiled object. What I need is a way to retrieve the parent node of a lived-object. For example, I want to get the Transform3D associated to the TransformGroup of a picked object from my sceneGraph
16:20To: [EMAIL PROTECTED]Subject: [JAVA3D]
Live Object
Hi,
Here's my question : how could I retrieve the
TransformGroup parent of a live Shape3D object ? The fact is that I could get
a Node object using getObject from SceneGraphPath, but I also need the
TransformGroup assoc
Title: [JAVA3D]Live Object
Hi,
Here's my question : how could I retrieve the TransformGroup parent of a live Shape3D object ? The fact is that I could get a Node object using getObject from SceneGraphPath, but I also need the TransformGroup associated to my Shape3D.
Thanks in ad