Преглед на файлове

Merge pull request #14845 from looeee/deprecate_binaryloader

Removed BinaryLoader
Mr.doob преди 7 години
родител
ревизия
7471a77507

+ 0 - 692
examples/js/loaders/BinaryLoader.js

@@ -1,692 +0,0 @@
-/**
- * @author alteredq / http://alteredqualia.com/
- */
-
-THREE.BinaryLoader = function ( manager ) {
-
-	if ( typeof manager === 'boolean' ) {
-
-		console.warn( 'THREE.BinaryLoader: showStatus parameter has been removed from constructor.' );
-		manager = undefined;
-
-	}
-
-	this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
-
-};
-
-THREE.BinaryLoader.prototype = {
-
-	constructor: THREE.BinaryLoader,
-
-	crossOrigin: 'anonymous',
-
-	// Load models generated by slim OBJ converter with BINARY option (converter_obj_three_slim.py -t binary)
-	//  - binary models consist of two files: JS and BIN
-	//  - parameters
-	//		- url (required)
-	//		- callback (required)
-	//		- texturePath (optional: if not specified, textures will be assumed to be in the same folder as JS model file)
-	//		- binaryPath (optional: if not specified, binary file will be assumed to be in the same folder as JS model file)
-	load: function ( url, onLoad, onProgress, onError ) {
-
-		// todo: unify load API to for easier SceneLoader use
-
-		var texturePath = this.texturePath || THREE.LoaderUtils.extractUrlBase( url );
-		var binaryPath = this.binaryPath || THREE.LoaderUtils.extractUrlBase( url );
-
-		// #1 load JS part via web worker
-
-		var scope = this;
-
-		var jsonloader = new THREE.FileLoader( this.manager );
-		jsonloader.load( url, function ( data ) {
-
-			var json = JSON.parse( data );
-
-			var bufferUrl = binaryPath + json.buffers;
-
-			var bufferLoader = new THREE.FileLoader( scope.manager );
-			bufferLoader.setResponseType( 'arraybuffer' );
-			bufferLoader.load( bufferUrl, function ( bufData ) {
-
-				// IEWEBGL needs this ???
-				//buffer = ( new Uint8Array( xhr.responseBody ) ).buffer;
-
-				//// iOS and other XMLHttpRequest level 1 ???
-
-				scope.parse( bufData, onLoad, texturePath, json.materials );
-
-			}, onProgress, onError );
-
-		}, onProgress, onError );
-
-	},
-
-	setBinaryPath: function ( value ) {
-
-		this.binaryPath = value;
-		return this;
-
-	},
-
-	setCrossOrigin: function ( value ) {
-
-		this.crossOrigin = value;
-		return this;
-
-	},
-
-	setTexturePath: function ( value ) {
-
-		this.texturePath = value;
-		return this;
-
-	},
-
-	parse: function ( data, callback, texturePath, jsonMaterials ) {
-
-		var Model = function () {
-
-			var scope = this,
-				currentOffset = 0,
-				md,
-				normals = [],
-				uvs = [],
-				start_tri_flat, start_tri_smooth, start_tri_flat_uv, start_tri_smooth_uv,
-				start_quad_flat, start_quad_smooth, start_quad_flat_uv, start_quad_smooth_uv,
-				tri_size, quad_size,
-				len_tri_flat, len_tri_smooth, len_tri_flat_uv, len_tri_smooth_uv,
-				len_quad_flat, len_quad_smooth, len_quad_flat_uv;
-
-
-			THREE.Geometry.call( this );
-
-			md = parseMetaData( data, currentOffset );
-
-			currentOffset += md.header_bytes;
-			/*
-					md.vertex_index_bytes = Uint32Array.BYTES_PER_ELEMENT;
-					md.material_index_bytes = Uint16Array.BYTES_PER_ELEMENT;
-					md.normal_index_bytes = Uint32Array.BYTES_PER_ELEMENT;
-					md.uv_index_bytes = Uint32Array.BYTES_PER_ELEMENT;
-			*/
-			// buffers sizes
-
-			tri_size = md.vertex_index_bytes * 3 + md.material_index_bytes;
-			quad_size = md.vertex_index_bytes * 4 + md.material_index_bytes;
-
-			len_tri_flat = md.ntri_flat * ( tri_size );
-			len_tri_smooth = md.ntri_smooth * ( tri_size + md.normal_index_bytes * 3 );
-			len_tri_flat_uv = md.ntri_flat_uv * ( tri_size + md.uv_index_bytes * 3 );
-			len_tri_smooth_uv = md.ntri_smooth_uv * ( tri_size + md.normal_index_bytes * 3 + md.uv_index_bytes * 3 );
-
-			len_quad_flat = md.nquad_flat * ( quad_size );
-			len_quad_smooth = md.nquad_smooth * ( quad_size + md.normal_index_bytes * 4 );
-			len_quad_flat_uv = md.nquad_flat_uv * ( quad_size + md.uv_index_bytes * 4 );
-
-			// read buffers
-
-			currentOffset += init_vertices( currentOffset );
-
-			currentOffset += init_normals( currentOffset );
-			currentOffset += handlePadding( md.nnormals * 3 );
-
-			currentOffset += init_uvs( currentOffset );
-
-			start_tri_flat = currentOffset;
-			start_tri_smooth = start_tri_flat + len_tri_flat + handlePadding( md.ntri_flat * 2 );
-			start_tri_flat_uv = start_tri_smooth + len_tri_smooth + handlePadding( md.ntri_smooth * 2 );
-			start_tri_smooth_uv = start_tri_flat_uv + len_tri_flat_uv + handlePadding( md.ntri_flat_uv * 2 );
-
-			start_quad_flat = start_tri_smooth_uv + len_tri_smooth_uv + handlePadding( md.ntri_smooth_uv * 2 );
-			start_quad_smooth = start_quad_flat + len_quad_flat	+ handlePadding( md.nquad_flat * 2 );
-			start_quad_flat_uv = start_quad_smooth + len_quad_smooth + handlePadding( md.nquad_smooth * 2 );
-			start_quad_smooth_uv = start_quad_flat_uv + len_quad_flat_uv + handlePadding( md.nquad_flat_uv * 2 );
-
-			// have to first process faces with uvs
-			// so that face and uv indices match
-
-			init_triangles_flat_uv( start_tri_flat_uv );
-			init_triangles_smooth_uv( start_tri_smooth_uv );
-
-			init_quads_flat_uv( start_quad_flat_uv );
-			init_quads_smooth_uv( start_quad_smooth_uv );
-
-			// now we can process untextured faces
-
-			init_triangles_flat( start_tri_flat );
-			init_triangles_smooth( start_tri_smooth );
-
-			init_quads_flat( start_quad_flat );
-			init_quads_smooth( start_quad_smooth );
-
-			this.computeFaceNormals();
-
-			function handlePadding( n ) {
-
-				return ( n % 4 ) ? ( 4 - n % 4 ) : 0;
-
-			}
-
-			function parseMetaData( data, offset ) {
-
-				var metaData = {
-
-					'signature': parseString( data, offset, 12 ),
-					'header_bytes': parseUChar8( data, offset + 12 ),
-
-					'vertex_coordinate_bytes': parseUChar8( data, offset + 13 ),
-					'normal_coordinate_bytes': parseUChar8( data, offset + 14 ),
-					'uv_coordinate_bytes': parseUChar8( data, offset + 15 ),
-
-					'vertex_index_bytes': parseUChar8( data, offset + 16 ),
-					'normal_index_bytes': parseUChar8( data, offset + 17 ),
-					'uv_index_bytes': parseUChar8( data, offset + 18 ),
-					'material_index_bytes': parseUChar8( data, offset + 19 ),
-
-					'nvertices': parseUInt32( data, offset + 20 ),
-					'nnormals': parseUInt32( data, offset + 20 + 4 * 1 ),
-					'nuvs': parseUInt32( data, offset + 20 + 4 * 2 ),
-
-					'ntri_flat': parseUInt32( data, offset + 20 + 4 * 3 ),
-					'ntri_smooth': parseUInt32( data, offset + 20 + 4 * 4 ),
-					'ntri_flat_uv': parseUInt32( data, offset + 20 + 4 * 5 ),
-					'ntri_smooth_uv': parseUInt32( data, offset + 20 + 4 * 6 ),
-
-					'nquad_flat': parseUInt32( data, offset + 20 + 4 * 7 ),
-					'nquad_smooth': parseUInt32( data, offset + 20 + 4 * 8 ),
-					'nquad_flat_uv': parseUInt32( data, offset + 20 + 4 * 9 ),
-					'nquad_smooth_uv': parseUInt32( data, offset + 20 + 4 * 10 )
-
-				};
-				/*
-							console.log( "signature: " + metaData.signature );
-
-							console.log( "header_bytes: " + metaData.header_bytes );
-							console.log( "vertex_coordinate_bytes: " + metaData.vertex_coordinate_bytes );
-							console.log( "normal_coordinate_bytes: " + metaData.normal_coordinate_bytes );
-							console.log( "uv_coordinate_bytes: " + metaData.uv_coordinate_bytes );
-
-							console.log( "vertex_index_bytes: " + metaData.vertex_index_bytes );
-							console.log( "normal_index_bytes: " + metaData.normal_index_bytes );
-							console.log( "uv_index_bytes: " + metaData.uv_index_bytes );
-							console.log( "material_index_bytes: " + metaData.material_index_bytes );
-
-							console.log( "nvertices: " + metaData.nvertices );
-							console.log( "nnormals: " + metaData.nnormals );
-							console.log( "nuvs: " + metaData.nuvs );
-
-							console.log( "ntri_flat: " + metaData.ntri_flat );
-							console.log( "ntri_smooth: " + metaData.ntri_smooth );
-							console.log( "ntri_flat_uv: " + metaData.ntri_flat_uv );
-							console.log( "ntri_smooth_uv: " + metaData.ntri_smooth_uv );
-
-							console.log( "nquad_flat: " + metaData.nquad_flat );
-							console.log( "nquad_smooth: " + metaData.nquad_smooth );
-							console.log( "nquad_flat_uv: " + metaData.nquad_flat_uv );
-							console.log( "nquad_smooth_uv: " + metaData.nquad_smooth_uv );
-
-							var total = metaData.header_bytes
-									  + metaData.nvertices * metaData.vertex_coordinate_bytes * 3
-									  + metaData.nnormals * metaData.normal_coordinate_bytes * 3
-									  + metaData.nuvs * metaData.uv_coordinate_bytes * 2
-									  + metaData.ntri_flat * ( metaData.vertex_index_bytes*3 + metaData.material_index_bytes )
-									  + metaData.ntri_smooth * ( metaData.vertex_index_bytes*3 + metaData.material_index_bytes + metaData.normal_index_bytes*3 )
-									  + metaData.ntri_flat_uv * ( metaData.vertex_index_bytes*3 + metaData.material_index_bytes + metaData.uv_index_bytes*3 )
-									  + metaData.ntri_smooth_uv * ( metaData.vertex_index_bytes*3 + metaData.material_index_bytes + metaData.normal_index_bytes*3 + metaData.uv_index_bytes*3 )
-									  + metaData.nquad_flat * ( metaData.vertex_index_bytes*4 + metaData.material_index_bytes )
-									  + metaData.nquad_smooth * ( metaData.vertex_index_bytes*4 + metaData.material_index_bytes + metaData.normal_index_bytes*4 )
-									  + metaData.nquad_flat_uv * ( metaData.vertex_index_bytes*4 + metaData.material_index_bytes + metaData.uv_index_bytes*4 )
-									  + metaData.nquad_smooth_uv * ( metaData.vertex_index_bytes*4 + metaData.material_index_bytes + metaData.normal_index_bytes*4 + metaData.uv_index_bytes*4 );
-							console.log( "total bytes: " + total );
-				*/
-
-				return metaData;
-
-			}
-
-			function parseString( data, offset, length ) {
-
-				return THREE.LoaderUtils.decodeText( new Uint8Array( data, offset, length ) );
-
-			}
-
-			function parseUChar8( data, offset ) {
-
-				var charArray = new Uint8Array( data, offset, 1 );
-
-				return charArray[ 0 ];
-
-			}
-
-			function parseUInt32( data, offset ) {
-
-				var intArray = new Uint32Array( data, offset, 1 );
-
-				return intArray[ 0 ];
-
-			}
-
-			function init_vertices( start ) {
-
-				var nElements = md.nvertices;
-
-				var coordArray = new Float32Array( data, start, nElements * 3 );
-
-				var i, x, y, z;
-
-				for ( i = 0; i < nElements; i ++ ) {
-
-					x = coordArray[ i * 3 ];
-					y = coordArray[ i * 3 + 1 ];
-					z = coordArray[ i * 3 + 2 ];
-
-					scope.vertices.push( new THREE.Vector3( x, y, z ) );
-
-				}
-
-				return nElements * 3 * Float32Array.BYTES_PER_ELEMENT;
-
-			}
-
-			function init_normals( start ) {
-
-				var nElements = md.nnormals;
-
-				if ( nElements ) {
-
-					var normalArray = new Int8Array( data, start, nElements * 3 );
-
-					var i, x, y, z;
-
-					for ( i = 0; i < nElements; i ++ ) {
-
-						x = normalArray[ i * 3 ];
-						y = normalArray[ i * 3 + 1 ];
-						z = normalArray[ i * 3 + 2 ];
-
-						normals.push( x / 127, y / 127, z / 127 );
-
-					}
-
-				}
-
-				return nElements * 3 * Int8Array.BYTES_PER_ELEMENT;
-
-			}
-
-			function init_uvs( start ) {
-
-				var nElements = md.nuvs;
-
-				if ( nElements ) {
-
-					var uvArray = new Float32Array( data, start, nElements * 2 );
-
-					var i, u, v;
-
-					for ( i = 0; i < nElements; i ++ ) {
-
-						u = uvArray[ i * 2 ];
-						v = uvArray[ i * 2 + 1 ];
-
-						uvs.push( u, v );
-
-					}
-
-				}
-
-				return nElements * 2 * Float32Array.BYTES_PER_ELEMENT;
-
-			}
-
-			function init_uvs3( nElements, offset ) {
-
-				var i, uva, uvb, uvc, u1, u2, u3, v1, v2, v3;
-
-				var uvIndexBuffer = new Uint32Array( data, offset, 3 * nElements );
-
-				for ( i = 0; i < nElements; i ++ ) {
-
-					uva = uvIndexBuffer[ i * 3 ];
-					uvb = uvIndexBuffer[ i * 3 + 1 ];
-					uvc = uvIndexBuffer[ i * 3 + 2 ];
-
-					u1 = uvs[ uva * 2 ];
-					v1 = uvs[ uva * 2 + 1 ];
-
-					u2 = uvs[ uvb * 2 ];
-					v2 = uvs[ uvb * 2 + 1 ];
-
-					u3 = uvs[ uvc * 2 ];
-					v3 = uvs[ uvc * 2 + 1 ];
-
-					scope.faceVertexUvs[ 0 ].push( [
-						new THREE.Vector2( u1, v1 ),
-						new THREE.Vector2( u2, v2 ),
-						new THREE.Vector2( u3, v3 )
-					] );
-
-				}
-
-			}
-
-			function init_uvs4( nElements, offset ) {
-
-				var i, uva, uvb, uvc, uvd, u1, u2, u3, u4, v1, v2, v3, v4;
-
-				var uvIndexBuffer = new Uint32Array( data, offset, 4 * nElements );
-
-				for ( i = 0; i < nElements; i ++ ) {
-
-					uva = uvIndexBuffer[ i * 4 ];
-					uvb = uvIndexBuffer[ i * 4 + 1 ];
-					uvc = uvIndexBuffer[ i * 4 + 2 ];
-					uvd = uvIndexBuffer[ i * 4 + 3 ];
-
-					u1 = uvs[ uva * 2 ];
-					v1 = uvs[ uva * 2 + 1 ];
-
-					u2 = uvs[ uvb * 2 ];
-					v2 = uvs[ uvb * 2 + 1 ];
-
-					u3 = uvs[ uvc * 2 ];
-					v3 = uvs[ uvc * 2 + 1 ];
-
-					u4 = uvs[ uvd * 2 ];
-					v4 = uvs[ uvd * 2 + 1 ];
-
-					scope.faceVertexUvs[ 0 ].push( [
-						new THREE.Vector2( u1, v1 ),
-						new THREE.Vector2( u2, v2 ),
-						new THREE.Vector2( u4, v4 )
-					] );
-
-					scope.faceVertexUvs[ 0 ].push( [
-						new THREE.Vector2( u2, v2 ),
-						new THREE.Vector2( u3, v3 ),
-						new THREE.Vector2( u4, v4 )
-					] );
-
-				}
-
-			}
-
-			function init_faces3_flat( nElements, offsetVertices, offsetMaterials ) {
-
-				var i, a, b, c, m;
-
-				var vertexIndexBuffer = new Uint32Array( data, offsetVertices, 3 * nElements );
-				var materialIndexBuffer = new Uint16Array( data, offsetMaterials, nElements );
-
-				for ( i = 0; i < nElements; i ++ ) {
-
-					a = vertexIndexBuffer[ i * 3 ];
-					b = vertexIndexBuffer[ i * 3 + 1 ];
-					c = vertexIndexBuffer[ i * 3 + 2 ];
-
-					m = materialIndexBuffer[ i ];
-
-					scope.faces.push( new THREE.Face3( a, b, c, null, null, m ) );
-
-				}
-
-			}
-
-			function init_faces4_flat( nElements, offsetVertices, offsetMaterials ) {
-
-				var i, a, b, c, d, m;
-
-				var vertexIndexBuffer = new Uint32Array( data, offsetVertices, 4 * nElements );
-				var materialIndexBuffer = new Uint16Array( data, offsetMaterials, nElements );
-
-				for ( i = 0; i < nElements; i ++ ) {
-
-					a = vertexIndexBuffer[ i * 4 ];
-					b = vertexIndexBuffer[ i * 4 + 1 ];
-					c = vertexIndexBuffer[ i * 4 + 2 ];
-					d = vertexIndexBuffer[ i * 4 + 3 ];
-
-					m = materialIndexBuffer[ i ];
-
-					scope.faces.push( new THREE.Face3( a, b, d, null, null, m ) );
-					scope.faces.push( new THREE.Face3( b, c, d, null, null, m ) );
-
-				}
-
-			}
-
-			function init_faces3_smooth( nElements, offsetVertices, offsetNormals, offsetMaterials ) {
-
-				var i, a, b, c, m;
-				var na, nb, nc;
-
-				var vertexIndexBuffer = new Uint32Array( data, offsetVertices, 3 * nElements );
-				var normalIndexBuffer = new Uint32Array( data, offsetNormals, 3 * nElements );
-				var materialIndexBuffer = new Uint16Array( data, offsetMaterials, nElements );
-
-				for ( i = 0; i < nElements; i ++ ) {
-
-					a = vertexIndexBuffer[ i * 3 ];
-					b = vertexIndexBuffer[ i * 3 + 1 ];
-					c = vertexIndexBuffer[ i * 3 + 2 ];
-
-					na = normalIndexBuffer[ i * 3 ];
-					nb = normalIndexBuffer[ i * 3 + 1 ];
-					nc = normalIndexBuffer[ i * 3 + 2 ];
-
-					m = materialIndexBuffer[ i ];
-
-					var nax = normals[ na * 3 ],
-						nay = normals[ na * 3 + 1 ],
-						naz = normals[ na * 3 + 2 ],
-
-						nbx = normals[ nb * 3 ],
-						nby = normals[ nb * 3 + 1 ],
-						nbz = normals[ nb * 3 + 2 ],
-
-						ncx = normals[ nc * 3 ],
-						ncy = normals[ nc * 3 + 1 ],
-						ncz = normals[ nc * 3 + 2 ];
-
-					scope.faces.push( new THREE.Face3( a, b, c, [
-						new THREE.Vector3( nax, nay, naz ),
-						new THREE.Vector3( nbx, nby, nbz ),
-						new THREE.Vector3( ncx, ncy, ncz )
-					], null, m ) );
-
-				}
-
-			}
-
-			function init_faces4_smooth( nElements, offsetVertices, offsetNormals, offsetMaterials ) {
-
-				var i, a, b, c, d, m;
-				var na, nb, nc, nd;
-
-				var vertexIndexBuffer = new Uint32Array( data, offsetVertices, 4 * nElements );
-				var normalIndexBuffer = new Uint32Array( data, offsetNormals, 4 * nElements );
-				var materialIndexBuffer = new Uint16Array( data, offsetMaterials, nElements );
-
-				for ( i = 0; i < nElements; i ++ ) {
-
-					a = vertexIndexBuffer[ i * 4 ];
-					b = vertexIndexBuffer[ i * 4 + 1 ];
-					c = vertexIndexBuffer[ i * 4 + 2 ];
-					d = vertexIndexBuffer[ i * 4 + 3 ];
-
-					na = normalIndexBuffer[ i * 4 ];
-					nb = normalIndexBuffer[ i * 4 + 1 ];
-					nc = normalIndexBuffer[ i * 4 + 2 ];
-					nd = normalIndexBuffer[ i * 4 + 3 ];
-
-					m = materialIndexBuffer[ i ];
-
-					var nax = normals[ na * 3 ],
-						nay = normals[ na * 3 + 1 ],
-						naz = normals[ na * 3 + 2 ],
-
-						nbx = normals[ nb * 3 ],
-						nby = normals[ nb * 3 + 1 ],
-						nbz = normals[ nb * 3 + 2 ],
-
-						ncx = normals[ nc * 3 ],
-						ncy = normals[ nc * 3 + 1 ],
-						ncz = normals[ nc * 3 + 2 ],
-
-						ndx = normals[ nd * 3 ],
-						ndy = normals[ nd * 3 + 1 ],
-						ndz = normals[ nd * 3 + 2 ];
-
-					scope.faces.push( new THREE.Face3( a, b, d, [
-						new THREE.Vector3( nax, nay, naz ),
-						new THREE.Vector3( nbx, nby, nbz ),
-						new THREE.Vector3( ndx, ndy, ndz )
-					], null, m ) );
-
-					scope.faces.push( new THREE.Face3( b, c, d, [
-						new THREE.Vector3( nbx, nby, nbz ),
-						new THREE.Vector3( ncx, ncy, ncz ),
-						new THREE.Vector3( ndx, ndy, ndz )
-					], null, m ) );
-
-				}
-
-			}
-
-			function init_triangles_flat( start ) {
-
-				var nElements = md.ntri_flat;
-
-				if ( nElements ) {
-
-					var offsetMaterials = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-					init_faces3_flat( nElements, start, offsetMaterials );
-
-				}
-
-			}
-
-			function init_triangles_flat_uv( start ) {
-
-				var nElements = md.ntri_flat_uv;
-
-				if ( nElements ) {
-
-					var offsetUvs = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-					var offsetMaterials = offsetUvs + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-
-					init_faces3_flat( nElements, start, offsetMaterials );
-					init_uvs3( nElements, offsetUvs );
-
-				}
-
-			}
-
-			function init_triangles_smooth( start ) {
-
-				var nElements = md.ntri_smooth;
-
-				if ( nElements ) {
-
-					var offsetNormals = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-					var offsetMaterials = offsetNormals + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-
-					init_faces3_smooth( nElements, start, offsetNormals, offsetMaterials );
-
-				}
-
-			}
-
-			function init_triangles_smooth_uv( start ) {
-
-				var nElements = md.ntri_smooth_uv;
-
-				if ( nElements ) {
-
-					var offsetNormals = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-					var offsetUvs = offsetNormals + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-					var offsetMaterials = offsetUvs + nElements * Uint32Array.BYTES_PER_ELEMENT * 3;
-
-					init_faces3_smooth( nElements, start, offsetNormals, offsetMaterials );
-					init_uvs3( nElements, offsetUvs );
-
-				}
-
-			}
-
-			function init_quads_flat( start ) {
-
-				var nElements = md.nquad_flat;
-
-				if ( nElements ) {
-
-					var offsetMaterials = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-					init_faces4_flat( nElements, start, offsetMaterials );
-
-				}
-
-			}
-
-			function init_quads_flat_uv( start ) {
-
-				var nElements = md.nquad_flat_uv;
-
-				if ( nElements ) {
-
-					var offsetUvs = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-					var offsetMaterials = offsetUvs + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-
-					init_faces4_flat( nElements, start, offsetMaterials );
-					init_uvs4( nElements, offsetUvs );
-
-				}
-
-			}
-
-			function init_quads_smooth( start ) {
-
-				var nElements = md.nquad_smooth;
-
-				if ( nElements ) {
-
-					var offsetNormals = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-					var offsetMaterials = offsetNormals + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-
-					init_faces4_smooth( nElements, start, offsetNormals, offsetMaterials );
-
-				}
-
-			}
-
-			function init_quads_smooth_uv( start ) {
-
-				var nElements = md.nquad_smooth_uv;
-
-				if ( nElements ) {
-
-					var offsetNormals = start + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-					var offsetUvs = offsetNormals + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-					var offsetMaterials = offsetUvs + nElements * Uint32Array.BYTES_PER_ELEMENT * 4;
-
-					init_faces4_smooth( nElements, start, offsetNormals, offsetMaterials );
-					init_uvs4( nElements, offsetUvs );
-
-				}
-
-			}
-
-		};
-
-		Model.prototype = Object.create( THREE.Geometry.prototype );
-		Model.prototype.constructor = Model;
-
-		var geometry = new Model();
-		var materials = THREE.Loader.prototype.initMaterials( jsonMaterials, texturePath, this.crossOrigin );
-
-		callback( geometry, materials );
-
-	}
-
-};

