3d-tiles-validator
3d-tiles-validator copied to clipboard
glTF 2.0 Draco compression
Is it possible to apply draco compression to glTF 2.0 b3dms?
When using the draco branch, I just get "Binary glTF version is not 1". With the 2.0-tools branch, this error occurs:
$ node ./bin/3d-tiles-tools.js optimizeB3dm -i "[...].b3dm" -o ./output/optimized.b3dm -f --options -q [...]\3d-tiles-tools\tools\lib\isJson.js:34 }); ^ SyntaxError: Unexpected token )
And after deleting the faulty line 34, the output is also "Binary glTF version is not 1". Am I doing something wrong?
I think the problem is the version of gltf-pipeline in npm only works for glTF 1.0 models. We are getting very close to merging the gltf-pipeline 2.0 branch into master, after which npm will be updated and 2.0-tools
can get finalized and merged.
I did push a fix for that first error though - it was some stray temporary code.
If you need a workaround in the meantime, you might want to use b3dmToGlb
to extract the glb, run it through gltf-pipeline with -d
(Draco), then run glbToB3dm
.
All right, then I'll just wait, since I would lose Metadata with the workaround. Thanks for your reply!
Ah yeah, that's true. I'll update this post once 2.0-tools
is merged.
@lilleyse Will I be able to use version 2.0 to compress point cloud in 3D tiles format (*.pnts) using this tool?
@cherukumilli That would need to be a new stage not part of the 2.0-tools
branch. We don't have plans for it at the moment.
@lilleyse - Can you please share how the Cesium team use draco encoding of their 3D tiles (both mesh (.b3dm files) and point clouds (.pnts files)?
I am trying to compress our 3D tiles (both .b3dm and .pnts files). Any help would be greatly appreciated.
@cherukumilli Do you find your way to use draco encoding 3D tiles(.b3dm files) ?
I am trying to encode my .b3dm files, but not find the right way yet.
Hi, I'm also interested by this feature; do you plan to implement it in the near future?