You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to convert from screen coordinate to world coordinate with wgpu, winit and cgmath. Currently, I am using the following code to calculate world coordinate. But I think this code is weird as far as I checked. I am not sure about this conversion is correct or not.
Could you give me a hint about how to convert screen coordinate to world coordinate for perspective projection and orthographic projection using cgmath, wgpu, winit ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I want to convert from screen coordinate to world coordinate with wgpu, winit and cgmath. Currently, I am using the following code to calculate world coordinate. But I think this code is weird as far as I checked. I am not sure about this conversion is correct or not.
Could you give me a hint about how to convert screen coordinate to world coordinate for perspective projection and orthographic projection using cgmath, wgpu, winit ?
detailed code
Beta Was this translation helpful? Give feedback.
All reactions