Luis Endo wrote:
Hi,
I'm writing an application where the user can walk throw the scene
using KeyNavigatorBehavior. I need to know the viewer position and the
direction he is looking at.
I've been trying to use bgrp.getLocalToVworld(tmatrix) (where bgrp is
my BranchGroup object) to get the
Richard Bone wrote:
To get the absolute position, traverse the scenegraph and add all the
vectors together that precede the target object. ie. Call it on the
root, then the child of the root, etc.
Hi,
this will work, but it's not the simplest way.
If you call node.getLocalToVWorld you will get a m
Hi Gili,
The problem is not specific to Java3D or OpenGL, but is really
inherent in the history of graphics. The basic problem of
graphics has been performance, given the number of screen
pixels necessary for convincing the eye versus the speed and
memory capacity of computers. In order to overcom
Hi,
I'm writing an application where the user can walk throw the scene using KeyNavigatorBehavior. I need to know the viewer position and the direction he is looking at.
I've been trying to use bgrp.getLocalToVworld(tmatrix) (where bgrp is my BranchGroup object) to get the Transform3D (tm
I think you can call countChildren() (or something similar). This
returns the number of children attached to that group. You would have
to recursively call this on all the children and add them up.
Rich Bone
Birmingham University
=