SandyCam Help.
The ViewFinder
This is the camera view of the Sandy world.
The ViewFinder(观景器) has a crosshair(十字线), that can be turned on or off, using the check box in the lower right corner.
The CameraControl
With the CameraControl in the right pane you control basic movements of the camera within the world.
Movements relative to the camera coordinate system.
Control | Description | Function |
---|---|---|
Tilt | Rotation around the camera x axis | tilt( angle ) 0 to 360 degrees |
Roll | Rotation around the camera z axis | roll( angle ) -180 to 180 deg. |
Pan | Rotation around the camera y axis | pan( angle ) 0 to 360 deg. |
Upwards | Translation along the camera y axis | moveUpwards( distance ) |
Sideways | Translation along the camera x axis | moveSideways( distance ) |
Forward | Translation along the camera z axis | moveForward( distance ) |
Note: The moveUpwards() function seems to move the camera in the opposite direction in this version, which is probably a bug.
Movements relative to the world ( global ) coordinate system
Control | Description | Function |
---|---|---|
RotX | Rotation around an axis through the camera and parallel to the global x axis | rotateX( angle ) |
RotY | Rotation around an axis through the camera and parallel to the global y axis | rotateY( angle ) |
RotZ | Rotation around an axis through the camera and parallel to the global z axis | rotateZ( angle ) |
xPos | Sets the x position of the camera in the global system | setPosition( x, y, z ) |
yPos | Sets the y position of the camera in the global system | setPosition( x, y, z ) |
zPos | Sets the z position of the camera in the global system | setPosition( x, y, z ) |
Camera Position | Show and set the camera position at [x,y,z] in the global system | setPosition( x, y, z ) |
Reset | Resets Camera Position and all controls | |
Look At / Set | Places a global coordinate point in the center of the camera view - direction of view. | lookAt( x, y, z ) |
Focal | Sets the camera focal ( nodal ) distance - in effect a zoom lens. | setFocal( nodal distance ) |
Notes:
1. When you use Look At to point the camera in a certain direction, earlier rotations in the camera's own coordinate system are lost. The corresponding controls are not updated.
2. The reset button will reset the the camera position ad orientation, as well as all controls except the focal distance control.
来源:http://www.petitpub.com/labs/media/flash/sandy/examples/camera/help.html