Ondrej Stava 81d73904ac Draco updated to 1.0.0 version
The latest version of Draco brings many new enhancements to improve the
development experience:
* Stable API release
* Support for npm Javascript package management
* Javascript based encoder
* Generalized metadata for meshes and point clouds
  * Now supporting material properties included along with encoded file
* Improved compression rates:
  * 15% better compression on smaller models
  * 40% better compression of normals
* Performance improvements (~10% faster encoding, decoding)
* Reduced GPU memory usage:
  * Option to store decoded quantized attributes
  * Support for triangle strip connectivity on decoded meshes
* iOS 9 Javascript decoder
* Bitstream specification now available
2017-07-28 14:25:10 -07:00
..
2016-12-12 16:39:06 -08:00
2017-07-28 14:25:10 -07:00
2017-04-12 12:09:14 -07:00

The code shows a simple example of integration of threejs and draco javascript
or WebAssembly decoder. From the example, you should be able to load an
encoded draco mesh file and visualize it through threejs's fancy 3D tools.

How to run the example code:

(1) Clone this project to a working directory, e.g. draco/.

(2) From the project's root directory, start a local http server.
E.g, with Python, you could run "python -m SimpleHTTPServer".

(3) Load javascript/example/webgl_loader_draco.html. You should be able to see
an empty scene rendered by threejs.

(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".