How can I use r3f with an existing WebGLRenderingContext? (i.e. mapbox-gl) #2732
Unanswered
AlexandrosGounis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we want to use mapbox-gl with
r3f
. This could in theory be done like so:However, the issue with this is that
a WebGL context could not be created. Reason: Canvas has an existing context of a different type
Even if we get this to work, we then have to deal with a shared context being rendered on demand by
mapbox-gl
. How should we approach this kind of (shared context) issue?Beta Was this translation helpful? Give feedback.
All reactions