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.

How to render results with weak perspective camera

See original GitHub issue

Thanks a lot for this great and easy-to-use repo!

I’m trying to render the results using the weak perspective camera model. My question relates to these issues:

However none of these issues gave me the answer I was looking for. I am using the weak perspective camera parameters stored in cam and as suggested in this issue I multiply them with 2. I also pad the image to be square as mentioned here. I then convert the weak perspective camera model to a projection matrix the same way I used to do it for VIBE, which worked well there. However, for the ROMP output I’m still getting a slight misalignment, as you can see in the following screenshot. The light model is what I am rendering and the blue model in the background is the visualization output from ROMP. I think it’s because I should somehow account for cam_trans but I don’t know how exactly. Can you help me with this?

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kaufManucommented, Sep 20, 2022

@Arthur151 Amazing! Please let me know (probably best via Github issues) if you encounter any problems or if you have feature requests that would make things easier for you!

1reaction
Arthur151commented, Sep 20, 2022

Thanks! @kaufManu I am really impressed by the latest (plentied of) new features, especially the visualization with camera and image demo. I am re-formulating the whole visualization pipeline with your AITViewer. Hope I can update this part in the next work. Best regards, Yu

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using perspective camera with OrthogonalTiledMapRenderer
Using perspective camera with OrthogonalTiledMapRenderer · 1. try batch. · that did solve it! But it still only renders 2 tiles, any idea...
Read more >
how to render in user perspective and not camera perspective
You can easily switch between Perspective and Orthographic rendering, not just the viewport as other answers may suggest. Select the camera you ...
Read more >
The Perspective and Orthographic Projection Matrix
All we need to do to get a basic perspective projection matrix working, is to account for the angle of view or field-of-view...
Read more >
Poor performance with an image effects on a camera with ...
Camera2: perspective, depth: 1, clear flag: Depth Only, renders objects Y. I end up with background and objects X rendered first, and then ......
Read more >
A Geometric Interpretation of Weak-Perspective Motion
The weak-perspective model is appropriate when the observed object is far from the camera relative to its size. In this situation the perspective...
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