Browse Source

Example: Removed webgl_geometry_colors.json

Mugen87 7 years ago
parent
commit
4f2b45d2c5

+ 0 - 1
examples/files.js

@@ -21,7 +21,6 @@ var files = {
 		"webgl_geometries",
 		"webgl_geometries_parametric",
 		"webgl_geometry_colors",
-		"webgl_geometry_colors_json",
 		"webgl_geometry_colors_lookuptable",
 		"webgl_geometry_convex",
 		"webgl_geometry_cube",

BIN
examples/models/json/cubecolors/cube_fvc.blend


+ 0 - 48
examples/models/json/cubecolors/cube_fvc.json

@@ -1,48 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3,
-        "generatedBy"   : "Blender 2.63 Exporter",
-        "vertices"      : 8,
-        "faces"         : 6,
-        "normals"       : 0,
-        "colors"        : 22,
-        "uvs"           : 0,
-        "materials"     : 1,
-        "morphTargets"  : 0
-    },
-
-    "scale" : 1.000000,
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "Material",
-	"blending" : "NormalBlending",
-	"colorDiffuse" : [0.800000011920929, 0.800000011920929, 0.800000011920929],
-	"colorSpecular" : [0.5, 0.5, 0.5],
-	"depthTest" : true,
-	"depthWrite" : true,
-	"shading" : "Lambert",
-	"specularCoef" : 50,
-	"opacity" : 1.0,
-	"transparent" : false,
-	"vertexColors" : true
-	}],
-
-    "vertices": [1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000001,-1.000000,1.000000,1.000000,-1.000000,1.000000,-1.000000],
-
-    "morphTargets": [],
-
-    "normals": [],
-
-    "colors": [16777215,16769421,16769424,8454135,15195931,7299839,16586715,16711687,1056014,6029475,13762484,9044089,7962349,6772991,16774622,4144383,11973887,1966063,1056285,9081232,13696943,5002581],
-
-    "uvs": [[]],
-
-    "faces": [131,0,1,2,3,0,0,1,2,3,131,4,7,6,5,0,4,5,6,7,131,0,4,5,1,0,0,8,9,10,131,1,5,6,2,0,0,11,12,13,131,2,6,7,3,0,14,15,16,17,131,4,0,3,7,0,18,19,20,21]
-
-
-
-}

BIN
examples/models/json/cubecolors/cubecolors.blend


File diff suppressed because it is too large
+ 0 - 33
examples/models/json/cubecolors/cubecolors.json


+ 0 - 169
examples/webgl_geometry_colors_json.html

@@ -1,169 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<title>three.js webgl - json - vertex colors</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 {
-				color: #eee;
-				font-family:Monospace;
-				font-size:13px;
-				text-align:center;
-
-				background-color: #000;
-				margin: 0px;
-				padding: 0px;
-				overflow: hidden;
-			}
-
-			#info {
-				position: absolute;
-				top: 0px; width: 100%;
-				padding: 5px;
-			}
-
-			a {
-				color: #0080ff;
-			}
-
-		</style>
-	</head>
-	<body>
-
-		<div id="container"></div>
-		<div id="info"><a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - json - vertex colors</div>
-
-		<script src="../build/three.js"></script>
-
-		<script src="js/Detector.js"></script>
-		<script src="js/libs/stats.min.js"></script>
-
-		<script>
-
-			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
-
-			var container, stats;
-
-			var camera, scene, renderer;
-
-			var mesh, mesh2, mesh3, light;
-
-			var mouseX = 0, mouseY = 0;
-
-			var windowHalfX = window.innerWidth / 2;
-			var windowHalfY = window.innerHeight / 2;
-
-			init();
-			animate();
-
-			function init() {
-
-				container = document.getElementById( 'container' );
-
-				camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 10000 );
-				camera.position.z = 1800;
-
-				scene = new THREE.Scene();
-
-				light = new THREE.DirectionalLight( 0xffffff );
-				light.position.set( 0, 0, 1 ).normalize();
-				scene.add( light );
-
-				var loader = new THREE.JSONLoader();
-
-				loader.load( "models/json/cubecolors/cubecolors.json", createScene1 );
-				loader.load( "models/json/cubecolors/cube_fvc.json", createScene2 );
-
-				renderer = new THREE.WebGLRenderer( { antialias: true } );
-				renderer.setPixelRatio( window.devicePixelRatio );
-				renderer.setSize( window.innerWidth, window.innerHeight );
-				container.appendChild( renderer.domElement );
-
-				stats = new Stats();
-				container.appendChild( stats.dom );
-
-				document.addEventListener( 'mousemove', onDocumentMouseMove, false );
-
-				//
-
-				window.addEventListener( 'resize', onWindowResize, false );
-
-			}
-
-			function onWindowResize() {
-
-				windowHalfX = window.innerWidth / 2;
-				windowHalfY = window.innerHeight / 2;
-
-				camera.aspect = window.innerWidth / window.innerHeight;
-				camera.updateProjectionMatrix();
-
-				renderer.setSize( window.innerWidth, window.innerHeight );
-
-			}
-
-			function createScene1( geometry, materials ) {
-
-				mesh = new THREE.Mesh( geometry, materials );
-				mesh.position.x = 400;
-				mesh.scale.x = mesh.scale.y = mesh.scale.z = 250;
-				scene.add( mesh );
-
-			}
-
-			function createScene2( geometry, materials ) {
-
-				mesh2 = new THREE.Mesh( geometry, materials );
-				mesh2.position.x = - 400;
-				mesh2.scale.x = mesh2.scale.y = mesh2.scale.z = 250;
-				scene.add( mesh2 );
-
-			}
-
-			function onDocumentMouseMove( event ) {
-
-				mouseX = ( event.clientX - windowHalfX );
-				mouseY = ( event.clientY - windowHalfY );
-
-			}
-
-			//
-
-			function animate() {
-
-				requestAnimationFrame( animate );
-
-				render();
-				stats.update();
-
-			}
-
-			function render() {
-
-				camera.position.x += ( mouseX - camera.position.x ) * 0.05;
-				camera.position.y += ( - mouseY - camera.position.y ) * 0.05;
-
-				camera.lookAt( scene.position );
-
-				if ( mesh ) {
-
-					mesh.rotation.x += 0.01;
-					mesh.rotation.y += 0.01;
-				}
-
-				if ( mesh2 ) {
-
-					mesh2.rotation.x += 0.01;
-					mesh2.rotation.y += 0.01;
-
-				}
-
-				renderer.render( scene, camera );
-
-			}
-
-		</script>
-
-	</body>
-</html>

Some files were not shown because too many files changed in this diff