Explorar o código

Added saveString

Fernando Serrano %!s(int64=8) %!d(string=hai) anos
pai
achega
cea04d516a
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      examples/gltf_exporter.html

+ 2 - 3
examples/gltf_exporter.html

@@ -188,10 +188,9 @@
 				scene.add( object );
 				scene.add( object );
 */
 */
 				var gltfExporter = new THREE.GLTFExporter();
 				var gltfExporter = new THREE.GLTFExporter();
-				gltfExporter.parse(scene);
+				// gltfExporter.parse(scene);
 				//console.log(JSON.stringify(gltfExporter.parse(scene), null, 2));
 				//console.log(JSON.stringify(gltfExporter.parse(scene), null, 2));
-
-				//saveString( gltfExporter.parse(scene), 'model.gltf' );
+				saveString( JSON.stringify(gltfExporter.parse(scene),null, 2), 'scene.gltf' );
 
 
 				//
 				//
 
 

粤ICP备19079148号