Class org.papervision3d.core.proto.CameraObject3D

org.papervision3d.core.proto.DisplayObject3D
   +--org.papervision3d.core.proto.CameraObject3D

Description

The CameraObject3D class.

Field Index

cos, DEFAULT_FOCUS, DEFAULT_Z, DEFAULT_ZOOM, focus, sin, sort, zoom

Inherited from DisplayObject3D

container, DEGREES, extra, PERCENT, rotationX, rotationY, rotationZ, scaleX, scaleY, scaleZ, scene, screenZ, visible, x, y, z, ZERO

Method Index

new CameraObject3D()

transform()

Inherited from DisplayObject3D

project(), render(), toString()

Constructor Detail

CameraObject3D

public function CameraObject3D(zoom:Number, focus:Number, initObject:Object)

The CameraObject3D constructor will let you set up the view of a scene that will be rendered.
Its position can be specified in the initObject.
The default value of z is DEFAULT_Z.
FreeCamera3Dコンストラクタはレンダリングされる場面の視点をセットアップすることが出来ます。 initObjectで位置を指定することができます。
zのデフォルト値はDEFAULT_Zです。

Parameters

zoom[optional] - This value specifies the scale at which the 3D objects are rendered. Higher values magnify the scene, compressing distance. Use it in conjunction with focus. The default value is 2.
[任意] この値は3Dオブジェクトがレンダリングされるスケールを指定します。
距離を圧縮して、より高い値は場面を拡大します。
焦点に関連してそれを使用してください。
デフォルト値は2です。

focus[optional] - This value is a positive number representing the distance of the observer from the front clipping plane, which is the closest any object can be to the camera. Use it in conjunction with zoom. The default value is 100.
[任意] この値は前のクリッピング面から観察者の距離を表す正の数です。
(その正の数はカメラにはいくつかの物が最も近くに、あることができるということです)。
ズームに関連してそれを使用してください。
デフォルト値は100です。

initObject[optional] - An object that contains user defined properties with which to populate the newly created DisplayObject3D.
[任意] - ユーザを含むオブジェクトは新たに作成されたDisplayObject3Dに居住する特性を定義しました。

It includes x, y, z, rotationX, rotationY, rotationZ, scaleX, scaleY scaleZ and a user defined data object. それはx、y、z、rotationX、rotationY、rotationZ、scaleX、scaleY scaleZ、およびユーザの定義されたデータ・オブジェクトを含んでいます。

If data is not an object, it is ignored. All properties of the data field are copied into the new instance. The properties specified with data are publicly available. データがオブジェクトでないなら、それは無視されます。
データ・フィールドのすべての特性が新しいインスタンスにコピーされます。
データで指定された特性は公的に利用可能です。

  • sort: A Boolean value that determines whether the 3D objects are z-depth sorted between themselves when rendering. The default value is true.
    種類: 3Dオブジェクトがレンダリングするとき自分たちの間で分類されたz-深さであるかどうか決定するブール値。 デフォルト値はtrueです。

Field Detail

zoom

public zoom:Number
This value specifies the scale at which the 3D objects are rendered. Higher values magnify the scene, compressing distance. Use it in conjunction with focus.
この値は3Dオブジェクトがレンダリングされるスケールを指定します。
距離を圧縮して、より高い値は場面を拡大します。
焦点に関連してそれを使用してください。

focus

public focus:Number
This value is a positive number representing the distance of the observer from the front clipping plane, which is the closest any object can be to the camera. Use it in conjunction with zoom.
この値は前のクリッピング面から観察者の距離を表す正の数です。(その正の数はカメラにはいくつかの物が最も近くに、あることができるということです)。 ズームに関連してそれを使用してください。

Higher focus values tend to magnify distance between objects while allowing greater depth of field, as if the camera had a wider lenses. One result of using a wide angle lens in proximity to the subject is an apparent perspective distortion: parallel lines may appear to converge and with a fisheye lens, straight edges will appear to bend.
より高い焦点値は、よりすばらしい被写界深度を許容している間、物の間の距離を拡大する傾向があります、まるでカメラには、より広いレンズがあるかのように。 対象の近接に広角レンズを使用するという1つの結果が見かけの見解ひずみです: 平行線は一点に集まるように見えるかもしれません、そして、魚眼レンズで、まっすぐな縁は曲がるように見えるでしょう。

Because different lenses generally require a different camerasubject distance to preserve the size of a subject, changing the angle of view can indirectly distort perspective, changing the apparent relative size of the subject and foreground.
異なったレンズが対象のサイズを保存するために一般に異なったcamerasubject距離を必要とするので、画角を変えると、間接的に見解を歪めることができます、対象とフォアグランドの見かけの相対的なサイズを変えて。

sort

public sort:Boolean
A Boolean value that determines whether the 3D objects are z-depth sorted between themselves when rendering.
3Dオブジェクトがレンダリングするとき自分たちの間で分類されたz-depth(深度)であるかどうか決定するブール値。

DEFAULT_Z

static public DEFAULT_Z:Number
The default z position of a new camera.
新規カメラオブジェクトを作成する際のデフォルトのz座標
デフォルト値は[ -1000 ]

DEFAULT_ZOOM

static public DEFAULT_ZOOM:Number

The default zoom value of a new camera.
カメラオブジェクトを新規作成する際のデフォルトズーム値
デフォルト値は[ 3 ]

DEFAULT_FOCUS

static public DEFAULT_FOCUS:Number
The default forcus value of a new camera.
カメラオブジェクトを新規作成する際のデフォルトフォーカス値
デフォルト値は[ 500 ]

sort

static public sort:Boolean
A Boolean value that determines whether the 3D objects are z-depth sorted between themselves when rendering.
3Dオブジェクトがレンダリングするとき自分たちの間で分類されたz-depth(深度)であるかどうか決定するブール値。

viewport

static public viewport:Viewport
A Viewport object that when crop is active, contains the region of the screen to crop to.

作物であるときに、アクティブであり、実るスクリーンの領域を含むViewportオブジェクト。

sin

private sin:Number3D
[internal-use] A Number3D object that stores the sin of the camera's 3D angle. Internal use only.
[内部で使用]カメラの3D角度のcosを格納するNumber3Dクラスオブジェクト。
内部の使用専用。

cos

private cos:Number3D
[internal-use] A Number3D object that stores the cos of the camera's 3D angle. Internal use only.
[内部で使用]カメラの3D角度のsinを格納するNumber3Dクラスオブジェクト。
内部の使用専用。

Method Detail

transform

public function transform()

Transform coordinates from the world reference frame to the observer's one.
座標を世界基準座標系から観側者の1つに変えてください。