Comments (1)
Ah. using this last version of paths without the intermediate cmake ../ worked. I tried without it before but I would get some error about not finding emscripten, so it makes sense.
For those wondering, here's what worked for me (with the latest emscripten):
- $ export EMSCRIPTEN=../../emsdk/upstream/emscripten
- $ cmake ../ -DCMAKE_TOOLCHAIN_FILE=../../emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DDRACO_WASM=ON -DDRACO_BACKWARDS_COMPATIBILITY=OFF
Can you just confirm the default flags you use to build draco3d? As mentioned above I'm only looking to change the backwards compatibility to off, but the output still differs.
For instance, should I use -DDRACO_JS_GLUE=OFF ?
What should I do to generate draco_decoder_nodejs ? Close compiler in simple or bundle mode don't seem to output the same as the draco_decoder_nodejs.js inside npm draco3d. I'm using Java 17.
Here's the current output (with js glue off) vs the npm draco3d files:
And here's the size comparison between the original npm draco3d package and the one I'm building locally:
Even in the wasm files there's a considerable file size difference.
But I must still be missing something more important, because when I replace the files and try to use this new rebuilt package, I get draco3d.createEncoderModule is not a function
I'll be happy to create a PR with all these details once I get it working.
from draco.
Related Issues (20)
- obj_encoder functions produce invalid OBJ files when using a non-english numeric locale HOT 2
- Tests fail on 32 bit systems HOT 1
- FileReaderFactory not reading files HOT 3
- WASM integration information HOT 1
- [ANN] git default branch change: master -> main HOT 1
- OSS-Fuzz issue 65877 HOT 1
- OSS-Fuzz issue 65986
- OSS-Fuzz issue 65989 HOT 1
- OSS-Fuzz issue 66259
- Compilation Error Involving StatusOr and Status Classes in Draco Library HOT 2
- Gstatic, CDNs, and per-domain caching policy HOT 1
- Download links are broken HOT 1
- Support for quads HOT 1
- C++ Documentation Improvement
- Severity Code Description The project file line does not display status Error C2440 "Initialize" : Unable to transfer from "void *" to "tinygltf: : GetFileSizeFunction draco_decoder F: \ resource \ Draco - 1.5.6 \ SRC \ Draco \ IO \ gltf_decoder.cc 489 HOT 2
- Optimizing 3D data with Draco Geometry Compression HOT 1
- Android Studio Build Error
- tex_coord data has no compression
- A problem about pointcloudsequentialencoder HOT 1
- I failed to compress the downsampled point cloud file with draco_encoder. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from draco.