webviz-subsurface-components icon indicating copy to clipboard operation
webviz-subsurface-components copied to clipboard

Map component exhausts GL contexts

Open hkfb opened this issue 3 years ago • 2 comments

The Map component is not able to share GL contexts with other components.

Should expose the GL context used and be able to share it with other components.

Cf. https://deck.gl/docs/api-reference/core/deck#gl

@t0oF @t0oF-azpn @vardit123y

hkfb avatar Nov 22 '22 11:11 hkfb

Deck.gl discussion: https://github.com/visgl/deck.gl/discussions/7557

hkfb avatar Jan 05 '23 07:01 hkfb

Some more ideas:

  • Recycling the 3D canvas when the mouse cursor leaves it and replacing it with a snapshot
  • Using scissor test for each viewport and overlaying the canvas fixed on top of the document. I believe this is an example: https://threejs.org/examples/webgl_multiple_elements.html

hkfb avatar Jan 11 '23 13:01 hkfb