ebeaufay / threedtiles

3DTiles viewer for three.js
MIT License
270 stars 32 forks source link

Refinement type ADD not supported? #20

Closed StrandedKitty closed 9 months ago

StrandedKitty commented 1 year ago

It seems like "REPLACE" refinement strategy is always used, no matter the tileset settings. I see that there's a refinement field in OGC3DTile.js, but it seems like it never gets read from?

I'm trying to render a tileset that uses "ADD" refinement strategy, and when rendering it tiles at low levels of detail get hidden when more detailed tiles get loaded, which is not the expected behavior.

ebeaufay commented 1 year ago

That's right. I was waiting for someone to request it.

Personally, My only motivation is point-cloud tiles where ADD can make more sense than REPLACE. What's your use-case?

Anyhow, I will look to add support.

StrandedKitty commented 1 year ago

We are using Cesium ion to generate 3D tiles from .kml files containing vector building data. In the resulting tileset there are multiple LODs: coarser LODs contain larger buildings, and finer LODs contain smaller buildings.

ebeaufay commented 1 year ago

I see. Ok I'll implement it, should be quite straightforward

ebeaufay commented 9 months ago

Sorry for the long time without an update. I fixed this in version 9.2.0 ADD and REPLACE will now both work