Skip to content

Can you download the canvas of react Three Fiber as image ? #2054

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

You must be logged in to vote

sure. here's a running example (open leva, click "screenshot"): https://codesandbox.io/s/basic-demo-forked-rnuve

the threejs canvas needs a prop for that to work:

<Canvas gl={{ preserveDrawingBuffer: true }} 

this is not something for us to document i guess, it's a regular webgl/threejs thing. like a thousand other things that are very specific and usecase driven.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@JoyDhar32
Comment options

@ThisIsMonta
Comment options

Answer selected by CodyJasonBennett
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@drcmda
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
5 participants
Converted from issue

This discussion was converted from issue #2053 on February 06, 2022 12:48.