Skip to content

Conversation

@davreev
Copy link
Contributor

@davreev davreev commented Oct 31, 2025

Adds some helper functions for creating camera matrices from CameraViewState that are consistent with what's used in engine. Hoping this helps correct some of the inconsistencies we're seeing in #8737.

Allows creation of view and projection matrices that are consistent with what's used in engine
@vercel
Copy link

vercel bot commented Oct 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
modeling-app Ready Ready Preview Comment Nov 3, 2025 7:34pm

width,
-height,
height,
-farClip,
Copy link
Contributor

@andrewvarga andrewvarga Nov 3, 2025

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 nearClip? Oh, I just saw the comment above.

Copy link
Contributor Author

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
Copy link
Contributor

@andrewvarga andrewvarga Nov 3, 2025

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

Copy link
Contributor Author

@davreev davreev Nov 4, 2025

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).

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.

3 participants