File: StereoCamera.html

package info (click to toggle)
three.js 111%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,184 kB
  • sloc: javascript: 133,174; makefile: 24; sh: 1
file content (65 lines) | stat: -rw-r--r-- 2,162 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!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>

		<h1>立体相机([name])</h1>

		<p class="desc">
			双透视摄像机(立体相机)常被用于创建[link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph](3D立体影像)或者[link:https://en.wikipedia.org/wiki/parallax_barrier Parallax Barrier](视差效果)。

		</p>


		<h2>示例</h2>

		<p>[example:webgl_effects_anaglyph effects / anaglyph ]</p>
		<p>[example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]</p>
		<p>[example:webgl_effects_stereo effects / stereo ]</p>

		<p>
			这些类在以上示例中的文件内部使用:<br /><br />
		[link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/AnaglyphEffect.js examples/js/effects/AnaglyphEffect.js]<br /><br />
		[link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/ParallaxBarrierEffect.js examples/js/effects/ParallaxBarrierEffect.js]<br /><br />
		[link:https://github.com/mrdoob/three.js/blob/master/examples/js/effects/StereoEffect.js examples/js/effects/StereoEffect.js]<br /><br />
		</p>


		<h2>构造器</h2>

		<h3>[name]( )</h3>

		<h2>属性</h2>

		<h3>[property:Float aspect]</h3>
		<p>默认值是*1*.</p>

		<h3>[property:Float eyeSep]</h3>
		<p>默认值是*0.064*.</p>

		<h3>[property:PerspectiveCamera cameraL]</h3>
		<p>左摄像机,它被加入到了[page:Layers layer 1]中 —— 需要被左摄像机渲染的物体也应当要加入到这一层中。</p>

		<h3>[property:PerspectiveCamera cameraR]</h3>
		<p>右摄像机,它被加入到了[page:Layers layer 2]中 —— 需要被右摄像机渲染的物体也应当要加入到这一层中。</p>

		<h2>方法</h2>

		<h3>[method:null update]( [param:PerspectiveCamera camera] )</h3>
		<p>
			基于摄像机通过场景,更新立体摄像机。
		</p>

		<h2>源代码</h2>

		<p>
			[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
		</p>
	</body>
</html>