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

sandy 摄像机

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

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 摄像机” 的相关文章

ios控件: UINavigationBar

出于对ios吸金创造的神话的崇拜,接触ipad/iphone/imac等apple的产品,抠抠日子算算,也有快一年的时间。这些都是外话,还是看看文章的主题吧! ios应用程序与人交互,这不得不牵涉到界面。要是一些童鞋接触过ms windows、qt、gtk等,理斛这些概念就非常的容易了。 UINa…

fatal error C1853 预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反)

   C1853 编译器错误:fatal error C1853: 'pjtname.pch' precompiled header file is from a previous version of the compiler, 解决办法…

软件测试的分类

A.白盒测试…

35个强大的UI设计教程

下面是35个非常不错的UI设计的的教程及效果图,非常不错哦。不但教你如何做一些特效,同样教你如何做UI布局和界面设计。当然,他们风格迥异,也基本上都是Web页面上的。都非常不错。希望你喜欢。(点击下面的图片可以打开相关的教程) Old Paper Layout   Professiona…

wince串口驱动相关

WindowsCE下的串口驱动程序能够处理所有I/O行为类似串口的设备,包 括基于16450、16550UART(通用异步收发芯片)的设备和一些采用DMA的设备,常见的有9针串口、红外I/O口、Modem等。 在%_WINCEROOT%\Public\Common\OAK\Drivers\Seria…

注入dll的技术

目前windows下注入dll的技术大体上就是两种1:钩子 SetWindowsHook2:创建远程线程 CreateRemoteThread尽管都能实现远程注入dll…

发表评论

访客

看不清,换一张

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