Skip to main content

[JAVA3D-INTEREST] Getting the absolute transform for a named object

3 replies [Last post]
Anonymous

Hello!

Is there a way of getting the absolute transform for a named object when the
path to the root of the scenegraph has SharedGroups?

I use Xj3D to load my VRML-scene, and it seems that it uses SharedGroups on all
named objects because of DEF/USE.

Thanks,

--
Joachim Bratteli - joachim.bratteli@hrp.no
System Programmer - IFE / OECD Halden Reactor Project
Halden VR Centre - http://www.ife.no/vr/

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pepe
Offline
Joined: 2003-06-10
Points: 0

I'm wondering at what step you would need that information.
Can you enlighten us on the goal you would like to achieve?

Joachim Bratteli

The absolute transformation is intresting when there is an external source
giving an absolute position or rotation in the world for the new position of an
object. I need to subtract the current absolute transformation from the external
absolute position or rotation to transform the object into place.

I wonder if the only solution is to recursivly traverse the scenegraph and
create scenegraphpath for each object that needs these absolute paths, and then
do a getLocalToVWorld() on the object with the given scenegraphpath.

Anyone done this?

java3d-interest@javadesktop.org wrote:

> I'm wondering at what step you would need that information.
> Can you enlighten us on the goal you would like to achieve?
> ---
> [Message sent by forum member 'pepe' (frederic barachant)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=23962&#23962
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>
>
>

--
Joachim Bratteli - joachim.bratteli@hrp.no
System Programmer - IFE / OECD Halden Reactor Project
Halden VR Centre - http://www.ife.no/vr/

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

pepe
Offline
Joined: 2003-06-10
Points: 0

you'd need to do that in a TransformGroup just before the Link node that links the SharedGroup.
Maybe, instead of doing a scenegraph scan for nodes, you should list them in a static class and reference them when adding them in the universe.