NASA-AMMOS / 3DTilesRendererJS

Renderer for 3D Tiles in Javascript using three.js
https://nasa-ammos.github.io/3DTilesRendererJS/example/bundle/mars.html
Apache License 2.0
1.54k stars 276 forks source link

[Question] generate 3tiles from gltf or BufferGeometry #76

Closed arpu closed 3 years ago

arpu commented 4 years ago

Hello

what are the best options today to generate this 3dtiles from a gltf/glb model file or pur threejs BufferGeometry?

gkjohnson commented 4 years ago

Hey @arpu!

Internally we use a custom pipeline with some more proprietary processes for the types of data we work with so I'm less familiar with the typical way to generate tilesets. I did come across this repo which looks like a now-defunct set of tools from Cesium for helping to generate 3d tiles. I haven't used it myself but it may be a good place to start.

From this page in the Cesium docs it looks like they've moved to a service model for using the Cesium generation pipeline. There may be other open source projects I'm unaware of, though.

arpu commented 4 years ago

Hey @gkjohnson,

thx a lot for the Information will try the Cesium 3d-tiles-validator and report back

arpu commented 4 years ago

to you think today the 3dtiles is the best format/option for big landscapes?

gkjohnson commented 4 years ago

thx a lot for the Information will try the Cesium 3d-tiles-validator and report back

That would be great -- if it looks promising I wouldn't mind including some information on how to generate tiles in this repo.

to you think today the 3dtiles is the best format/option for big landscapes?

Many games use something like a quad tree to do frustum culling or level of detail on tiles of terrain but I'm not aware of another standardized format used to represent this information. 3d Tiles is a bit more flexible than a quad tree because it supports arbitrary bounds and placement of children so you might be able to write something more specific and a bit faster depending on your data and use case. That would involve writing your own quad tree and your own format, though (unless there's another open source project that supports that already).

gkjohnson commented 4 years ago

@arpu from a discussion in #77 it looks like the pg2b3dm can convert PostGIS data to 3d tiles. It's different than the type of data it sounds like you want to convert but maybe something there is helpful.

gkjohnson commented 3 years ago

It looks like there are a number of converters for different file formats listed in the 3dtiles and 3d-tiles tags on Github. Keep in mind I haven't tested or vetted them, though.