+ 0 - 7
examples/obj/camaro/.htaccess

@@ -1,7 +0,0 @@
-<Files *.js>
-SetOutputFilter DEFLATE
-</Files>
-
-<Files *.bin>
-SetOutputFilter DEFLATE
-</Files>

BIN
examples/obj/camaro/CamaroNoUv_bin.bin


+ 0 - 125
examples/obj/camaro/CamaroNoUv_bin.js

@@ -1,125 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "CamaroNoUv.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 53139,
-        "faces"         : 93251,
-        "normals"       : 46141,
-        "uvs"           : 0,
-        "materials"     : 9
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "Body",
-	"colorDiffuse" : [0.227, 0.408, 0.463],
-	"colorSpecular" : [2.0, 2.0, 2.0],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 782.352941,
-	"opacity" : 1.0
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "mirror",
-	"colorDiffuse" : [0.3, 0.3, 0.3],
-	"colorSpecular" : [2.0, 2.0, 2.0],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 782.352941,
-	"opacity" : 1.0
-	},
-
-	{
-	"DbgColor" : 60928,
-	"DbgIndex" : 2,
-	"DbgName" : "black",
-	"colorDiffuse" : [0.102, 0.102, 0.102],
-	"colorSpecular" : [0.2, 0.2, 0.2],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 7.843137,
-	"opacity" : 1.0
-	},
-
-	{
-	"DbgColor" : 238,
-	"DbgIndex" : 3,
-	"DbgName" : "mizo",
-	"colorDiffuse" : [0.0, 0.0, 0.0],
-	"colorSpecular" : [0.0, 0.0, 0.0],
-	"illumination" : 1,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 0.0,
-	"opacity" : 1.0
-	},
-
-	{
-	"DbgColor" : 15658496,
-	"DbgIndex" : 4,
-	"DbgName" : "glass",
-	"colorDiffuse" : [0.2, 0.31, 0.306],
-	"colorSpecular" : [2.0, 2.0, 2.0],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 782.352941,
-	"opacity" : 0.34
-	},
-
-	{
-	"DbgColor" : 61166,
-	"DbgIndex" : 5,
-	"DbgName" : "Interieur",
-	"colorDiffuse" : [0.102, 0.102, 0.102],
-	"colorSpecular" : [0.44, 0.44, 0.44],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216,
-	"opacity" : 1.0
-	},
-
-	{
-	"DbgColor" : 15597806,
-	"DbgIndex" : 6,
-	"DbgName" : "tire",
-	"colorDiffuse" : [0.271, 0.271, 0.263],
-	"colorSpecular" : [0.1, 0.1, 0.1],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059,
-	"opacity" : 1.0
-	},
-
-	{
-	"DbgColor" : 3744854,
-	"DbgIndex" : 7,
-	"DbgName" : "tireling",
-	"colorDiffuse" : [0.5, 0.5, 0.5],
-	"colorSpecular" : [0.2, 0.2, 0.2],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059,
-	"opacity" : 1.0
-	},
-
-	{
-	"DbgColor" : 4614226,
-	"DbgIndex" : 8,
-	"DbgName" : "black2",
-	"colorDiffuse" : [0.0, 0.0, 0.0],
-	"colorSpecular" : [0.0, 0.0, 0.0],
-	"illumination" : 1,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 0.0,
-	"opacity" : 1.0
-	}],
-
-    "buffers": "CamaroNoUv_bin.bin"
-
-}

