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

Feature request: 3D projection #13

Open
marceline-cramer opened this issue Aug 27, 2023 · 2 comments
Open

Feature request: 3D projection #13

marceline-cramer opened this issue Aug 27, 2023 · 2 comments

Comments

@marceline-cramer
Copy link

marceline-cramer commented Aug 27, 2023

I'd like to use vger in 3D (and eventually VR) for anti-aliased, GPU-accelerated Bezier rendering. All of the drawing operations would be projected onto a flat 2D plane observed through a 3D perspective camera. Is this possible to implement in vger, and if so, how can I help out?

@wtholliday
Copy link
Contributor

Hi! Thanks for your interest in vger.

Fortunately, vger already uses 4x4 transformation matrices in the shader:

xforms: array<mat4x4<f32>>,

Will need to update the transforms to be 3D:

pub type LocalToWorld = Transform2D<f32, LocalSpace, WorldSpace>;

And of course add 3d versions of the transform functions on the vger struct.

wtholliday added a commit that referenced this issue Aug 28, 2023
wtholliday added a commit that referenced this issue Aug 28, 2023
wtholliday added a commit that referenced this issue Aug 28, 2023
@marceline-cramer
Copy link
Author

Wow, that's really great to hear! Vger is a really amazing library and I can't wait to start using it :)

wtholliday added a commit that referenced this issue Sep 10, 2023
wtholliday added a commit that referenced this issue Sep 10, 2023
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