- 
                Notifications
    
You must be signed in to change notification settings  - Fork 90
 
Add camera matrix helpers #8755
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
base: main
Are you sure you want to change the base?
Conversation
Allows creation of view and projection matrices that are consistent with what's used in engine
| 
           The latest updates on your projects. Learn more about Vercel for GitHub. 
  | 
    
| width, | ||
| -height, | ||
| height, | ||
| -farClip, | 
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.
Shouldn't this be using   Oh, I just saw the comment above.nearClip?
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.
Yeah, it's a sneaky trick to allow "infinite" zoom in ortho mode.
| aspectRatio: number, | ||
| nearClip: number, | ||
| farClip: number, | ||
| coordSystem: CoordinateSystem = WebGLCoordinateSystem | 
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.
Will we be able get the coordSystem from the engine? Or for now we can just assume WebGL
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.
That should be determined by the active renderer on the FE (assumed WebGL).
Adds some helper functions for creating camera matrices from
CameraViewStatethat are consistent with what's used in engine. Hoping this helps correct some of the inconsistencies we're seeing in #8737.