+ 0 - 7
examples/obj/f50/.htaccess

@@ -1,7 +0,0 @@
-<Files *.js>
-SetOutputFilter DEFLATE
-</Files>
-
-<Files *.bin>
-SetOutputFilter DEFLATE
-</Files>

BIN
examples/obj/f50/F50NoUv_bin.bin


+ 0 - 296
examples/obj/f50/F50NoUv_bin.js

@@ -1,296 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "F50NoUv.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 67006,
-        "faces"         : 97474,
-        "normals"       : 53988,
-        "uvs"           : 0,
-        "materials"     : 25
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "F50NEGRO",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "F50CROMO",
-	"colorDiffuse" : [0.1004, 0.10352, 0.06272],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 60928,
-	"DbgIndex" : 2,
-	"DbgName" : "F50CRIST",
-	"colorDiffuse" : [0.0408, 0.15688, 0.00312],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216,
-	"opacity" : 0.6
-	},
-
-	{
-	"DbgColor" : 238,
-	"DbgIndex" : 3,
-	"DbgName" : "F50ROJO",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 15658496,
-	"DbgIndex" : 4,
-	"DbgName" : "F50NEGRO1",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 61166,
-	"DbgIndex" : 5,
-	"DbgName" : "F50ALFO",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 15597806,
-	"DbgIndex" : 6,
-	"DbgName" : "F50REJIL",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 13579988,
-	"DbgIndex" : 7,
-	"DbgName" : "F50RIGHT",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 5708456,
-	"DbgIndex" : 8,
-	"DbgName" : "F50CAPO1",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 16326172,
-	"DbgIndex" : 9,
-	"DbgName" : "F50CAPO",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 5647119,
-	"DbgIndex" : 10,
-	"DbgName" : "F50LEFT",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 1556016,
-	"DbgIndex" : 11,
-	"DbgName" : "F50MOTOR",
-	"colorDiffuse" : [0.1004, 0.10352, 0.06272],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 2608512,
-	"DbgIndex" : 12,
-	"DbgName" : "F50GOOD",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 13541364,
-	"DbgIndex" : 13,
-	"DbgName" : "F50RUEDA",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 16059369,
-	"DbgIndex" : 14,
-	"DbgName" : "F50SUELO",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 109031,
-	"DbgIndex" : 15,
-	"DbgName" : "F50DISCO",
-	"colorDiffuse" : [0.41096, 0.3608, 0.25728],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 10128841,
-	"DbgIndex" : 16,
-	"DbgName" : "F50FARYE",
-	"colorDiffuse" : [0.79056, 0.41096, 0.00624],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216,
-	"opacity" : 0.4
-	},
-
-	{
-	"DbgColor" : 6350752,
-	"DbgIndex" : 17,
-	"DbgName" : "F5OLOGO",
-	"colorDiffuse" : [0.41096, 0.3608, 0.25728],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 9261704,
-	"DbgIndex" : 18,
-	"DbgName" : "F50FARED",
-	"colorDiffuse" : [0.63056, 0.07528, 0.05016],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216,
-	"opacity" : 0.3
-	},
-
-	{
-	"DbgColor" : 1622631,
-	"DbgIndex" : 19,
-	"DbgName" : "F50FARWD",
-	"colorDiffuse" : [0.40472, 0.40472, 0.40472],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216,
-	"opacity" : 0.3
-	},
-
-	{
-	"DbgColor" : 12242867,
-	"DbgIndex" : 20,
-	"DbgName" : "F50ASIEN",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 13519402,
-	"DbgIndex" : 21,
-	"DbgName" : "F50MATR",
-	"colorDiffuse" : [0.5992, 0.58984, 0.56472],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 8996413,
-	"DbgIndex" : 22,
-	"DbgName" : "F50AIRE",
-	"colorDiffuse" : [0.15376, 0.10984, 0.03768],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 11712834,
-	"DbgIndex" : 23,
-	"DbgName" : "F50TOPAL",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	},
-
-	{
-	"DbgColor" : 14218595,
-	"DbgIndex" : 24,
-	"DbgName" : "F50TOPAL1",
-	"colorDiffuse" : [0.5616, 0.04392, 0.06904],
-	"colorSpecular" : [0.025, 0.025, 0.025],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 98.039216
-	}],
-
-    "buffers": "F50NoUv_bin.bin"
-
-}

