diff --git a/javascript/example/README b/javascript/example/README index f321ca4..421efa7 100644 --- a/javascript/example/README +++ b/javascript/example/README @@ -4,23 +4,14 @@ file and visualize it through threejs's fancy 3D tools. How to run the example code: -(1) Create your working directory, e.g. draco_example/. +(1) Clone this project to a working directory, e.g. draco/. -(2) Download the latest three.js file from: -https://github.com/mrdoob/three.js/blob/dev/build/three.js -You could clone the repository and copy three.js from build/ to your -working directory. - -(3) Copy DRACOLoader.js and webgl_loader_draco.html from -draco/javascript/example to your working directory. Copy draco_decoder.js -from draco/javascript to your working directory. - -(4) From your working directory, start a local http server. +(2) From the project's root directory, start a local http server. E.g, with Python, you could run "python -m SimpleHTTPServer". -(5) Load webgl_loader_draco.html. You should be able to see an empty scene -rendered by threejs. +(3) Load javascript/example/webgl_loader_draco.html. You should be able to see +an empty scene rendered by threejs. -(6) Click "Choose File" to select a draco encoded file (.drc) and you should be +(4) Click "Choose File" to select a draco encoded file (.drc) and you should be able to see the model. e.g. bunny.drc. This is model encoded using Draco default compression. The original ply is located here "testdata/bun_zipper.ply". diff --git a/javascript/example/webgl_loader_draco.html b/javascript/example/webgl_loader_draco.html index 9e01fe8..c767b2a 100644 --- a/javascript/example/webgl_loader_draco.html +++ b/javascript/example/webgl_loader_draco.html @@ -41,8 +41,8 @@
     
-    
-    
+    
+