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 (69 lines) | stat: -rw-r--r-- 2,136 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
66
67
68
69
<!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">
		Dual [page:PerspectiveCamera PerspectiveCamera]s used for effects such as
		[link:https://en.wikipedia.org/wiki/Anaglyph_3D 3D Anaglyph] or [link:https://en.wikipedia.org/wiki/parallax_barrier Parallax Barrier].
		</p>


		<h2>Example</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>
		This class is used internally in the files<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 />
		used in the above examples.
		</p>


		<h2>Constructor</h2>

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

		<h2>Properties</h2>

		<h3>[property:Float aspect]</h3>
		<p>Default is *1*.</p>

		<h3>[property:Float eyeSep]</h3>
		<p>Default is *0.064*.</p>

		<h3>[property:PerspectiveCamera cameraL]</h3>
		<p>Left camera. This is added to [page:Layers layer 1] - objects to be rendered
		by the left camera must also be added to this layer.</p>

		<h3>[property:PerspectiveCamera cameraR]</h3>
		<p>Right camera.This is added to [page:Layers layer 2] - objects to be rendered
		by the right camera must also be added to this layer.</p>


		<h2>Methods</h2>

		<h3>[method:null update]( [param:PerspectiveCamera camera] )</h3>
		<p>
		Update the stereo cameras based on the camera passed in.
		</p>

		<h2>Source</h2>

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