+ 0 - 7
examples/obj/gallardo/.htaccess

@@ -1,7 +0,0 @@
-<Files *.js>
-SetOutputFilter DEFLATE
-</Files>
-
-<Files *.bin>
-SetOutputFilter DEFLATE
-</Files>

BIN
examples/obj/gallardo/GallardoNoUv_bin.bin


+ 0 - 94
examples/obj/gallardo/GallardoNoUv_bin.js

@@ -1,94 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "GallardoNoUv.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 77815,
-        "faces"         : 75573,
-        "normals"       : 55191,
-        "uvs"           : 0,
-        "materials"     : 7
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "wire_255255255",
-	"colorDiffuse" : [0.8, 0.8, 0.8],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 29.411765
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "wire_115115115",
-	"colorDiffuse" : [0.3608, 0.3608, 0.3608],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 29.411765
-	},
-
-	{
-	"DbgColor" : 60928,
-	"DbgIndex" : 2,
-	"DbgName" : "03___Default",
-	"colorDiffuse" : [0.13176, 0.13176, 0.13176],
-	"colorSpecular" : [0.0, 0.0, 0.0],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 7.843137
-	},
-
-	{
-	"DbgColor" : 238,
-	"DbgIndex" : 3,
-	"DbgName" : "02___Default",
-	"colorDiffuse" : [0.8, 0.0, 0.0],
-	"colorSpecular" : [0.6525, 0.6525, 0.6525],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 25.490196
-	},
-
-	{
-	"DbgColor" : 15658496,
-	"DbgIndex" : 4,
-	"DbgName" : "wire_255000000",
-	"colorDiffuse" : [0.8, 0.0, 0.0],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 29.411765
-	},
-
-	{
-	"DbgColor" : 61166,
-	"DbgIndex" : 5,
-	"DbgName" : "wire_252252000",
-	"colorDiffuse" : [0.79056, 0.79056, 0.0],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 29.411765
-	},
-
-	{
-	"DbgColor" : 15597806,
-	"DbgIndex" : 6,
-	"DbgName" : "wire_132132132",
-	"colorDiffuse" : [0.41408, 0.41408, 0.41408],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 29.411765
-	}],
-
-    "buffers": "GallardoNoUv_bin.bin"
-
-}

