All Collections
Troubleshooting
Collect Screenshots on WebGL or 3d Canvas
Collect Screenshots on WebGL or 3d Canvas
Jon avatar
Written by Jon
Updated over a week ago

If you're experiencing issues collecting screenshots of your 3d images that use WebGL, this is likely because of a setting within WebGL that needs to be enabled.


Taking screenshots of a WebGL canvas needs the' preserveDrawingBuffer' attribute set to true which can be done on your end.

Here are some helpful resources that show how the 'preserveDrawingBuffer' works, so you or your developers can look at it.

https://bugs.chromium.org/p/chromium/issues/detail?id=82086

https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes

https://stackoverflow.com/questions/31710748/todataurl-of-webgl-canvas-returning-transparent-image


πŸ” Who is this article for?

Plans

Solo βœ”

Startup βœ”

Company βœ”

Premium βœ”

User type

Client

Collaborator

Admin βœ”

Owner βœ”


πŸ“™ Helpful articles

Did this answer your question?