-
Notifications
You must be signed in to change notification settings - Fork 68
Canvas transparency #74
Comments
That's a good question and I'm not sure. I can try to offer some possible solutions. https://stackoverflow.com/a/26790802 |
Hello! @VinAr22 I can save it normally on my Google browser, and it's also black on Firefox. |
Hi! Thanks for the quick response. The method using requestAnimationFrame does not work. renderer.onSampleRendered did the trick |
So i have another question about this topic. Maybe it is possible to save only model view on transparent background? :) |
Good question. It's not possible at the moment, but I'm in the middle of separating the different of stages of rendering (useful for spatial denoising) that will also make transparency possible as well. So we'll probably have that in a few weeks! |
Hello! It'll be cool! Please let me know when it will be possible |
Hello @jaxry! After the update, saving the canvas data does not work with renderer.onSampleRendered. :( |
Thanks for letting me know. Unfortunately I don't think we can move the callback back to where it was. Instead, would a separate callback, like |
Hi @jaxry ! Thanks for the response. I understand correctly, this function already exists? Or is it just planned? it would be cool to be able to save a screenshot. |
I have hard-coded this code:
At the end of the function drawTile()
|
Hi @nicolab28 ! Is it works with the last version of the ray tracing renderer? |
I don't think I'm using the very last one, but I don't see why it won't work? |
Hello again! Im trying to save canvas as image like this
this way works only with three WebGLRenderer. In ray traycing renderer i get black background. Whats im doing wrong?
The text was updated successfully, but these errors were encountered: