Artur Biesiadowski wrote:
>
> Justin Couch wrote:
>
> > For example
> > - tell me how WakeupOnSensorEntry works?
>
> I think that Sensor class javadoc is quite enough to make sense out of
> it.
>
> Example of usage of WakeupOnSensorEntry class would be (my example after
> reading docs for one minute) creating touch-and-expand menu (Johny
> Mnemonic style) for virtual glove. View (head) would be in same place,
> but hand (Sensor) would enter menu bounds and behaviour would fire up
> (expanding menu with a lot of fx).

How do you know where the sensor is in the scenegraph? There are 3
defined sensors that Java3D works with - Head, dominant and non-dominant
hand. Head tracking seems to be better documented now, how the hand
sensors work is not particularly well documented. Are sensors related to
the local coordinate system, do they belong in the global or maybe even
the view coordinate system? Sensors are defined to be part of the
SceneGraph superstructure - just like audio devices, universe, locale et
al. They are not effected by transformations etc.

For the majority of uses, Sensors don't even make it into the J3D
evaluation of the scenegraph. For example, I use a mo-cap suit to drive
a character in the virtual world. The closest I can see to how this
works is that you have your own behaviour such as WakeupOnElapsedFrame
that then polls the InputDevice object for all the sensor information
and makes its own modifications to the scenegraph. Now if one of my
sensors relate to the hand of that virtual person comes near the menu,
does it trigger an event? From the newbie perspective I would think so -
it is a "sensor" after all, why doesn't it trigger the behaviour?

Ok, so that particular example is getting a little detailed, but again
another example of how incompletely specified parts of the spec are.
InputDevice handling is almost a magic box ATM. AudioDevice is also the
same (see the recent posts on people wanting to implement their own
AudioDevice using JMF or JavaSound) Only those that have done a lot of
work trying to drive it seem to know what it really does and even then
it comes up with a lot of surprises.

--
Justin Couch                         http://www.vlc.com.au/~justin/
Freelance Java Consultant                  http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

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