Shawn,

1)Maybe I'm misunderstanding your request but I don't think it is necessary
to use Node.getParent() in order to be able to attach and reattach one
subgraph to another.  By using Group.moveTo() and BranchGroup.detach() my
program attaches the view platform to whatever live BranchGroup I need. Have
you tried this?

2)In order to calculate a local to local transform, you can use
Node.getLocalToVWorld on Node A to get Transform TA, Node B to get Transform
TB and then by doing something like multiplying TB by the inverse of TA you
get a local to local transform.  I'm pretty sure that I've done this in my
program but I'm being vague here because my Matrix math is not very solid
yet.

I hope this helps. Please forgive me if I've unintentionally minimized your
question.

Raffi

-----Original Message-----
From: Shawn Kendall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 25, 2000 7:47 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Node.getParent()


Why can we not call Node.getParent() during a live scene?!

We must have the functionality to do several things, namely, detach and
attach sub-graph to other parts of the scene.  It seems to me this is
base-line.  When we start moving our avatar/vehicle around the scene, we
need to be able to attach to other moving parts in the scene, i.e. I
step on a moving platform, I start moving with it.  To do this in
Performer, once we translated between our local to the targets local
coord system, we then attached our models scene graph to the targets,
simple enough.  But to compute the local-to-local transform, we need to
walk up the tree gathering extra  data, such as matrix velocity.  I know
there is the LocalToVWorld call, but I that's not enough.

Can some one on the team please explain why this operation is illegal,
and what a possible work-around would be?

Thanks in advance.

--
__________________________________________________________

Shawn Kendall               Full Sail Real World Education
Course Director             3300 University BLVD
Real Time 3D for Gaming     Winter Park FL 32792
[EMAIL PROTECTED]       http://www.fullsail.com
__________________________________________________________

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

Reply via email to