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

Add custom projection support #48

Closed

Conversation

thatcomputerguy0101
Copy link
Contributor

As an alternative to #45, this adds support for custom projections. All required projection functionality is made accessible through the Projection trait, which ProjectionType now implements. Additionally ProjectionType has a third Custom variant added to it which wraps a boxed Projection to store and delegate to user-defined projections.

I still have some cleanup I would like to do on Camera, hence this is a draft PR at the moment. Also, it may be good to move Projection and related types into a separate module.

@asny
Copy link
Owner

asny commented Dec 13, 2024

This is a bit overkill in my opinion, hope you're ok with the planar camera implementation. Otherwise, please use the Viewer trait in three-d and implement your own camera.

@asny asny closed this Dec 13, 2024
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.

2 participants