BIN
examples/obj/gallardo/parts/gallardo_body_bin.bin


+ 0 - 94
examples/obj/gallardo/parts/gallardo_body_bin.js

@@ -1,94 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "gallardo_body.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 59791,
-        "faces"         : 57252,
-        "normals"       : 51045,
-        "uvs"           : 0,
-        "materials"     : 7
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "02___Default",
-	"colorDiffuse" : [0.64, 0.0, 0.0],
-	"colorSpecular" : [0.6525, 0.6525, 0.6525],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 21.568627
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "wire_115115115",
-	"colorDiffuse" : [0.28864, 0.28864, 0.28864],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 27.45098
-	},
-
-	{
-	"DbgColor" : 60928,
-	"DbgIndex" : 2,
-	"DbgName" : "wire_132132132",
-	"colorDiffuse" : [0.331264, 0.331264, 0.331264],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 27.45098
-	},
-
-	{
-	"DbgColor" : 238,
-	"DbgIndex" : 3,
-	"DbgName" : "wire_255255255",
-	"colorDiffuse" : [0.64, 0.64, 0.64],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 27.45098
-	},
-
-	{
-	"DbgColor" : 15658496,
-	"DbgIndex" : 4,
-	"DbgName" : "03___Default",
-	"colorDiffuse" : [0.105408, 0.105408, 0.105408],
-	"colorSpecular" : [0.0, 0.0, 0.0],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 3.921569
-	},
-
-	{
-	"DbgColor" : 61166,
-	"DbgIndex" : 5,
-	"DbgName" : "wire_252252000",
-	"colorDiffuse" : [0.632448, 0.632448, 0.0],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 27.45098
-	},
-
-	{
-	"DbgColor" : 15597806,
-	"DbgIndex" : 6,
-	"DbgName" : "wire_255000000",
-	"colorDiffuse" : [0.64, 0.0, 0.0],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 27.45098
-	}],
-
-    "buffers": "gallardo_body_bin.bin"
-
-}

