question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Screenshot | Ortho camera Auto-Scaling on screenshot using render targets

See original GitHub issue

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() and toPerspective 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KevinBLTcommented, Dec 14, 2020

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).

0reactions
thomlucccommented, Oct 27, 2022

Closing due to inactivity. @KevinBLT - feel free to re-open when you have time to work on it. Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Screenshot Using Render Target and GUI - Questions
Hi, I am trying to render GUI in screenshot, with no avail. See this PG https://www.babylonjs-playground.com/#3GPEIL#29 last two parameters ...
Read more >
NIS-Elements AR (Advanced Research) User's Guide (Ver.4.50)
This manual explains installation and use of the NIS-Elements Advanced Research. ... The main goal of the Device Updates setup is to add...
Read more >
Hacking NVIDIA Ansel to Slash VR Rendering Times
We had the render target for the virtual surround camera function as a live ... Ansel takes impressive in-game screenshots in a variety...
Read more >
Untitled
Poisonous bites hawaii, Engg application form, #Ortho orthene fire ant killer ... 76891 erlenbach bei dahn, Cc camera dealers in mysore, Nordholm neckar....
Read more >
UIRoot - Tasharen Entertainment
In doing so, the camera that draws the UI can remain at Orthographic Size of 1. If you don't need the auto-scaling functionality...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found