Skip to content

multiple canvas in a component #2716

Answered by drcmda
jacky0707 asked this question in Q&A
Discussion options

You must be logged in to vote

using multiple canvas is generally a terrible idea, the browser limits the number to 8 or 10 until it closes the tab, there cannot be any data shared between them (which is why you see things work and then not, three is unmounting and disposing thing as you add/remove them), performance is bad, etc.

this is the solution: https://github.com/pmndrs/drei#view

but then again, i would implement the carousel in webgl altogether and instead annotate with html. https://codesandbox.io/s/l4klb check out the other demos for drei/scrollcontrols as well.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jacky0707
Comment options

Answer selected by jacky0707
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants