知了博客

集天地之精华,吸日月之灵气

« flash lite 各版本比较搜索引擎大全 »

sandy 摄像机

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

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Arwen Build 90619 Code detection by Codefense  theme by BokeZhuti

Copyright know blog. Some Rights Reserved.站长(msn):webmaster#webgou.info(#换成@) 粤ICP备09183716号