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

Lights & Camera #1

Merged
merged 12 commits into from
Sep 20, 2013
Merged

Lights & Camera #1

merged 12 commits into from
Sep 20, 2013

Conversation

bergey
Copy link
Member

@bergey bergey commented Sep 18, 2013

This branch introduces Renderable instances for types added in diagrams/diagrams-lib#114. It should not be merged until that is.

The code below uses the FillColor attribute to set the diffuse lighting color. Should we instead use a different attribute (SurfaceColor? DiffuseColor?), since the color in the rendered image is a combination of the surface color and the lighting?

I'm particularly interested in how much control people want over color / surface properties. The currently-possible images have no highlights, and there is no ambient light, so shadows are too dark. These should be easy to add later, but I'm not sure what properties are common, and which are idiosyncratic to POVRay.

(r, g, b, _) = colorToSRGBA c

-- Use the FillColor attribute for the diffuse pigment of the object. Diagrams
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, repurposing FillColor for this seems a bit silly to me. We should probably have a module Diagrams.ThreeD.Attributes with 3D-specific attributes. As you say though, we'll need to figure out what attributes make sense to make available for all 3D backends, and which attributes are povray specific.

byorgey added a commit that referenced this pull request Sep 20, 2013
@byorgey byorgey merged commit c094fe7 into master Sep 20, 2013
@bergey bergey deleted the lights-camera branch September 20, 2013 23:54
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