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

sandy 摄像机

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

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

freopen (stdin stdout ) 详解+实例

在flac库中看到if(fin != stdin)这种用法,记下.…

iOS的多核编程和内存管理

这次的文章集中与iOS的多核编程和内存管理,为什么?因为iPad 2已经是双核CPU了!虽然iPad 1的应用已经不慢了,但大家完全可以使用苹果的多核编程框架来写出更加responsive的应用。多核运算在iOS中concurrency编程的框架就是GCD(Grand Central Dispatc…

Android界面互调具体应用方式解析

在Android操作系统中,对于界面的一些操作是用户需要掌握的最基础的知识点。我们可以通过这篇文章对Android界面互调的方法介绍,来初步了解一下再Android系统中对于界面的一些应用技巧。...…

singleton模式

singleton模式 #include "stdio.h" class singleton { private static singleton instance = new singleton();//不能在这里初始化 singleton(){} ~singleton(){} publi…

关于函数指针

Typedef 声明有助于创建平台无关类型,甚至能隐藏复杂和难以理解的语法。不管怎样,使用 typedef 能为代码带来意想不到的好处,通过本文你可以学习用 typedef 避免缺欠,从而使代码更健壮。 typedef 声明,简称 typedef,为现有类型创建一个新的名字。比如人们常常使用 ty…

Java网络编程基础 ServerSocket类使用

由于SSClient使用了流套接字,所以服务程序也要使用流套接字。这就要创建一个ServerSocket对象,ServerSocket有几个构造函数,最简单的是ServerSocket(int port),当使用ServerSocket(int port)创建一个ServerSocket对象,por…

发表评论

访客

看不清,换一张

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