Screenshot | Ortho camera Auto-Scaling on screenshot using render targets
I 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()andtoPerspectivefunction, 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)
Hey. That sounds to me. Do you want to send a PR?
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).
Hi @KevinBLT - Do still want to do it? Thanks
Hi @thomlucc, yeah I have a lot of internal changes to some aspects of Babylon.
Sorry I haven't been pushing them. I hope there will be time over easter-weekend, so thanks for reminding!
Did you hit this situation as well?
oh yes! It's great you are still interested in submitting a PR. Thanks a lot.
Closing due to inactivity. @KevinBLT - feel free to re-open when you have time to work on it. Thanks a lot!