Chapter08-UserInteractivity.pdf

(6033 KB) Pobierz
X3D Graphics for Web Authors
Chapter 8
User Interactivity
Nobody knows the kind of trouble we're in.
Nobody seems to think it all might happen again.
Gram Parsons, “One Hundred Years from Now”
804025858.007.png 804025858.008.png
Chapter Overview
804025858.001.png 804025858.002.png
Overview: User Interactivity
User interactivity is initiated via sensor nodes,
which capture user inputs and are hooked up
to provide appropriate responses
TouchSensor senses pointing device (mouse, etc.)
PlaneSensor is a drag sensor that converts x-y
pointer motion to move objects in a plane
CylinderSensor and SphereSensor are drag sensors
that convert x-y pointer motion to rotate objects
KeySensor and StringSensor capture keyboard input
Interactivity sensors initiate animation chains
804025858.003.png 804025858.004.png
Related nodes
Chapter 4, Viewing and Navigation nodes
Anchor: pointing device
Selects another Viewpoint or loads another scene
Show description when pointing device is over geometry
Billboard rotates child geometry to face user
Collision reports if viewer collides with geometry
Chapter 12, Environment Sensor and Sound
LoadSensor reports when media asset is loaded
ProximitySensor reports when user is in vicinity
VisibilitySensor indicates when user's current
camera view can see sensed geometry
804025858.005.png 804025858.006.png
Zgłoś jeśli naruszono regulamin