iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.11k stars 299 forks source link

Expose B3dm parser #1990

Open clementcolin opened 1 year ago

clementcolin commented 1 year ago

The 'default' B3dm parser is not exposed yet, making it impossible to use from the package. Is it possible to expose it ?

jailln commented 1 year ago

Hi @clementcolin, What is your usecase?

clementcolin commented 1 year ago

I want to be able to drag and drop a 3DTiles and visualize it using itowns, following the same mechanism as this geojson/kml example. Therefore, I need to be able to read a json and the tiles as b3dm. The json can easily be read, but I need to be able to use the B3dm parser to read the tiles.

To give you a glimpse of my usecase, I have a first working WIP result that import the parser in a very non recommended way (from the node modules) local_3dtiles

jailln commented 1 year ago

Ok, I don't see any issue in exposing it since all other parsers are already exposed. We should also expose the pntsParser at the same time. Do you want to open a PR to do it ? (you just need to add them to the list of exports in Main.js)