Browse Source

Uops, that test wasn't supposed to go in.

Mr.doob 14 years ago
parent
commit
bc528525dc
1 changed files with 0 additions and 139 deletions
  1. 0 139
      examples/webgl_scene_changes.html

+ 0 - 139
examples/webgl_scene_changes.html

@@ -1,139 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en">
-	<head>
-		<title>three.js webgl - level-of-details</title>
-		<meta charset="utf-8">
-		<style type="text/css">
-			body {
-				background:#000;
-				color:#fff;
-				padding:0;
-				margin:0;
-				font-weight: bold;
-				overflow:hidden;
-			}
-
-			#info {
-				position: absolute;
-				top: 0px; width: 100%;
-				color: #ffffff;
-				padding: 5px;
-				font-family: Monospace;
-				font-size: 13px;
-				text-align: center;
-				z-index:100;
-			}
-
-			a { color:red }
-
-		</style>
-	</head>
-
-	<body>
-		<div id="info">
-			<a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> - level-of-details WebGL example
-		</div>
-
-
-		<script type="text/javascript" src="../build/Three.js"></script>
-
-		<script type="text/javascript" src="js/Detector.js"></script>
-		<script type="text/javascript" src="js/RequestAnimationFrame.js"></script>
-		<script type="text/javascript" src="js/Stats.js"></script>
-
-		<script type="text/javascript">
-
-			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
-
-			var container, stats;
-
-			var camera, scene, renderer;
-
-			var geometry, mesh;
-
-			var mouseX = 0, mouseY = 0;
-
-			var windowHalfX = window.innerWidth / 2;
-			var windowHalfY = window.innerHeight / 2;
-
-			document.addEventListener( 'mousemove', onDocumentMouseMove, false );
-
-			init();
-			animate();
-
-			setInterval( change, 100 );
-
-			function init() {
-
-				container = document.createElement( 'div' );
-				document.body.appendChild( container );
-
-				camera = new THREE.Camera( 45, window.innerWidth / window.innerHeight, 1, 15000 );
-				camera.position.z = 1000;
-
-				scene = new THREE.Scene();
-				scene.fog = new THREE.Fog( 0x000000, 1, 15000 );
-
-				var light = new THREE.PointLight( 0xff2200 );
-				light.position.set( 0, 0, 0 );
-				scene.addLight( light );
-
-				var light = new THREE.DirectionalLight( 0xffffff );
-				light.position.set( 0, 0, 1 );
-				light.position.normalize();
-				scene.addLight( light );
-
-				var geometry = new Sphere( 100, 128, 64 );
-				var material = new THREE.MeshLambertMaterial( { color: 0xffffff } );
-
-				mesh = new THREE.Mesh( geometry, material );
-
-				scene.addObject( mesh );
-
-				renderer = new THREE.WebGLRenderer( { clearColor:0x000000, clearAlpha: 1 } );
-				renderer.setSize( window.innerWidth, window.innerHeight );
-				renderer.sortObjects = false;
-				container.appendChild( renderer.domElement );
-
-			}
-
-			function onDocumentMouseMove(event) {
-
-				mouseX = ( event.clientX - windowHalfX ) * 10;
-				mouseY = ( event.clientY - windowHalfY ) * 10;
-
-			}
-
-			function change() {
-
-				mesh.position.x = Math.random() * 800 - 400;
-				mesh.position.y = Math.random() * 800 - 400;
-				mesh.position.z = Math.random() * 800 - 400;
-
-				scene.removeObject( mesh );
-				scene.addObject( mesh );
-
-			}
-
-			function animate() {
-
-				requestAnimationFrame( animate );
-				render();
-
-			}
-
-			function render() {
-
-				/*
-				camera.position.x += ( mouseX - camera.position.x ) * .005;
-				camera.position.y += ( - mouseY - camera.position.y ) * .01;
-				*/
-
-				renderer.render( scene, camera );
-
-			}
-
-		</script>
-
-	</body>
-</html>