Comments (2)
One method to compress b3dm with Draco is a combination of existing npm tools 3d-tiles-tools and gltf-pipeline.
Procedure:
-
Unpack b3dm to glb
-
Compress glb with Draco
-
Pack glb to b3dm
In code:
$ 3d-tiles-tools b3dmToGlb -i 1.b3dm -o 1.glb
$ gltf-pipeline -i 1.glb -o 1.glb -d -b
$ 3d-tiles-tools GlbToB3dm -i 1_draco.glb -o 1_draco.b3dm
In the library used for creating glTF's (SharpGLTF) there is no support (yet) for Draco compression.
Results first test with 3d-tiles-tools / gltf-pipeline:
-
Compression is a factor of 6 to 10 (for example 1.b3dm goes from 800KB to 81 KB);
-
Compression takes some time: a few seconds per tile;
-
Test in Cesium 1.57: Draco compressed tiles are working, impression its drawing faster, fps in both cases roughly the same (15 - 30 fps).
Concern:
- Extra information in b3dm (like batch info) might get lost using this method.
Todo:
- Write script/docker tool to compress all b3dm's in current directory
from pg2b3dm.
Experimental 3D Tile Draco compressor is created at https://github.com/bertt/compressor5000 . It uses gltf-pipeline to create Draco glTF's.
from pg2b3dm.
Related Issues (20)
- Define the color for geometries visualization HOT 7
- Why did the installation report an error HOT 8
- Bug report: 0_0_0.subtree failed to load in CesiumJS HOT 4
- Converting ArcGIS multipatch in PostGIS to b3dm HOT 1
- Geometry seems off (3D BAG) HOT 9
- tileset.json not generated, only b3dm HOT 2
- The extension '3DTILES_content_gltf' was found, but not declared in 'extensionsUsed' HOT 4
- 'TimeSpanHumanize_MultipleMilliseconds' was not found HOT 2
- Npgsql error on some inputs tables HOT 3
- 0 Tiles Created HOT 14
- 3D tiles render above terrain and under grid HOT 1
- Add support for geometries with interior rings HOT 1
- Add support for PolygonZ geometries HOT 1
- Nullable object must have a value HOT 11
- 2.x.x: deck.gl does not draw tiles HOT 11
- 2.2.0 error while exporting tiles HOT 5
- Cannot Transform WKT MultiPolygonZ HOT 3
- installation failure HOT 2
- Unhandled exception error... HOT 3
- Short linestrings not rendered? HOT 6
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 pg2b3dm.