BIN
examples/obj/gallardo/parts/gallardo_wheel_bin.bin


+ 0 - 39
examples/obj/gallardo/parts/gallardo_wheel_bin.js

@@ -1,39 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "gallardo_wheel.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 4434,
-        "faces"         : 4394,
-        "normals"       : 2654,
-        "uvs"           : 0,
-        "materials"     : 2
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "wire_255255255",
-	"colorDiffuse" : [0.64, 0.64, 0.64],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 27.45098
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "wire_115115115",
-	"colorDiffuse" : [0.28864, 0.28864, 0.28864],
-	"colorSpecular" : [0.175, 0.175, 0.175],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 27.45098
-	}],
-
-    "buffers": "gallardo_wheel_bin.bin"
-
-}

+ 0 - 7
examples/obj/veyron/.htaccess

@@ -1,7 +0,0 @@
-<Files *.js>
-SetOutputFilter DEFLATE
-</Files>
-
-<Files *.bin>
-SetOutputFilter DEFLATE
-</Files>

BIN
examples/obj/veyron/VeyronNoUv_bin.bin


+ 0 - 108
examples/obj/veyron/VeyronNoUv_bin.js

@@ -1,108 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "VeyronNoUv.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 36210,
-        "faces"         : 33034,
-        "normals"       : 31827,
-        "uvs"           : 0,
-        "materials"     : 8
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "08___Default",
-	"colorDiffuse" : [0.18824, 0.18824, 0.18824],
-	"colorSpecular" : [0.14825, 0.14825, 0.14825],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "03___Default",
-	"colorDiffuse" : [0.52704, 0.52704, 0.52704],
-	"colorSpecular" : [0.6, 0.6, 0.6],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 37.254902
-	},
-
-	{
-	"DbgColor" : 60928,
-	"DbgIndex" : 2,
-	"DbgName" : "ColorBlack",
-	"colorDiffuse" : [0.21648, 0.21648, 0.21648],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 56.862745
-	},
-
-	{
-	"DbgColor" : 238,
-	"DbgIndex" : 3,
-	"DbgName" : "04___Default",
-	"colorDiffuse" : [0.54272, 0.57408, 0.58984],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 66.666667,
-	"opacity" : 0.5
-	},
-
-	{
-	"DbgColor" : 15658496,
-	"DbgIndex" : 4,
-	"DbgName" : "02___Default",
-	"colorDiffuse" : [0.48312, 0.0, 0.0],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 56.862745
-	},
-
-	{
-	"DbgColor" : 61166,
-	"DbgIndex" : 5,
-	"DbgName" : "Aluminium",
-	"colorDiffuse" : [0.47056, 0.47056, 0.47056],
-	"colorSpecular" : [0.4, 0.4, 0.4],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 17.647059
-	},
-
-	{
-	"DbgColor" : 15597806,
-	"DbgIndex" : 6,
-	"DbgName" : "glassRed",
-	"colorDiffuse" : [0.57408, 0.0, 0.0],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 66.666667,
-	"opacity" : 0.5
-	},
-
-	{
-	"DbgColor" : 419610,
-	"DbgIndex" : 7,
-	"DbgName" : "glassOranje",
-	"colorDiffuse" : [0.8, 0.49568, 0.1004],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 66.666667,
-	"opacity" : 0.5
-	}],
-
-    "buffers": "VeyronNoUv_bin.bin"
-
-}

