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

I found an easy way to invert global Y coordinate from -Y to +Y #54

Open
vertoker opened this issue Nov 24, 2024 · 0 comments
Open

I found an easy way to invert global Y coordinate from -Y to +Y #54

vertoker opened this issue Nov 24, 2024 · 0 comments

Comments

@vertoker
Copy link

vertoker commented Nov 24, 2024

I don't like that source perspective matrix is for coordinate space where Y coordinate is inverted
I know that Vulkan Canonical View Volume is the same, but most of my models are use +Y by default and most engines (Unity) use +Y too

Source perspective matrix looks like this
image

After some logical research, I just add minus
image

And most of my models use VK_FRONT_FACE_CLOCKWISE, change it if you needed
Also update character script, just use up as {0.0f, 1.0f, 0.0f}
Also update models and camera positions and rotations

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