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
Light paths recording annotations and tweaks #2629
Conversation
… path display colors, take into account secondary emitter radiance in light paths
Looks good,
since they got a lot of overlapping code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! You seem to already have a good understand of how light path recording works.
Ready for review again :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -385,7 +385,7 @@ void LightPathsWidget::render_light_path(const size_t light_path_index) const | |||
light_path_recorder.get_light_path_vertex(i, v1); | |||
|
|||
auto radiance = Color3f::from_array(v1.m_radiance); | |||
radiance /= sum_value(radiance); | |||
radiance /= radiance + Color3f(1.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Color3f(1.0f)
@@ -269,9 +269,18 @@ void LightPathStream::create_path_from_hit_emitter(const size_t emitter_event_in | |||
|
|||
// Update current radiance. | |||
const auto& throughput = event_data.m_path_throughput; | |||
// Multiply by previous throughput to attenuate by the next hit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
End your comments with a dot.
x/(1+x)
) for displaying the radiance as color when drawing. This gives much more helpful color results than previously when displaying light paths, since it gives a sense of intensity as well as just hue:old:
new: