StereoCamera.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>立体相机([name])</h1>
  12. <p class="desc">
  13. 双透视摄像机(立体相机)常被用于创建[link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph](3D立体影像)或者[link:https://en.wikipedia.org/wiki/parallax_barrier Parallax Barrier](视差效果)。
  14. </p>
  15. <h2>示例</h2>
  16. <p>[example:webgl_effects_anaglyph effects / anaglyph ]</p>
  17. <p>[example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]</p>
  18. <p>[example:webgl_effects_stereo effects / stereo ]</p>
  19. <p>
  20. 这些类在以上示例中的文件内部使用:<br /><br />
  21. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/AnaglyphEffect.js examples/js/effects/AnaglyphEffect.js]<br /><br />
  22. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/ParallaxBarrierEffect.js examples/js/effects/ParallaxBarrierEffect.js]<br /><br />
  23. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/StereoEffect.js examples/js/effects/StereoEffect.js]<br /><br />
  24. </p>
  25. <h2>构造器</h2>
  26. <h3>[name]( )</h3>
  27. <h2>属性</h2>
  28. <h3>[property:Float aspect]</h3>
  29. <p>默认值是*1*.</p>
  30. <h3>[property:Float eyeSep]</h3>
  31. <p>默认值是*0.064*.</p>
  32. <h3>[property:PerspectiveCamera cameraL]</h3>
  33. <p>左摄像机,它被加入到了[page:Layers layer 1]中 —— 需要被左摄像机渲染的物体也应当要加入到这一层中。</p>
  34. <h3>[property:PerspectiveCamera cameraR]</h3>
  35. <p>右摄像机,它被加入到了[page:Layers layer 2]中 —— 需要被右摄像机渲染的物体也应当要加入到这一层中。</p>
  36. <h2>方法</h2>
  37. <h3>[method:null update]( [param:PerspectiveCamera camera] )</h3>
  38. <p>
  39. 基于摄像机通过场景,更新立体摄像机。
  40. </p>
  41. <h2>源代码</h2>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </body>
  44. </html>