Skip to content
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

orthographic camera projection #106

Open
aphex- opened this issue Apr 26, 2022 · 0 comments
Open

orthographic camera projection #106

aphex- opened this issue Apr 26, 2022 · 0 comments

Comments

@aphex-
Copy link

aphex- commented Apr 26, 2022

Hello.
I have a virtual orthographic camera that has the following rotation:

rotation = {  x: 55.3,  y: 0,  z: 45 } // degrees

I would like to project screen coordinated to camera space coordinates. ``

const cameraPoint = camera.project(screenPoint);
const screenPoint2 = camera.inverse(cameraPoint);
// expecting screenPoint == screenPoint2

How can I create such a camera and how do I project my coordinates back and forth? Thank you! :)

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

No branches or pull requests

1 participant