Skip to content

Commit

Permalink
Merge pull request #657 from google/v141_snapshot
Browse files Browse the repository at this point in the history
Draco v1.4.1
  • Loading branch information
tomfinegan authored Dec 8, 2020
2 parents 89f21de + 2e67b39 commit 07532d6
Show file tree
Hide file tree
Showing 34 changed files with 892 additions and 736 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@

<p align="center">
<img width="350px" src="docs/artwork/draco3d-vert.svg" />
</p>

![Build Status: master](https://travis-ci.org/google/draco.svg?branch=master)

News
=======
### Version 1.4.1 release
* Using the versioned gstatic.com WASM and Javascript decoders is now
recommended. To use v1.4.1, use this URL:
* https://www.gstatic.com/draco/versioned/decoders/1.4.1/*
* Replace the * with the files to load. E.g.
* https://gstatic.com/draco/versioned/decoders/1.4.1/draco_decoder.js
* This works with the v1.3.6 and v1.4.0 releases, and will work with future
Draco releases.
* Bug fixes

### Version 1.4.0 release
* WASM and JavaScript decoders are hosted from a static URL.
* It is recommended to always pull your Draco WASM and JavaScript decoders from this URL:
Expand Down
1 change: 0 additions & 1 deletion cmake/draco_targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ macro(draco_add_library)

# Determine if $lib_NAME is a header only target.
unset(sources_list)

if(lib_SOURCES)
set(sources_list ${lib_SOURCES})
list(FILTER sources_list INCLUDE REGEX cc$)
Expand Down
18 changes: 9 additions & 9 deletions javascript/draco_decoder.js

Large diffs are not rendered by default.

Binary file modified javascript/draco_decoder.wasm
Binary file not shown.
16 changes: 8 additions & 8 deletions javascript/draco_decoder_gltf.js

Large diffs are not rendered by default.

Binary file modified javascript/draco_decoder_gltf.wasm
Binary file not shown.
18 changes: 9 additions & 9 deletions javascript/draco_encoder.js

Large diffs are not rendered by default.

Binary file added javascript/draco_encoder.wasm
Binary file not shown.
107 changes: 107 additions & 0 deletions javascript/draco_encoder_wrapper.js

Large diffs are not rendered by default.

257 changes: 132 additions & 125 deletions javascript/draco_wasm_wrapper.js

Large diffs are not rendered by default.

254 changes: 130 additions & 124 deletions javascript/draco_wasm_wrapper_gltf.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions javascript/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Static Loading Javascript Decoder
---------------------------------

In the previous examples, `DRACOLoader.js` will dynamically load Javascript decoder or
WASM decoder depending on the support of the browser. To avoid dynamical loading the decoder, e.g. to use with JS bundler like webpack, you could directly include `draco_decoder.js` and set the decoder type to `js`. For example:
WASM decoder depending on the support of the browser. To avoid dynamically loading the decoder, e.g. to use with JS bundler like webpack, you could directly include `draco_decoder.js` and set the decoder type to `js`. For example:

Include Javascript decoder:
~~~~~ html
Expand All @@ -39,7 +39,7 @@ Include Javascript decoder:
Create DracoLoader by setting the decoder type:
~~~~~ js
// (Optional) Change decoder source directory (defaults to
// 'https://www.gstatic.com/draco/v1/decoders/'). It is recommended to always
// 'https://www.gstatic.com/draco/versioned/decoders/1.4.1/'). It is recommended to always
// pull your Draco JavaScript and WASM decoders from this URL. Users will
// benefit from having the Draco decoder in cache as more sites start using
// the static URL.
Expand Down
2 changes: 1 addition & 1 deletion javascript/example/webgl_loader_draco_advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Open a draco compressed file (.drc):</h1>
// It is recommended to always pull your Draco JavaScript and WASM decoders
// from this URL. Users will benefit from having the Draco decoder in cache
// as more sites start using the static URL.
dracoLoader.setDecoderPath('https://www.gstatic.com/draco/v1/decoders/');
dracoLoader.setDecoderPath('https://www.gstatic.com/draco/versioned/decoders/1.4.1/');

var camera, cameraTarget, scene, renderer;

Expand Down
2 changes: 1 addition & 1 deletion javascript/npm/draco3d/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
News
=======

Check out the [README](https://github.com/google/draco/blob/1.4.0/README.md)
Check out the [README](https://github.com/google/draco/blob/1.4.1/README.md)
file for news about this release.

Description
Expand Down
Binary file modified javascript/npm/draco3d/draco_decoder.wasm
Binary file not shown.
257 changes: 132 additions & 125 deletions javascript/npm/draco3d/draco_decoder_nodejs.js

Large diffs are not rendered by default.

Binary file modified javascript/npm/draco3d/draco_encoder.wasm
Binary file not shown.
207 changes: 107 additions & 100 deletions javascript/npm/draco3d/draco_encoder_nodejs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/npm/draco3d/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "draco3d",
"version": "1.4.0",
"version": "1.4.1",
"description": "Draco is a library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.",
"main": "draco3d.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion javascript/npm/draco3dgltf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Draco github glTF branch URL: https://github.com/google/draco/tree/gltf_2.0_drac
News
=======

Check out the [README](https://github.com/google/draco/blob/1.4.0/README.md)
Check out the [README](https://github.com/google/draco/blob/1.4.1/README.md)
file for news about this release.

NPM Package
Expand Down
Binary file modified javascript/npm/draco3dgltf/draco_decoder_gltf.wasm
Binary file not shown.
254 changes: 130 additions & 124 deletions javascript/npm/draco3dgltf/draco_decoder_gltf_nodejs.js

Large diffs are not rendered by default.

Binary file modified javascript/npm/draco3dgltf/draco_encoder.wasm
Binary file not shown.
207 changes: 107 additions & 100 deletions javascript/npm/draco3dgltf/draco_encoder_gltf_nodejs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/npm/draco3dgltf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "draco3dgltf",
"version": "1.4.0",
"version": "1.4.1",
"description": "This package contains a specific version of Draco 3D geometric compression library that is used for glTF Draco mesh compression extension.",
"main": "draco3dgltf.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion javascript/time_draco_decode.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// It is recommended to always pull your Draco JavaScript and WASM decoders
// from this URL. Users will benefit from having the Draco decoder in cache
// as more sites start using the static URL.
let decoderPath = 'https://www.gstatic.com/draco/v1/decoders/';
let decoderPath = 'https://www.gstatic.com/draco/versioned/decoders/1.4.1/';

// This function loads a JavaScript file and adds it to the page. "path" is
// the path to the JavaScript file. "onLoadFunc" is the function to be called
Expand Down
Binary file modified maya/draco_maya_wrapper_macos.tar.bz
Binary file not shown.
Binary file modified maya/draco_maya_wrapper_windows.tar.bz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/draco/core/draco_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace draco {

// Draco version is comprised of <major>.<minor>.<revision>.
static const char kDracoVersion[] = "1.4.0";
static const char kDracoVersion[] = "1.4.1";

const char *Version() { return kDracoVersion; }

Expand Down
1 change: 0 additions & 1 deletion src/draco/mesh/mesh_are_equivalent_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ TEST_F(MeshAreEquivalentTest, TestPermutedTwoFaces) {
ASSERT_TRUE(equiv(*mesh_0, *mesh_1));
}

//
TEST_F(MeshAreEquivalentTest, TestPermutedThreeFaces) {
const std::string file_name_0 = "three_faces_123.obj";
const std::string file_name_1 = "three_faces_312.obj";
Expand Down
Binary file modified unity/Plugin/libdracodec_unity_android.tar.bz
Binary file not shown.
Binary file modified unity/Plugin/libdracodec_unity_ios.tar.bz
Binary file not shown.
Binary file modified unity/Plugin/libdracodec_unity_macos.tar.bz
Binary file not shown.
Binary file modified unity/Plugin/libdracodec_unity_windows.tar.bz
Binary file not shown.

0 comments on commit 07532d6

Please sign in to comment.