|
@@ -1,4 +1,4 @@
|
|
|
-<h1>PerspectiveCamera ← <a href="javascript:goTo('cameras/Camera')">Camera</a> ← <a href="javascript:goTo('core/Object3D')">Object3D</a></h1>
|
|
|
+<h1>PerspectiveCamera ← [page:Camera] ← [page:Object3D]</h1>
|
|
|
|
|
|
<div>Camera with perspective projection.</div>
|
|
|
|
|
@@ -10,33 +10,33 @@ scene.add( camera );
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
-<h3>PerspectiveCamera( fov <a href="javascript:goTo('core/Number')">Number</a>, aspect <a href="javascript:goTo('core/Number')">Number</a>, near <a href="javascript:goTo('core/Number')">Number</a>, far <a href="javascript:goTo('core/Number')">Number</a> )</h3>
|
|
|
+<h3>PerspectiveCamera( fov [page:Number], aspect [page:Number], near [page:Number], far [page:Number] )</h3>
|
|
|
|
|
|
|
|
|
<h2>Properties</h2>
|
|
|
|
|
|
-<h3>fov <a href="javascript:goTo('core/Number')">Number</a></h3>
|
|
|
+<h3>fov [page:Number]</h3>
|
|
|
<div>Camera frustum vertical field of view.</div>
|
|
|
|
|
|
-<h3>aspect <a href="javascript:goTo('core/Number')">Number</a></h3>
|
|
|
+<h3>aspect [page:Number]</h3>
|
|
|
<div>Camera frustum aspect ratio.</div>
|
|
|
|
|
|
-<h3>near <a href="javascript:goTo('core/Number')">Number</a></h3>
|
|
|
+<h3>near [page:Number]</h3>
|
|
|
<div>Camera frustum near plane.</div>
|
|
|
|
|
|
-<h3>far <a href="javascript:goTo('core/Number')">Number</a></h3>
|
|
|
+<h3>far [page:Number]</h3>
|
|
|
<div>Camera frustum far plane.</div>
|
|
|
|
|
|
|
|
|
<h2>Methods</h2>
|
|
|
|
|
|
-<h3>setLens( focalLength <a href="javascript:goTo('core/Number')">Number</a>, frameSize <a href="javascript:goTo('core/Number')">Number</a> )</h3>
|
|
|
+<h3>setLens( focalLength [page:Number], frameSize [page:Number] )</h3>
|
|
|
<div>
|
|
|
Uses focal length (in mm) to estimate and set FOV 35mm (fullframe) camera is used if frame size is not specified.<br />
|
|
|
Formula based on <a href="http://www.bobatkins.com/photography/technical/field_of_view.html" target="_blank">http://www.bobatkins.com/photography/technical/field_of_view.html</a>
|
|
|
</div>
|
|
|
|
|
|
-<h3>setViewOffset( fullWidth <a href="javascript:goTo('core/Number')">Number</a>, fullHeight <a href="javascript:goTo('core/Number')">Number</a>, x <a href="javascript:goTo('core/Number')">Number</a>, y <a href="javascript:goTo('core/Number')">Number</a>, width <a href="javascript:goTo('core/Number')">Number</a>, height <a href="javascript:goTo('core/Number')">Number</a> )</h3>
|
|
|
+<h3>setViewOffset( fullWidth [page:Number], fullHeight [page:Number], x [page:Number], y [page:Number], width [page:Number], height [page:Number] )</h3>
|
|
|
<div>
|
|
|
Sets an offset in a larger frustum. This is useful for multi-window or multi-monitor/multi-machine setups.<br /><br />
|
|
|
|
|
@@ -80,4 +80,4 @@ Updates camera's projection matrix. Must be called after change of parameters.
|
|
|
|
|
|
<h2>Source</h2>
|
|
|
|
|
|
-<div><a href="https://github.com/mrdoob/three.js/blob/master/src/cameras/PerspectiveCamera.js" target="_blank">src/cameras/PerspectiveCamera.js</a></div>
|
|
|
+<div><a href="https://github.com/mrdoob/three.js/blob/master/src/[path].js" target="_blank">src/[path].js</a></div>
|