23 Commits

Author SHA1 Message Date
Don McCurdy
1f810d8f65 THREE.DRACOLoader: Support attribute type map. 2018-05-05 16:46:19 -07:00
Ondrej Stava
c6e718358c Fixed crash in DRACOLoader.js when attributeUniqueIdMap was left
undefined.
2018-01-18 08:57:40 -08:00
Don McCurdy
6c954eac60 DRACOLoader: Support requests for multiple files in parallel. 2018-01-16 09:28:37 -08:00
Don McCurdy
3ea3cd8b20 DRACOLoader: Simplify decoder source loading. (#315)
* DRACOLoader: Simplify decoder source loading.
2018-01-10 10:05:19 -08:00
Ondrej Stava
5186ec2f7a Updated snapshot to 1.2.4
* Up to 20% faster decoding
* Added support for integer attributes to our Javascript Encoder
* Fixed issues with THREE.DracoLoader not releasing memory associated
with the Draco module
* OBJ decoder can now be used to parse pure point clouds
* Added Unity plugins to support runtime loading and design-time
importing of encoded Draco files
2017-12-13 12:24:57 -08:00
Ondrej Stava
86a6933a5d Updated Draco to 1.2.0
Improved compression for smaller meshes
Enhancements for upcoming Draco glTF2.0 extension
Fixed Android build issues
New, easier to use DRACOLoader.js
2017-10-24 11:22:18 -07:00
Ondrej Stava
dc28e6a2ea Updated Draco to 1.1.0
The latest version of Draco brings a number of new compression
enhancements for even smaller models:
- Improved compression
  - Up to 40% better compression of normals
  - Up to 5% better compression for models with multiple attributes
- Faster decode speeds
  - 30% faster decoding for models with multiple attributes for lower compression levels 4 and below
    - Note: Decreases compression by 10%.
- Encoding of metadata to .obj (e.g. Draco can preserve material or sub-object names)
- Security fixes
2017-09-11 15:38:19 -07:00
Frank Galligan
c61ddb67f3 Update Draco snapshot.
-Increase version to 1.0.1
-Update Javascript decode timing example
-Fix async creation of DracoDecoderModule
-fixes wasm parallel decoding
-Introduce base class for geometric normal predictor
-Added integer attribute interface to JavaScript decoder
-Move loading Draco decoder into three.js Draco loader
-Add compiler launcher support to CMake build
-Add sanitizer support via CMake build
-Check we are not reading past the end of the attribute buffer
2017-08-21 16:04:57 -07:00
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
Ondrej Stava
e14955d9e3 Fixed color loading in our THREE.js example.
1. Proper handling of four component colors (RGBA)
2. Removed normalization step that is done internally in the DracoDecoder.
2017-06-30 10:49:50 -07:00
Ondrej Stava
73bb3c8530 Version 0.10.0 snapshot
- Improved compression for triangular meshes (~10%)
- Added WebAssembly decoder
- Code cleanup + robustness fixes
2017-04-12 12:09:14 -07:00
Don McCurdy
4dac78e622 Expose .isVersionSupported() method on THREE.DRACOLoader. (#85)
* Expose .isVersionSupported() method on THREE.DRACOLoader.
2017-03-28 15:43:13 -07:00
gero3
e648e1bde5 Make sure errorMsg is defined (#76) 2017-03-10 07:56:41 -08:00
Ondrej Stava
db5e679828 Updated logging in our THREE.js example
- output to console
- needs to be explicitly enabled by settings a non-zero verbosity level
2017-03-09 16:42:13 -08:00
laurielabs
e85b83b16a fixed threejs example vertex color normal (#74)
* fixed threejs example vertex color normal
2017-03-07 08:32:29 -08:00
Ondrej Stava
0a9c9c7b8b Update to our THREE.js example: DracoModule is now instantiated in
DRACOLoader class using closure to prevent multiple instantiations.
2017-02-28 09:04:51 -08:00
Ondrej Stava
127484be47 Updating draco decoder javascript API and other minor changes.
1. Javascript decoder is now exported as a module using DracoModule()
function that needs to be instantiated on the client.

2. Updated Javascript example applications and README.md

3. Added normalization function to VectorD

4. Added support for converting a single signed value to symbol for
entropy coding and vice versa

5. Minor code cleaning
2017-02-27 15:46:48 -08:00
Frank Galligan
a282c3ed5b Optimize three.js rendering and other small fixes.
1. Optimize loading of mesh data into three.js in Chrome.
2. Small refactoring of our traversal encoding code.
2017-02-16 17:27:56 -08:00
Ondrej Stava
8374e14042 Merging changes from our private repo:
1. More optimized selection of prediction schemes for different
compression levels on the encoder side.

2. Improved robustness to tampered input data (.drc)

3. Added support for strognly typed vectors of bools

4. Support for logging and squared lenght to our VectorND class

5. Added support for partially defined indices in .OBJ files

6. Added support for loading of normal vectors in .PLY files
2017-02-08 10:34:40 -08:00
Jeff Nusz
554909a156 check if texCoords defined before looping through all coordinates 2017-01-24 16:54:03 -08:00
Jeff Nusz
c2449397d3 Javascript loader: load texture coordinates 2017-01-24 11:24:24 -08:00
Frank Galligan
3682ca2801 Make decoder more robust, build and Javascript fixes
1. Add 'use strict'to example Javascript.
2. Small fixes to README.md.
3. Fix Draco compiler flag tests.
4. Fixed issue when number of quantized bits was to large.
5. Changed StartDecoding to return a value.
6. Check that num of attributes are not less than 0.
7. Check that the number of attributes is a valid value.
2017-01-23 14:55:45 -08:00
Frank Galligan
3c8f789d6a Version 0.9.0 snapshot 2016-12-12 16:39:06 -08:00