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

Transformation from Screen Space to World Space? #663

Open
valdessa opened this issue Sep 26, 2023 · 1 comment
Open

Transformation from Screen Space to World Space? #663

valdessa opened this issue Sep 26, 2023 · 1 comment

Comments

@valdessa
Copy link

Hello :D

I'm developing my graphics engine in OpenGL... and now I'm stuck because I want to make a 3D vector graphics game. But I don't know how to make the lines be painted in world space instead of screen space.

How could I apply the projection and view matrices from the camera to the drawing of the lines in order to draw them in world space?

Here I have a star that I have made for now. Thanks in advance :)

Star

@mulle-nat
Copy link
Contributor

If I were to make the transition from 2D to 3D, I would try not to use nanovg, but use OpenGL directly, which is basically made for that. If I needed nanovg edge antialiasing and could not use OpenGL AntiAliasing, I would try to rip that out from nanovg and expand it for 3D in OpenGL. Just my thoughts on this.

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

2 participants