Thx for the fast reply Paul. I'm being able to grab and move the objects using the wand....but i can't perform any scaling, rotation, or translation. Not sure why. It's reading all my button values, it's just not interpreting them for the scale and rotate behaviors.
Here is my config file, it'll be great if someone can find what's wrong with it:
(NewDevice glasses TrackerInputDevice)
// Create logical names for the available sensors in the specified input
// devices. The last argument is the sensor's index in the input device.
//
(NewSensor head glasses 0)
(NewSensor wand glasses 1)
(NewSensor valuator glasses 2)
// Set the 6DOF mouse sensor hotspot in the local sensor coordinate system.
(SensorAttribute wand Hotspot (0.0 0.0 -0.10))
(SensorAttribute wand Hotspot (0.0 0.0 -0.10))
// Create a view platform behavior for the 6DOF sensor.
//
(NewViewPlatformBehavior vpb com.sun.j3d.utils.behaviors.vp.WandViewBehavior)
//
(NewViewPlatformBehavior vpb com.sun.j3d.utils.behaviors.vp.WandViewBehavior)
(ViewPlatformBehaviorProperty vpb Sensor6D wand)
(ViewPlatformBehaviorProperty vpb ButtonAction6D 2 RotateCCW) // Not working
(ViewPlatformBehaviorProperty vpb ButtonAction6D 1 GrabView) // This is working
(ViewPlatformBehaviorProperty vpb ButtonAction6D 0 TranslateForward) // Not working
(ViewPlatformBehaviorProperty vpb ButtonAction6D 2 RotateCCW) // Not working
(ViewPlatformBehaviorProperty vpb ButtonAction6D 1 GrabView) // This is working
(ViewPlatformBehaviorProperty vpb ButtonAction6D 0 TranslateForward) // Not working
(ViewPlatformBehaviorProperty vpb Sensor2D valuator)
(ViewPlatformBehaviorProperty vpb MatrixIndices2D 3 11)
(ViewPlatformBehaviorProperty vpb ReadAction2D Scale)
(ViewPlatformBehaviorProperty vpb MatrixIndices2D 3 11)
(ViewPlatformBehaviorProperty vpb ReadAction2D Scale)
// Default normal translation speed is 0.1 physical meters per second.
(ViewPlatformBehaviorProperty vpb TranslationSpeed
100.0 PhysicalMeters PerFrame)
(ViewPlatformBehaviorProperty vpb AccelerationTime 2)
(ViewPlatformBehaviorProperty vpb TranslationSpeed
100.0 PhysicalMeters PerFrame)
(ViewPlatformBehaviorProperty vpb AccelerationTime 2)
// Default rotation coordinates are Sensor.
(ViewPlatformBehaviorProperty vpb RotationCoords Head)
(ViewPlatformBehaviorProperty vpb RotationCoords Head)
// Default 6DOF sensor echo is Gnomon
(ViewPlatformBehaviorProperty vpb EchoSize 0.015)
(ViewPlatformBehaviorProperty vpb EchoType Beam)
(ViewPlatformBehaviorProperty vpb EchoSize 0.015)
(ViewPlatformBehaviorProperty vpb EchoType Beam)
// Default 6DOF sensor echo color is white
(ViewPlatformBehaviorProperty vpb EchoColor 1.0 0.7 0.0)
(ViewPlatformBehaviorProperty vpb EchoColor 1.0 0.7 0.0)
// Default 6DOF sensor transparency is 0.0 (opaque)
(ViewPlatformBehaviorProperty vpb EchoTransparency 0.4)
(ViewPlatformBehaviorProperty vpb EchoTransparency 0.4)
// Create a new view platform and set the view platform behavior.
(NewViewPlatform vp)
(ViewPlatformProperty vp ViewPlatformBehavior vpb)
(NewViewPlatform vp)
(ViewPlatformProperty vp ViewPlatformBehavior vpb)
// Create a new screen object and associate it with a logical name and a
// number.
// number.
(NewScreen center 0)
// Set the actual available image area. This measured as 0.350 meters in
// width and 0.245 meters in height for the monitor in the sample setup when
// running in stereo resolution.
//
(ScreenAttribute center PhysicalScreenWidth 3.048)
(ScreenAttribute center PhysicalScreenHeight 2.438)
(ScreenAttribute center WindowSize NoBorderFullScreen)
// width and 0.245 meters in height for the monitor in the sample setup when
// running in stereo resolution.
//
(ScreenAttribute center PhysicalScreenWidth 3.048)
(ScreenAttribute center PhysicalScreenHeight 2.438)
(ScreenAttribute center WindowSize NoBorderFullScreen)
// Set the TrackerBaseToImagePlate transform for this screen. This transforms
// points in tracker base coordinates to image plate coordinates.
(ScreenAttribute center TrackerBaseToImagePlate
(( 1.0 0.0 0.0 1.524)
(0.0 1.0 0.0 0.0)
( 0.0 0.0 1.0 1.524)))
// points in tracker base coordinates to image plate coordinates.
(ScreenAttribute center TrackerBaseToImagePlate
(( 1.0 0.0 0.0 1.524)
(0.0 1.0 0.0 0.0)
( 0.0 0.0 1.0 1.524)))
// Create a physical environment. This contains the available input devices,
// audio devices, and sensors, and defines the coexistence coordinate system.
//
(NewPhysicalEnvironment CenterScreen)
// audio devices, and sensors, and defines the coexistence coordinate system.
//
(NewPhysicalEnvironment CenterScreen)
// Register the input devices defined in this file.
//
(PhysicalEnvironmentAttribute CenterScreen InputDevice glasses)
//
(PhysicalEnvironmentAttribute CenterScreen InputDevice glasses)
// Register the sensor which will drive head tracking.
//
(PhysicalEnvironmentAttribute CenterScreen HeadTracker head)
//
(PhysicalEnvironmentAttribute CenterScreen HeadTracker head)
// Define coexistence coordinates.
(PhysicalEnvironmentAttribute CenterScreen
CoexistenceToTrackerBase
((1.0 0.0 0.0 0.0)
( 0.0 1.0 0.0 1.219)
( 0.0 0.0 1.0 0.0)))
// Define the physical body.
//
// The head origin is halfway between the eyes, with X extending to the right,
// Y up, and positive Z extending into the skull.
//
(NewPhysicalBody CAVEUser)
(PhysicalEnvironmentAttribute CenterScreen
CoexistenceToTrackerBase
((1.0 0.0 0.0 0.0)
( 0.0 1.0 0.0 1.219)
( 0.0 0.0 1.0 0.0)))
// Define the physical body.
//
// The head origin is halfway between the eyes, with X extending to the right,
// Y up, and positive Z extending into the skull.
//
(NewPhysicalBody CAVEUser)
// Set the interpupilary distance. This sets the LeftEyePosition and
// RightEyePosition to offsets of half this distance along both directions of
// the X axis.
//
(PhysicalBodyAttribute CAVEUser StereoEyeSeparation 0.066)
// RightEyePosition to offsets of half this distance along both directions of
// the X axis.
//
(PhysicalBodyAttribute CAVEUser StereoEyeSeparation 0.066)
// Define the position and orientation of the head relative to the tracker
// mounted on the head.
//
(PhysicalBodyAttribute CAVEUser HeadToHeadTracker ((1.0 0.0 0.0 0.070)
(0.0 1.0 0.0 0.0)
(0.0 0.0 1.0 0.0)))
// Create a view using the defined screens, PhysicalEnvironment, and
// PhysicalBody.
//
(NewView view0)
(ViewAttribute view0 Screen center)
(ViewAttribute view0 PhysicalEnvironment CenterScreen)
(ViewAttribute view0 PhysicalBody CAVEUser)
// mounted on the head.
//
(PhysicalBodyAttribute CAVEUser HeadToHeadTracker ((1.0 0.0 0.0 0.070)
(0.0 1.0 0.0 0.0)
(0.0 0.0 1.0 0.0)))
// Create a view using the defined screens, PhysicalEnvironment, and
// PhysicalBody.
//
(NewView view0)
(ViewAttribute view0 Screen center)
(ViewAttribute view0 PhysicalEnvironment CenterScreen)
(ViewAttribute view0 PhysicalBody CAVEUser)
(ViewAttribute view0 ViewPlatform vp)
// Enable stereo viewing. Enable head tracking to get the position of the eyes
// with respect to coexistence.
//
(ViewAttribute view0 StereoEnable true)
(ViewAttribute view0 TrackingEnable true)
(ViewAttribute view0 FrontClipDistance 0.01)
(ViewAttribute view0 BackClipDistance 500.0)
(ViewAttribute view0 BackClipDistance 500.0)
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster. =========================================================================== 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".