Ver Fonte

Removed CombinedCamera

Mugen87 há 7 anos atrás
pai
commit
7eb8c25036

+ 0 - 234
docs/examples/cameras/CombinedCamera.html

@@ -1,234 +0,0 @@
-<!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:Camera] &rarr;
-
-		<h1>[name]</h1>
-
-		<div class="desc">A general purpose camera, for setting FOV, Lens Focal Length,
- 		and switching between perspective and orthographic views easily.
- 		Use this only if you do not wish to manage
- 		both an Orthographic and Perspective Camera</div>
-
-		<h2>Examples</h2>
-
-		<div>[example:canvas_camera_orthographic2 camera / orthographic2 ]</div>
-
-		<code>//Create combined camera
-		camera = new THREE.CombinedCamera( window.innerWidth / 2, window.innerHeight / 2, 70, 1, 1000, - 500, 1000 );
-		</code>
-
-		<h2>Constructor</h2>
-
-
-		<h3>[name]([page:Number width], [page:Number height], [page:Number fov], [page:Number near], [page:Number far], [page:Number orthoNear], [page:Number orthoFar])</h3>
-		<div>
-		width -- Camera frustum width.<br />
-		height -- Camera frustum height.<br />
-		fov — Camera frustum vertical field of view in perspective view.<br />
-		near — Camera frustum near plane in perspective view.<br />
-		far — Camera frustum far plane in perspective view.<br />
-		orthoNear — Camera frustum near plane in orthographic view.<br />
-		orthoFar — Camera frustum far plane in orthographic view.
-		</div>
-		<div>
-		Creates a [name]. This initializes 2 cameras, an OrthographicCamera and a PerspectiveCamera. The default is the perspective Camera.
-		</div>
-
-
-		<h2>Properties</h2>
-
-
-
-		<h3>[property:Number fov]</h3>
-		<div>
-		Gets or sets the camera frustum vertical field of view in perspective view.
-		</div>
-
-		<h3>[property:Float aspect]</h3>
-		<div>Camera frustum aspect ratio, usually the canvas width / canvas height.</div>
-
-		<h3>[property:number left]</h3>
-		<div>
-		Gets or sets the camera frustum left plane in orthographic view.
-		</div>
-
-		<h3>[property:Number right]</h3>
-		<div>
-		Gets or sets the camera frustum right plane in orthographic view.
-		</div>
-
-		<h3>[property:number top]</h3>
-		<div>
-		Gets or sets the camera frustum top plane in orthographic view.
-		</div>
-
-		<h3>[property:Number bottom]</h3>
-		<div>
-		Gets or sets the camera frustum bottom plane in orthographic view.
-		</div>
-
-		<h3>[property:number zoom]</h3>
-		<div>
-		Gets or sets the zoom factor of the camera.
-		</div>
-
-		<h3>[property:number near]</h3>
-		<div>
-		Gets camera frustum near plane.
-		</div>
-
-		<h3>[property:number far]</h3>
-		<div>
-		Gets camera frustum far plane.
-		</div>
-
-		<h3>[property:Object view]</h3>
-		<div>
-			Frustum window specification or null.
-			This is set using the [page:CombinedCamera.setViewOffset .setViewOffset] method
-			and cleared using [page:CombinedCamera.clearViewOffset .clearViewOffset].
-		</div>
-
-		<h3>[property:Matrix4 projectionMatrix]</h3>
-		<div>
-		This is the matrix which contains the projection.
-		</div>
-
-		<h3>[property:OrthographicCamera cameraO]</h3>
-		<div>
-		Gets or sets the internal OrthographicCamera used as camera.
-		</div>
-
-		<h3>[property:PerspectiveCamera cameraP]</h3>
-		<div>
-		Gets or sets the internal PerspectiveCamera used as camera.
-		</div>
-
-		<h3>[property:boolean inOrthographicMode]</h3>
-		<div>
-		Gets whether the combinedCamera is in Orthographic Mode.
-		</div>
-
-		<h3>[property:boolean inPerspectiveMode]</h3>
-		<div>
-		Gets whether the combinedCamera is in Perspective Mode.
-		</div>
-
-		<h2>Methods</h2>
-
-		<h3>[method:null setFov]([page:Number fov])</h3>
-		<div>
-		fov --  Camera frustum vertical field of view in perspective view.
-		</div>
-		<div>
-		sets the camera frustum vertical field of view in perspective view.
-		</div>
-
-		<h3>[method:null setZoom]([page:Number zoom])</h3>
-		<div>
-		zoom -- The zoom factor.
-		</div>
-		<div>
-		Sets the zoomfactor.
-		</div>
-
-		<h3>[method:null setLens]([page:number focalLength], [page:Number filmGauge])</h3>
-		<div>
-		focalLength -- The focal length of a lens is defined as the distance from the optical center of a lens (or, the secondary principal point for a complex lens like a camera lens) to the focal point (sensor) when the lens is focused on an object at infinity. <br />
-		filmGauge -- the size of the frame in mm. (default is *35*)
-		</div>
-		<div>
-		Sets the fov based on lens data.
-		</div>
-
-		<h3>[method:null toFrontView]()</h3>
-		<div>
-		Sets the camera to view the front of the target.
-		</div>
-
-		<h3>[method:null toBackView]()</h3>
-		<div>
-		Sets the camera to view the back of the target.
-		</div>
-
-		<h3>[method:null toLeftView]()</h3>
-		<div>
-		Sets the camera to view the left of the target.
-		</div>
-
-		<h3>[method:null toRightView]()</h3>
-		<div>
-		Sets the camera to view the right of the target.
-		</div>
-
-		<h3>[method:null toTopView]()</h3>
-		<div>
-		Sets the camera to view the top.
-		</div>
-
-		<h3>[method:null toBottomView]()</h3>
-		<div>
-		Sets the camera to view the bottom.
-		</div>
-
-		<h3>[method:null setSize]([page:Number width], [page:Number height])</h3>
-		<div>
-		width -- The width of the orthographic view.<br />
-		height -- The height of the orthographic view.
-		</div>
-		<div>
-		Sets the size of the orthographic view.
-		</div>
-
-		<h3>[method:null toOrthographic]()</h3>
-		<div>
-		Change the camera to orthographic view.
-		</div>
-
-		<h3>[method:null toPerspective]()</h3>
-		<div>
-		Change the camera to Perspective view.
-		</div>
-
-		<h3>[method:null updateProjectionMatrix]()</h3>
-		<div>
-		Updates the ProjectionMatrix.
-		</div>
-
-		<h3>[method:Camera copy]( [page:Camera source] )</h3>
-		<div>
-		Copy the properties from the source camera into this one.
-		</div>
-
-		<h3>[method:null setViewOffset]( [page:Float fullWidth], [page:Float fullHeight], [page:Float x], [page:Float y], [page:Float width], [page:Float height] )</h3>
-		<div>
-		fullWidth — full width of multiview setup<br />
-		fullHeight — full height of multiview setup<br />
-		x — horizontal offset of subcamera<br />
-		y — vertical offset of subcamera<br />
-		width — width of subcamera<br />
-		height — height of subcamera<br /><br />
-
-			Sets an offset in a larger [link:https://en.wikipedia.org/wiki/Viewing_frustum viewing frustum].
-			This is useful for multi-window or multi-monitor/multi-machine setups.
-			For an example on how to use it see [page:PerspectiveCamera.setViewOffset PerspectiveCamera].
-		</div>
-
-
-		<h3>[method:null clearViewOffset]()</h3>
-		<div>
-		Removes any offset set by the .setViewOffset method.
-		</div>
-		<h2>Source</h2>
-
-		[link:https://github.com/mrdoob/three.js/blob/master/examples/js/cameras/CombinedCamera.js examples/cameras/CombinedCamera.js]
-	</body>
-</html>

+ 0 - 1
docs/list.js

@@ -362,7 +362,6 @@ var list = {
 		},
 
 		"Plugins": {
-			"CombinedCamera": "examples/cameras/CombinedCamera",
 			"LookupTable": "examples/Lut",
 			"SpriteCanvasMaterial": "examples/SpriteCanvasMaterial"
 		},

+ 0 - 108
editor/js/libs/tern-threejs/threejs.js

@@ -746,114 +746,6 @@
       "!doc": "Represents a lookup table for colormaps. It is used to determine the color values from a range of data values.",
       "!type": "fn(colormap, numberOfColors)"
     },
-    "CombinedCamera": {
-      "!url": "http://threejs.org/docs/#Reference/examples/cameras/CombinedCamera",
-      "prototype": {
-        "!proto": "THREE.Camera.prototype",
-        "fov": {
-          "!type": "number",
-          "!doc": "Gets or sets the camera frustum vertical field of view in perspective view."
-        },
-        "left": {
-          "!type": "number",
-          "!doc": "Gets or sets the camera frustum left plane in orthographic view."
-        },
-        "right": {
-          "!type": "number",
-          "!doc": "Gets or sets the camera frustum right plane in orthographic view."
-        },
-        "top": {
-          "!type": "number",
-          "!doc": "Gets or sets the camera frustum top plane in orthographic view."
-        },
-        "bottom": {
-          "!type": "number",
-          "!doc": "Gets or sets the camera frustum bottom plane in orthographic view."
-        },
-        "zoom": {
-          "!type": "number",
-          "!doc": "Gets or sets the zoom factor of the camera."
-        },
-        "near": {
-          "!type": "number",
-          "!doc": "Gets camera frustum near plane."
-        },
-        "far": {
-          "!type": "number",
-          "!doc": "Gets camera frustum far plane."
-        },
-        "cameraO": {
-          "!type": "+THREE.OrthographicCamera",
-          "!doc": "Gets or sets the internal OrthographicCamera used as camera."
-        },
-        "cameraP": {
-          "!type": "+THREE.PerspectiveCamera",
-          "!doc": "Gets or sets the internal PerspectiveCamera used as camera."
-        },
-        "inOrthographicMode": {
-          "!type": "boolean",
-          "!doc": "Gets whether the combinedCamera is in Orthographic Mode."
-        },
-        "inPerspectiveMode": {
-          "!type": "boolean",
-          "!doc": "Gets whether the combinedCamera is in Perspective Mode."
-        },
-        "setFov": {
-          "!type": "fn(fov: number)",
-          "!doc": "sets the camera frustum vertical field of view in perspective view."
-        },
-        "setZoom": {
-          "!type": "fn(zoom: number)",
-          "!doc": "Sets the zoomfactor."
-        },
-        "setLens": {
-          "!type": "fn(focalLength: number, frameHeight: number)",
-          "!doc": "Sets the fov based on lens data."
-        },
-        "toFrontView": {
-          "!type": "fn()",
-          "!doc": "Sets the camera to view the front of the target."
-        },
-        "toBackView": {
-          "!type": "fn()",
-          "!doc": "Sets the camera to view the back of the target."
-        },
-        "toLeftView": {
-          "!type": "fn()",
-          "!doc": "Sets the camera to view the left of the target."
-        },
-        "toRightView": {
-          "!type": "fn()",
-          "!doc": "Sets the camera to view the right of the target."
-        },
-        "toTopView": {
-          "!type": "fn()",
-          "!doc": "Sets the camera to view the top."
-        },
-        "toBottomView": {
-          "!type": "fn()",
-          "!doc": "Sets the camera to view the bottom."
-        },
-        "setSize": {
-          "!type": "fn(width: number, height: number)",
-          "!doc": "Sets the size of the orthographic view."
-        },
-        "toOrthographic": {
-          "!type": "fn()",
-          "!doc": "Change the camera to orthographic view."
-        },
-        "toPerspective": {
-          "!type": "fn()",
-          "!doc": "Change the camera to Perspective view."
-        },
-        "updateProjectionMatrix": {
-          "!type": "fn()",
-          "!doc": "Updates the ProjectionMatrix."
-        }
-      },
-      "!doc": "A general purpose camera, for setting FOV, Lens Focal Length,\n \t\tand switching between perspective and orthographic views easily.\n \t\tUse this only if you do not wish to manage\n \t\tboth an Orthographic and Perspective Camera",
-      "!type": "fn(width: number, height: number, fov: number, near: number, far: number, orthoNear: number, orthoFar: number)"
-    },
     "FontUtils": {
       "!url": "http://threejs.org/docs/#Reference/extras/FontUtils",
       "prototype": {

+ 0 - 214
examples/canvas_camera_orthographic2.html

@@ -1,214 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<title>three.js canvas - combo camera - orthographic + perspective</title>
-		<meta charset="utf-8">
-		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
-		<style>
-			body {
-				font-family: Monospace;
-				background-color: #f0f0f0;
-				margin: 0px;
-				overflow: hidden;
-				color: purple;
-			}
-
-			a {
-				color: red;
-			}
-		</style>
-	</head>
-	<body>
-
-		<script src="../build/three.js"></script>
-
-		<script src="js/cameras/CombinedCamera.js"></script>
-
-		<script src="js/renderers/Projector.js"></script>
-		<script src="js/renderers/CanvasRenderer.js"></script>
-
-		<script src="js/libs/stats.min.js"></script>
-
-		<div style="position: absolute; top: 10px; width: 100%; text-align: center; ">
-			<a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - Combo Camera<br>
-			View: <a href="#" onclick="setOrthographic();return false;"> Orthographic</a> |
-				<a href="#" onclick="setPerspective();return false;">Perspective</a><br>
-			Lens: <a href="#" onclick="setLens(12);return false;">12mm</a> |
-				<a href="#" onclick="setLens(16);return false;">16mm</a> |
-				<a href="#" onclick="setLens(24);return false;">24mm</a> |
-				<a href="#" onclick="setLens(35);return false;">35mm</a> |
-				<a href="#" onclick="setLens(50);return false;">50mm</a> |
-				<a href="#" onclick="setLens(60);return false;">60mm</a> |
-				<a href="#" onclick="setLens(85);return false;">85mm</a> |
-				<a href="#" onclick="setLens(105);return false;">105mm</a><br>
-			Fov: <a href="#" onclick="setFov(30);return false;">30°</a> |
-				<a href="#" onclick="setFov(50);return false;">50°</a> |
-				<a href="#" onclick="setFov(70);return false;">70°</a> |
-				<a href="#" onclick="setFov(100);return false;">100°</a><br>
-			Zoom: <a href="#" onclick="camera.setZoom(0.5);return false;">0.5x</a> |
-					<a href="#" onclick="camera.setZoom(1);return false;">1x</a> |
-					<a href="#" onclick="camera.setZoom(2);return false;">2x</a> |
-
-				<br/>
-			Views: <a href="#" onclick="camera.toTopView();lookAtScene=false;return false;">Top view</a> |
-				<a href="#" onclick="camera.toBottomView();lookAtScene=false;return false;">Bottom view</a> |
-				<a href="#" onclick="camera.toLeftView();lookAtScene=false;return false;">Left view</a> |
-				<a href="#" onclick="camera.toRightView();lookAtScene=false;return false;">Right view</a> |
-				<a href="#" onclick="camera.toFrontView();lookAtScene=false;return false;">Front view</a> |
-				<a href="#" onclick="camera.toBackView();lookAtScene=false;return false;">Back view</a> |
-				<a href="#" onclick="lookAtScene=true;return false;">Look at Scene</a>
-				<br/>
-			<div id="fov"></div>
-		</div>
-
-
-
-		<script>
-
-			var container, stats;
-			var camera, scene, renderer;
-			var lookAtScene = true;
-
-			init();
-			animate();
-
-			function setFov( fov ) {
-
-				camera.setFov( fov );
-
-				document.getElementById('fov').innerHTML = 'FOV '+ fov.toFixed(2) +'&deg;' ;
-
-			}
-
-			function setLens( lens ) {
-
-				// try adding a tween effect while changing focal length, and it'd be even cooler!
-
-				var fov = camera.setLens( lens );
-
-				document.getElementById('fov').innerHTML = 'Converted ' + lens + 'mm lens to FOV '+ fov.toFixed(2) +'&deg;' ;
-
-			}
-
-			function setOrthographic() {
-
-				camera.toOrthographic();
-
-				document.getElementById('fov').innerHTML = 'Orthographic mode' ;
-
-			}
-
-			function setPerspective() {
-
-				camera.toPerspective();
-
-				document.getElementById('fov').innerHTML = 'Perspective mode' ;
-
-			}
-
-			function init() {
-
-				container = document.createElement( 'div' );
-				document.body.appendChild( container );
-
-				camera = new THREE.CombinedCamera( window.innerWidth / 2, window.innerHeight / 2, 70, 1, 1000, - 500, 1000 );
-
-				camera.position.x = 200;
-				camera.position.y = 100;
-				camera.position.z = 200;
-
-				scene = new THREE.Scene();
-				scene.background = new THREE.Color( 0xf0f0f0 );
-
-				// Grid
-
-				var gridHelper = new THREE.GridHelper( 1000, 20 );
-				scene.add( gridHelper );
-
-				// Cubes
-
-				var geometry = new THREE.BoxGeometry( 50, 50, 50 );
-				var material = new THREE.MeshLambertMaterial( { color: 0xffffff, overdraw: 0.5 } );
-
-				for ( var i = 0; i < 100; i ++ ) {
-
-					var cube = new THREE.Mesh( geometry, material );
-
-					cube.scale.y = Math.floor( Math.random() * 2 + 1 );
-
-					cube.position.x = Math.floor( ( Math.random() * 1000 - 500 ) / 50 ) * 50 + 25;
-					cube.position.y = ( cube.scale.y * 50 ) / 2;
-					cube.position.z = Math.floor( ( Math.random() * 1000 - 500 ) / 50 ) * 50 + 25;
-
-					scene.add(cube);
-
-				}
-
-				// Lights
-
-				var ambientLight = new THREE.AmbientLight( Math.random() * 0x10 );
-				scene.add( ambientLight );
-
-				var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
-				directionalLight.position.x = Math.random() - 0.5;
-				directionalLight.position.y = Math.random() - 0.5;
-				directionalLight.position.z = Math.random() - 0.5;
-				directionalLight.position.normalize();
-				scene.add( directionalLight );
-
-				var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
-				directionalLight.position.x = Math.random() - 0.5;
-				directionalLight.position.y = Math.random() - 0.5;
-				directionalLight.position.z = Math.random() - 0.5;
-				directionalLight.position.normalize();
-				scene.add( directionalLight );
-
-				renderer = new THREE.CanvasRenderer();
-				renderer.setPixelRatio( window.devicePixelRatio );
-				renderer.setSize( window.innerWidth, window.innerHeight );
-				container.appendChild( renderer.domElement );
-
-				stats = new Stats();
-				container.appendChild( stats.dom );
-
-				window.addEventListener( 'resize', onWindowResize, false );
-
-				function onWindowResize(){
-
-					camera.setSize( window.innerWidth, window.innerHeight );
-					camera.updateProjectionMatrix();
-
-					renderer.setSize( window.innerWidth, window.innerHeight );
-
-				}
-
-			}
-
-			//
-
-			function animate() {
-
-				requestAnimationFrame( animate );
-
-				stats.begin();
-				render();
-				stats.end();
-
-			}
-
-			function render() {
-
-				var timer = Date.now() * 0.0001;
-
-				camera.position.x = Math.cos( timer ) * 200;
-				camera.position.z = Math.sin( timer ) * 200;
-				if ( lookAtScene ) camera.lookAt( scene.position );
-
-				renderer.render( scene, camera );
-
-			}
-
-		</script>
-
-	</body>
-</html>

+ 0 - 285
examples/js/cameras/CombinedCamera.js

@@ -1,285 +0,0 @@
-/**
- *	@author zz85 / http://twitter.com/blurspline / http://www.lab4games.net/zz85/blog
- *
- *	A general perpose camera, for setting FOV, Lens Focal Length,
- *		and switching between perspective and orthographic views easily.
- *		Use this only if you do not wish to manage
- *		both a Orthographic and Perspective Camera
- *
- */
-
-
-THREE.CombinedCamera = function ( width, height, fov, near, far, orthoNear, orthoFar ) {
-
-	THREE.Camera.call( this );
-
-	this.fov = fov;
-
-	this.far = far;
-	this.near = near;
-
-	this.left = - width / 2;
-	this.right = width / 2;
-	this.top = height / 2;
-	this.bottom = - height / 2;
-
-	this.aspect =  width / height;
-	this.zoom = 1;
-	this.view = null;
-	// We could also handle the projectionMatrix internally, but just wanted to test nested camera objects
-
-	this.cameraO = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 	orthoNear, orthoFar );
-	this.cameraP = new THREE.PerspectiveCamera( fov, width / height, near, far );
-
-	this.toPerspective();
-
-};
-
-THREE.CombinedCamera.prototype = Object.create( THREE.Camera.prototype );
-THREE.CombinedCamera.prototype.constructor = THREE.CombinedCamera;
-
-THREE.CombinedCamera.prototype.toPerspective = function () {
-
-	// Switches to the Perspective Camera
-
-	this.near = this.cameraP.near;
-	this.far = this.cameraP.far;
-
-	this.cameraP.aspect = this.aspect;
-	this.cameraP.fov =  this.fov / this.zoom ;
-	this.cameraP.view = this.view;
-
-	this.cameraP.updateProjectionMatrix();
-
-	this.projectionMatrix = this.cameraP.projectionMatrix;
-
-	this.inPerspectiveMode = true;
-	this.inOrthographicMode = false;
-
-};
-
-THREE.CombinedCamera.prototype.toOrthographic = function () {
-
-	// Switches to the Orthographic camera estimating viewport from Perspective
-
-	var fov = this.fov;
-	var aspect = this.cameraP.aspect;
-	var near = this.cameraP.near;
-	var far = this.cameraP.far;
-
-	// The size that we set is the mid plane of the viewing frustum
-
-	var hyperfocus = ( near + far ) / 2;
-
-	var halfHeight = Math.tan( fov * Math.PI / 180 / 2 ) * hyperfocus;
-	var halfWidth = halfHeight * aspect;
-
-	halfHeight /= this.zoom;
-	halfWidth /= this.zoom;
-
-	this.cameraO.left = - halfWidth;
-	this.cameraO.right = halfWidth;
-	this.cameraO.top = halfHeight;
-	this.cameraO.bottom = - halfHeight;
-	this.cameraO.view = this.view;
-
-	this.cameraO.updateProjectionMatrix();
-
-	this.near = this.cameraO.near;
-	this.far = this.cameraO.far;
-	this.projectionMatrix = this.cameraO.projectionMatrix;
-
-	this.inPerspectiveMode = false;
-	this.inOrthographicMode = true;
-
-};
-
-THREE.CombinedCamera.prototype.copy = function ( source ) {
-
-	THREE.Camera.prototype.copy.call( this, source );
-
-	this.fov = source.fov;
-	this.far = source.far;
-	this.near = source.near;
-
-	this.left = source.left;
-	this.right = source.right;
-	this.top = source.top;
-	this.bottom = source.bottom;
-
-	this.zoom = source.zoom;
-	this.view = source.view === null ? null : Object.assign( {}, source.view );
-	this.aspect = source.aspect;
-
-	this.cameraO.copy( source.cameraO );
-	this.cameraP.copy( source.cameraP );
-
-	this.inOrthographicMode = source.inOrthographicMode;
-	this.inPerspectiveMode = source.inPerspectiveMode;
-
-	return this;
-
-};
-
-THREE.CombinedCamera.prototype.setViewOffset = function( fullWidth, fullHeight, x, y, width, height ) {
-
-	this.view = {
-		fullWidth: fullWidth,
-		fullHeight: fullHeight,
-		offsetX: x,
-		offsetY: y,
-		width: width,
-		height: height
-	};
-
-	if ( this.inPerspectiveMode ) {
-
-		this.aspect = fullWidth / fullHeight;
-
-		this.toPerspective();
-
-	} else {
-
-		this.toOrthographic();
-
-	}
-
-};
-
-THREE.CombinedCamera.prototype.clearViewOffset = function() {
-
-	this.view = null;
-	this.updateProjectionMatrix();
-
-};
-
-THREE.CombinedCamera.prototype.setSize = function( width, height ) {
-
-	this.cameraP.aspect = width / height;
-	this.left = - width / 2;
-	this.right = width / 2;
-	this.top = height / 2;
-	this.bottom = - height / 2;
-
-};
-
-
-THREE.CombinedCamera.prototype.setFov = function( fov ) {
-
-	this.fov = fov;
-
-	if ( this.inPerspectiveMode ) {
-
-		this.toPerspective();
-
-	} else {
-
-		this.toOrthographic();
-
-	}
-
-};
-
-// For maintaining similar API with PerspectiveCamera
-
-THREE.CombinedCamera.prototype.updateProjectionMatrix = function() {
-
-	if ( this.inPerspectiveMode ) {
-
-		this.toPerspective();
-
-	} else {
-
-		this.toPerspective();
-		this.toOrthographic();
-
-	}
-
-};
-
-/*
-* Uses Focal Length (in mm) to estimate and set FOV
-* 35mm (full frame) camera is used if frame size is not specified;
-* Formula based on http://www.bobatkins.com/photography/technical/field_of_view.html
-*/
-THREE.CombinedCamera.prototype.setLens = function ( focalLength, filmGauge ) {
-
-	if ( filmGauge === undefined ) filmGauge = 35;
-
-	var vExtentSlope = 0.5 * filmGauge /
-			( focalLength * Math.max( this.cameraP.aspect, 1 ) );
-
-	var fov = THREE.Math.RAD2DEG * 2 * Math.atan( vExtentSlope );
-
-	this.setFov( fov );
-
-	return fov;
-
-};
-
-
-THREE.CombinedCamera.prototype.setZoom = function( zoom ) {
-
-	this.zoom = zoom;
-
-	if ( this.inPerspectiveMode ) {
-
-		this.toPerspective();
-
-	} else {
-
-		this.toOrthographic();
-
-	}
-
-};
-
-THREE.CombinedCamera.prototype.toFrontView = function() {
-
-	this.rotation.x = 0;
-	this.rotation.y = 0;
-	this.rotation.z = 0;
-
-	// should we be modifing the matrix instead?
-
-};
-
-THREE.CombinedCamera.prototype.toBackView = function() {
-
-	this.rotation.x = 0;
-	this.rotation.y = Math.PI;
-	this.rotation.z = 0;
-
-};
-
-THREE.CombinedCamera.prototype.toLeftView = function() {
-
-	this.rotation.x = 0;
-	this.rotation.y = - Math.PI / 2;
-	this.rotation.z = 0;
-
-};
-
-THREE.CombinedCamera.prototype.toRightView = function() {
-
-	this.rotation.x = 0;
-	this.rotation.y = Math.PI / 2;
-	this.rotation.z = 0;
-
-};
-
-THREE.CombinedCamera.prototype.toTopView = function() {
-
-	this.rotation.x = - Math.PI / 2;
-	this.rotation.y = 0;
-	this.rotation.z = 0;
-
-};
-
-THREE.CombinedCamera.prototype.toBottomView = function() {
-
-	this.rotation.x = Math.PI / 2;
-	this.rotation.y = 0;
-	this.rotation.z = 0;
-
-};