Code Monkey home page Code Monkey logo

Comments (2)

bertt avatar bertt commented on May 29, 2024

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.

bertt avatar bertt commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.