BIN
examples/obj/veyron/parts/veyron_body_bin.bin


+ 0 - 108
examples/obj/veyron/parts/veyron_body_bin.js

@@ -1,108 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "veyron_body.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 23013,
-        "faces"         : 21390,
-        "normals"       : 21175,
-        "uvs"           : 0,
-        "materials"     : 8
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "ColorBlack",
-	"colorDiffuse" : [0.173184, 0.173184, 0.173184],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 52.941176
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "02___Default",
-	"colorDiffuse" : [0.386496, 0.0, 0.0],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 52.941176
-	},
-
-	{
-	"DbgColor" : 60928,
-	"DbgIndex" : 2,
-	"DbgName" : "Aluminium",
-	"colorDiffuse" : [0.376448, 0.376448, 0.376448],
-	"colorSpecular" : [0.4, 0.4, 0.4],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 15.686275
-	},
-
-	{
-	"DbgColor" : 238,
-	"DbgIndex" : 3,
-	"DbgName" : "03___Default",
-	"colorDiffuse" : [0.421632, 0.421632, 0.421632],
-	"colorSpecular" : [0.6, 0.6, 0.6],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 35.294118
-	},
-
-	{
-	"DbgColor" : 15658496,
-	"DbgIndex" : 4,
-	"DbgName" : "glassRed",
-	"colorDiffuse" : [0.459264, 0.0, 0.0],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 64.705882,
-	"opacity" : 0.5
-	},
-
-	{
-	"DbgColor" : 61166,
-	"DbgIndex" : 5,
-	"DbgName" : "glassOranje",
-	"colorDiffuse" : [0.64, 0.396544, 0.08032],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 64.705882,
-	"opacity" : 0.5
-	},
-
-	{
-	"DbgColor" : 15597806,
-	"DbgIndex" : 6,
-	"DbgName" : "08___Default",
-	"colorDiffuse" : [0.150592, 0.150592, 0.150592],
-	"colorSpecular" : [0.14825, 0.14825, 0.14825],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 15.686275
-	},
-
-	{
-	"DbgColor" : 419610,
-	"DbgIndex" : 7,
-	"DbgName" : "04___Default",
-	"colorDiffuse" : [0.434176, 0.459264, 0.471872],
-	"colorSpecular" : [0.75, 0.75, 0.75],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 64.705882,
-	"opacity" : 0.5
-	}],
-
-    "buffers": "veyron_body_bin.bin"
-
-}

