Skip to content

Screen ray rewrite#52

Open
thatcomputerguy0101 wants to merge 3 commits intoasny:mainfrom
thatcomputerguy0101:screen_ray_rewrite
Open

Screen ray rewrite#52
thatcomputerguy0101 wants to merge 3 commits intoasny:mainfrom
thatcomputerguy0101:screen_ray_rewrite

Conversation

@thatcomputerguy0101
Copy link
Contributor

The way screen rays was originally calculated for planar cameras was incorrect due to the placement of the fixed plane at the view target instead of at the camera position. Calculating the correct position/view_direction for the planar camera from the projection matrix was getting complex, so I instead rewrote the logic to directly calculate the projection's effect on the view direction and position, later modified by the current view transform. I tested all three projections with the picking example to verify that the new math works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant