-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshots blank when taken in post-processing example #5677
Comments
This is expected since the bloom effect uses and manages its own render target and doesn't use the one passed by the screenshot component. Post processing is still experimental |
Hi, thank you, is there any way to redirect the screenshot function to the alternative render target? |
Oof, sorry, I would offer to try to help but this code is a little out of my depth: aframe/src/components/scene/screenshot.js Lines 143 to 159 in e89db7d
Is the postprocessing code's render target accessible such that this screenshot code could reference it? aframe/examples/showcase/post-processing/bloom.js Lines 50 to 54 in 6a497bf
I don't quite know enough about the architecture to know but perhaps screenshot component could have something like |
The problem isn't so much that the It is possible to instruct the Either way, an 'equirectangular' screenshot is likely going to have noticeable seams when rendered with bloom. A cleaner way would be to render the equirectangular as normal and then apply the bloom. That's another aspect of this issue, the post-processing now overwrites the The simplest approach might be to ensure that only the main call to |
Post-processing support is still experimental. We don’t have an official API hence I would not modify any of the built-in components to accommodate just yet. We could though add a “effects-screenshot” component in the example if someone wants to put the time. thoughts? |
Indeed, we shouldn't be modifying built-in components for this. There should be a clean way to replace the main render call of the scene (scene.js#L667), so that this hack in bloom.js is no longer needed: aframe/examples/showcase/post-processing/bloom.js Lines 89 to 97 in 6a497bf
Currently all render-to-texture logic is broken when using post-processing. For getting screenshots with post-processing effects enabled, a dedicated |
First, AMAZING work especially on postprocessing in 1.7.0 - huge fan and so grateful.
Screenshots come out blank when I use this code, and I was able to confirm on the postprocessing example: https://aframe.io/aframe/examples/showcase/post-processing/ that this happens there too.
(using code from https://aframe.io/docs/1.7.0/components/screenshot.html#methods)
The following image results (and same for perspective screenshots):
Is there an order of render change or something to do with postprocessing? The other showcase examples (in the 1.7.0 blog post) do not have this issue; they render normally.
Thank you!!
The text was updated successfully, but these errors were encountered: