Skip to content

Should I prevent the canvas to be re rendered or persist the camera position #1651

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

You must be logged in to vote

i dont understand the question. what does re-rendering the canvas mean? why is something lost? in react components don't unmount if they don't need to, nothing will be lost unless you unmount components. im not sure, but do you unmount the entire canvas on a geometry change? changing geometry and orbit controls should have nothing to do with one another.

you can use cameras and controls from the drei lib btw, i see you have lots of code just for these basics.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by roievil
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants