Giter VIP home page Giter VIP logo

gltf-to-3dtiles's Introduction

GLTF-Optimizer

A command line tool to convert gltf(glb) file to 3d tiles format.

Usage example

GLTF_OPTIMIZER.exe -i "../data/test.gltf" -o "../data/output"

Demo

Here is the source gltf model and the generated result. https://pan.baidu.com/s/10VI1h9dORIFFDF8CVSRdnQ code: pw6l

Build

git clone -b devel https://github.com/cnr-isti-vclab/vcglib.git

Set environment VCG_LIB to root of vcglib.

git clone https://github.com/nxddsnc/GLTF-Optimizer.git

Build it with vs2015 community.

Overview

There are serveral step for the conversion.

Step1. Import gltf file use tinygltf.

Step2. Create hierachical binary tree and insert nodes to boxes according to it's bounding box center.

Step3. Generate tileset structure according to the result of step2.

Step4. Do decimation on each level of the tree with the powerful mesh processing library vcglib.

Step5. Output the tileset.json file and corresponding gltf/glb(contains batchId) files.

After conversion, we can use 3dtiles-tools to convert glb to b3dm so that it can be viewed in cesium.js. Or use the command called "glbsToB3dms" in my fork (https://github.com/nxddsnc/3d-tiles-tools).

Note

It is just a test project yet and with no textures supported yet. And currently I am working on issue#8.
If you have any questions, please contact me([email protected]).

gltf-to-3dtiles's People

Contributors

nxddsnc avatar chenzaichun avatar

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.