1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:LineSegments] →
- <h1>摄像机辅助工具([name])</h1>
- <p class="desc">
- 它将会显示摄像机,包括摄像机的视锥体。<br />
- 它使用[page:LineSegments](线段)来显示摄像机视锥体。
- </p>
- <h2>示例</h2>
- <div>[example:webgl_camera WebGL / camera]</div>
- <div>[example:webgl_geometry_extrude_splines WebGL / extrude / splines]</div>
- <code>
- var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
- var helper = new THREE.CameraHelper( camera );
- scene.add( helper );
- </code>
- <h2>构造器</h2>
- <h3>[name]( [param:Camera camera] )</h3>
- <p>
- [page:Camera camera] -- 将会被CameraHelper可视化的相机。<br /><br />
- 为特定的摄像机创建一个新的 [Name]。
- </p>
- <h2>属性</h2>
- <p>请参阅其基类[page:LineSegments]来查看共有属性。</p>
- <h3>[property:Camera camera]</h3>
- <p>将会被可视化的摄像机。</p>
- <h3>[property:object pointMap]</h3>
- <p>它包括了用于可视化相机的点。
- This contains the points used to visualize the camera.</p>
- <h3>[property:object matrix]</h3>
- <p>对[page:Object3D.matrixWorld camera.matrixWorld]的引用。</p>
- <h3>[property:object matrixAutoUpdate]</h3>
- <p>
- 请参阅[page:Object3D.matrixAutoUpdate]。在这里将其设置为*false*,因为辅助工具使用的是
- 相机的[page:Object3D.matrixWorld matrixWorld]。
- </p>
- <h2>方法</h2>
- <p>请参阅其基类[page:LineSegments]来查看共有方法。</p>
- <h3>[method:null update]()</h3>
- <p>基于摄像机的projectionMatrix(投影矩阵)来更新辅助工具。</p>
- <h2>源代码</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|