GithubHelp home page GithubHelp logo

i3dm.export's Introduction

i3dm.export

Console tool for exporting instanced 3D Tiles (i3dm's) and tileset.json from PostGIS table. The input table contains instance information like location (4326), scale, rotation and instance attributes. The used 3D model (glTF - glb) for visualizing the instances is one of input parameters.

This tool is intended to be used in combination with 3D Tiles support in MapBox GL JS (https://github.com/Geodan/mapbox-3dtiles)

Installation

$ dotnet tool install -g i3dm.export

Or update

$ dotnet tool update -g i3dm.export

Input database table

Input database table contains following columns:

. geom - geometry with PointZ (4326) for i3dm positions

. scale - double (not supported yet)

. rotation - double with horizontal rotation angle (0 - 360 degrees) (not supported yet)

. properties (json) (not supported yet)

See testdata/create_testdata.sql for script creating sample table.

Parameters

Tool parameters:

-c: (required) connection string to PostGIS database

-t: (required) table with instance positions

-m: (required) glTF model (glb)

-g: (Default: 500, 50) Geometric errors

-e: (Default: 1000) extent per tile

-o: (Default: ./tiles) Output directory, will be created if not exists

-q: query (not supported yet)

Demo

30000 trees in instanced tiles

https://bertt.github.io/mapbox_3dtiles_samples/samples/instanced/trees/

Sample running

$ i3dm.export -c "Host=localhost;Username=postgres;Password=postgres;Database=test;Port=5432" -t public.trees -m tree.glb

Roadmap

  • support instance scale, rotation, properties, scale_non_uniform;

  • add support for uri references to external glTF's.

i3dm.export's People

Contributors

bertt avatar tieebs avatar

Watchers

 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.