Re: [JAVA3D] How to get viewer position?

2003-08-09 Thread trz
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

Re: [JAVA3D] Getting an objects position

2003-08-09 Thread trz
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

Re: [JAVA3D] Java3D - ugly API?

2003-08-09 Thread Bill Hibbard
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

[JAVA3D] How to get viewer position?

2003-08-09 Thread Luis Endo
  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

Re: [JAVA3D] BranchGroup size

2003-08-09 Thread Richard Bone
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 =