当前位置:首页 > 编程开发

sandy 摄像机

webgou17年前 (2009-12-11)编程开发113

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

扫描二维码推送至手机访问。

版权声明:本文由知了博客发布,如需转载请注明出处。

本文链接:https://www.webgou.info/?id=96

标签: sandy
分享给朋友:

“sandy 摄像机” 的相关文章

Java正则表达式入门

众所周知,在程序开发中,难免会遇到需要匹配、查找、替换、判断字符串的情况发生,而这些情况有时又比较复杂,如果用纯编码方式解决,往往会浪费程序员的时间及精力。因此,学习及使用正则表达式,便成了解决这一矛盾的主要手段。 大 家都知道,正则表达式是一种可以用于模式匹配和替换的规范...…

vc串口编程

1.打开串口:在Window 95下串行口作为文件处理,使用文件操作对串行口进行处理。使用CreateFile()打开串口,CreateFile()将返回串口的句柄。HANDLE CreateFile(LPCTSTR lpFileName, // pointer to name of the fil…

CMMB系统

 CMMB采用卫星和地面网络相结合的“天地一体、星网结合、统一标准、全国漫游”方式,实现全国…

iOS vs Android

iOS vs Android…

Android = Java

最近整个Java阵营都陷于一场讨论Oracle和Google之间关于Android平台的专利诉讼官司的混战中。我已经在很多地方都发表过我的观点,但这确实是个 重大的话题,需要在所有地方反复重申这个观点 … 所以,这篇文章就是要再次的完全的揭露事实真相。 第八大千禧年问题: Androi…

理解EnterCriticalSection 临界区

保证只有一个线程访问一段代码…

发表评论

访客

看不清,换一张

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