-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add option for orthographic projections to sim depth cameras #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer enum classes to straight up enums.
Additionally, setting up explicit values to enum fields isn't useful if those values don't have a specific meaning.
Co-authored-by: Leo <35804463+Yuki-cpp@users.noreply.github.com>
@Yuki-cpp , makes sense, thanks for the review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice feature!
Can we extend the test (https://github.com/ascentai/gl_depth_sim/blob/master/gl_depth_sim/test/utest.cpp) in some way to cover this? I have no idea if those values are correct.
Also, it seems CI is not run on PRs?
Summary
When checking whether two objects overlap it's useful to be able to render their depth map using an orthographic projection. This PR adds that functionality to
gl_depth_sim
!To do that, I just added an enum for whether the camera was a perspective or othrographic projection type and modified the projection matrix accordingly