BIN
examples/obj/veyron/parts/veyron_wheel_bin.bin


+ 0 - 39
examples/obj/veyron/parts/veyron_wheel_bin.js

@@ -1,39 +0,0 @@
-{
-
-    "metadata" :
-    {
-        "formatVersion" : 3.1,
-        "sourceFile"    : "veyron_wheel.obj",
-        "generatedBy"   : "OBJConverter",
-        "vertices"      : 3300,
-        "faces"         : 2907,
-        "normals"       : 3163,
-        "uvs"           : 0,
-        "materials"     : 2
-    },
-
-    "materials": [	{
-	"DbgColor" : 15658734,
-	"DbgIndex" : 0,
-	"DbgName" : "03___Default",
-	"colorDiffuse" : [0.421632, 0.421632, 0.421632],
-	"colorSpecular" : [0.6, 0.6, 0.6],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 35.294118
-	},
-
-	{
-	"DbgColor" : 15597568,
-	"DbgIndex" : 1,
-	"DbgName" : "08___Default",
-	"colorDiffuse" : [0.150592, 0.150592, 0.150592],
-	"colorSpecular" : [0.14825, 0.14825, 0.14825],
-	"illumination" : 2,
-	"opticalDensity" : 1.0,
-	"specularCoef" : 15.686275
-	}],
-
-    "buffers": "veyron_wheel_bin.bin"
-
-}