loaders.gl icon indicating copy to clipboard operation
loaders.gl copied to clipboard

Error loading mesh on tile-3d

Open quannh997 opened this issue 4 years ago • 8 comments

Hi!

I have tried load Tile3DLayer with both type loader I3SLoader, Tiles3dLoader for my region but they have same issue is tile have crack like earthquake and quality mesh is so bad. I think maybe reason is my server but when i tried data i3s on arcgis server, arcgis scene is showing data is good, but i loaded this scene on loader code example the issues still happend. ArcGis Scene: image In code example image

The data i use here: "https://tiles.arcgis.com/tiles/6isf2oKhmeNEAK04/arcgis/rest/services/TextureMesh_v17/SceneServer/layers/0"

Can explain for me how and why i can handle that thing?

quannh997 avatar Dec 15 '21 13:12 quannh997

Looks like precision issue we fixed recently. You need do use LNGLAT_OFFSETS coordinate system like here in example: https://github.com/visgl/loaders.gl/blob/5bf1db80e532cde86b92dcbaee50696632e94d7b/examples/website/i3s/app.js#L241

belom88 avatar Dec 15 '21 17:12 belom88

Looks like precision issue we fixed recently. You need do use LNGLAT_OFFSETS coordinate system like here in example:

https://github.com/visgl/loaders.gl/blob/5bf1db80e532cde86b92dcbaee50696632e94d7b/examples/website/i3s/app.js#L241

it not work for me, the problem is when i use LNGLAT_OFFSETS, tiles doesn't shown up. But coordinateSystem is METER_OFFSETS or IDENTITY, i3s show normaly but the errors still theres, nothing change.

quannh97 avatar Dec 30 '21 14:12 quannh97

I need to check. I need token for your layer example

belom88 avatar Jan 10 '22 12:01 belom88

I need to check. I need token for your layer example

Solve the problem when upgrade @loaders.gl to alpha 4.5 and deck.gl to 8.7.0-alpha 11. I have another question, I try to test data on type i3s and b3dm, the tile-3d-loader can clear tile loaded in memory, so memory used is between 1-2 gb max. but with i3s-loader, tile loaded in memory is stack-up, can't clear tile in out of the current view. Memory ascending to 3 gb. The problem is I want to use i3s type cause it convenient to process, the data is on local server, so if you want the data to test, I can provide. How can I clear the data saved in memory and keep only tile loading in view for the performance. Did it involve with compareDistanceToCamera and updateTileVisibility in Tileset3DTraverser.

Thanks! image

quannh97 avatar Jan 19 '22 16:01 quannh97

loaders.gl 4.0.0-alpha is a breaking, currently very unstable branch that lacks a number of fixes from 3.1 track. I strongly recommend against using it.

ibgreen avatar Jan 19 '22 18:01 ibgreen

loaders.gl 4.0.0-alpha is a breaking, currently very unstable branch that lacks a number of fixes from 3.1 track. I strongly recommend against using it.

Thanks for advice, i change to 3.1.6 stable, but still have another question for memory, any way to clear tile cache for i3sloader? For now or feature update.

quannh997 avatar Jan 20 '22 09:01 quannh997

We need your data set to check it there are memory leaks

belom88 avatar Feb 10 '22 11:02 belom88

We need your data set to check it there are memory leaks

The data link is : https://drive.google.com/drive/folders/1ycERC-UUkBM9wSVLKK4jwiXv21_bZRGJ

I test with i3s 1.7 loaders.gl 3.1.7 with base map on harp.gl

quannh97 avatar Feb 14 '22 02:02 quannh97