Screenshot | Ortho camera Auto-Scaling on screenshot using render targets
See original GitHub issueI jumped into a small inconvenience.
I have to created measured views and make pictures, but the images were distorted.
When creating a screenshot using render targets and active ortho camera the resulting image is distorted when the render size <> actual canvas size.
Look attached playground.
-
I suggest to set the ortho camera to the aspect of the screenshot before doing it, afterwards apply the previous one.
-
I also suggest a convenience method fo
toOrtho()
andtoPerspective
function, that will set it (like I do it this function here)
If you want you can assign this ticket to me, I will take a look, if I can integrate it in the core.
Playground with fix: https://playground.babylonjs.com/#UKNERM#278
(will need Pop ups to not being blocked, see description and commented line)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Yes. I just don’t have time line here. I will do it in some free time the coming days and do it together with the other issue (with the shadow generator).
Closing due to inactivity. @KevinBLT - feel free to re-open when you have time to work on it. Thanks a lot!