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

TerrainLoader skirting issue

Open ibgreen opened this issue 3 years ago • 6 comments

There are persistent reports of missing skirts in the geometry generated by TerrainLoader.

Per @igorDykhta investigations, changing face culling addresses these which makes it probably that it is a matter of winding order on some of the 4 skirts.

@chrisgervang @kylebarron @belom88 @dryabinin-actionengine

ibgreen avatar Dec 15 '21 17:12 ibgreen

Note that there is a TerrainLoader example in loaders.gl which should make work on this issue quicker.

ibgreen avatar Dec 15 '21 17:12 ibgreen

Winding is not the issue. Nothing changes when I change winding. But I've found mistake in making edges for skirting. It is possible solution. I've created #2045

belom88 avatar Dec 27 '21 18:12 belom88

We need to enable culling in the TerrainLoader example. @igorDykhta to confirm.

ibgreen avatar Jan 10 '22 16:01 ibgreen

@belom88 do you have a screenshot or test program I can run to see before/after #2045?

chrisgervang avatar Jan 14 '22 18:01 chrisgervang

Maybe try https://github.com/visgl/loaders.gl/tree/master/examples/experimental/terrain?

kylebarron avatar Jan 14 '22 19:01 kylebarron

I checked https://github.com/visgl/loaders.gl/tree/master/examples/experimental/terrain with viewState:

const INITIAL_VIEW_STATE = {
  latitude: 46.920996601550016,
  longitude: -122.47243068245264,
  zoom: 17.054,
  bearing: -42.66233766233766,
  pitch: 70.55952845590556,
  maxPitch: 89
};

Before: image After: image

belom88 avatar Jan 15 '22 06:01 belom88

Closing due to inactivity

ibgreen avatar Oct 24 '23 10:10 ibgreen