Simplify steps required to run example. (#78)

* Simplify steps to run example.
This commit is contained in:
Don McCurdy 2017-03-17 12:30:33 -07:00 committed by Ondrej Stava
parent e648e1bde5
commit efa5604d64
2 changed files with 7 additions and 16 deletions

View File

@ -4,23 +4,14 @@ file and visualize it through threejs's fancy 3D tools.
How to run the example code: 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: (2) From the project's root directory, start a local http server.
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.
E.g, with Python, you could run "python -m SimpleHTTPServer". 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 (3) Load javascript/example/webgl_loader_draco.html. You should be able to see
rendered by threejs. 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 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". default compression. The original ply is located here "testdata/bun_zipper.ply".

View File

@ -41,8 +41,8 @@
</div> </div>
<pre id="fileDisplayArea"><pre> <pre id="fileDisplayArea"><pre>
</div> </div>
<script src="three.js"></script> <script src="https://cdn.rawgit.com/mrdoob/three.js/r84/build/three.min.js"></script>
<script src="draco_decoder.js"></script> <script src="../draco_decoder.js"></script>
<script src="DRACOLoader.js"></script> <script src="DRACOLoader.js"></script>
<script> <script>
'use strict'; 'use strict';