> Date: Tue, 9 Oct 2001 13:09:43 -0500 > From: Alex Terrazas <[EMAIL PROTECTED]> > > I still haven't head from anyone regarding how to setup head tracking. > > It seems to me that there are two basic options: > > 1) To have the Sensor adjust the TransformGroup above the ViewPlatform > through a SensorBehavior. > > 2) Use the setHeadIndex() method.
Definitely use the setHeadIndex() method. This is part of the core J3D API precisely for performance reasons. The head track updates get processed in the inner loops of the view code to ensure that view changes track the head position with minimal latency. > So far, though, I haven't been able to use the second approach because I > cannot get Java3D to recognize that tracking is available. In your last message you said that the PhysicalEnvironment method getTrackingAvailable() was returning false. This method simply checks a flag to see if the head index is less than the number of sensors in the PhysicalEnvironment and that the sensor at the head index is not null. You may want to double check that you set the sensor count and actually set the sensor in addition to calling setHeadIndex(). You can set the sensor count in a PhysicalEnvironment constructor or use setSensorCount(). The sensor is set by using setSensor(). -- Mark Hood =========================================================================== 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".
