vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.99k stars 298 forks source link

Ripple rings - thicker #72

Open michalsiminski98 opened 2 years ago

michalsiminski98 commented 2 years ago

Hi,

is there any way to make the rings in "Ripple Rings" thicker?

I tried to do it somehow via: globe.renderer().state.setLineWidth(300)); globe.renderer().setDrawingBufferSize(10, 10, 10); But it didn't work.🥲

vasturiano commented 2 years ago

@michalsiminski98 thanks for reaching out.

Unfortunately that feature is not currently supported. Line widths are typically a difficult thing to do in WebGL, as it's already mentioned in the Three linewidth docs:

Due to limitations of the OpenGL Core Profile with the WebGL renderer on most platforms linewidth will always be 1 regardless of the set value.

Normally the work-around is to use a "Fat line" geometry, which simulates a thicker line using a triangle mesh. Though it has performance implications compared to the standard line. But it's a good feature request nonetheless, we may implement it in the future if there's enough demand for it.

ian-whitestone commented 2 years ago

+1 on this request, was trying to do the same thing in order to make the rings more visible.

Granahir commented 1 year ago

+1 here as well

BangNguyen1992 commented 1 year ago

+1 on this request, I also want to make the line more visible.