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

Three d render #114

Merged
merged 6 commits into from Sep 20, 2013
Merged

Three d render #114

merged 6 commits into from Sep 20, 2013

Conversation

bergey
Copy link
Member

@bergey bergey commented Sep 18, 2013

Together with code I'm about to push to diagrams-povray, the commits below allow rendering 3D diagrams in POVRay. I think the types would work for other backends which render, such as OpenGL.

I've only implemented a couple of the many sorts of CameraLens and light source which POVRay supports. I'm happy to add more if someone wants to make fisheye projections in Diagrams, or something.

I have not implemented any support for multiple cameras, as I talked about in email to diagrams-discuss.

All feedback is welcome.

I learned way more about GHC extensions today than I meant to....

@bergey
Copy link
Member Author

bergey commented Sep 18, 2013

Thinking about this more, the instances I defined on Spherical don't make much sense. Directions don't actually form an additive group, do they?

@byorgey
Copy link
Member

byorgey commented Sep 19, 2013

Good point. Angle types form additive groups but I wouldn't expect Direction types to do so.

@byorgey
Copy link
Member

byorgey commented Sep 20, 2013

Looks good, thanks!

byorgey added a commit that referenced this pull request Sep 20, 2013
@byorgey byorgey merged commit 6d7be88 into master Sep 20, 2013
@bergey bergey deleted the threeD-render branch September 20, 2013 20:28
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.

None yet

2 participants