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
{{ message }}
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.
Got this to partially work. The problem was caused due to the way rays should be created in different projections: when in perspective projection, the origin of a ray is fixed as the camera position, while it's direction is defined by the vector (origin - unprojected mouse position); when in orthogonal (or isometric in our case) projection, the origin is defined by the unprojected mouse position, while the direction is the difference between the origin and the "end", which is the mouse position, (x,y), unprojected on the far side of the depth buffer, in this case, -1. Thus, for an isometric projection, the ray is defined as (unproject(x,y,0), unproject(x,y,-1) - unproject(x,y,0)).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: