PBRT Volume Integration Issue

Community discussion for topics unrelated to the project.

Moderator: coordinators

PBRT Volume Integration Issue

Postby Kira Vakaan » Tue May 01, 2012 2:35 am

Hi all,

So I was digging through PBRT's code (starting with SamplerRenderer and PathIntegrator) and realized that the volume integrator is only evaluated once: during the first leg of a ray's journey. I figured, that can't be right.. that would make fog invisible in a mirror... To investigate, I wrote up a little .pbrt file, and sure enough, no fog in reflections! This seems like a pretty big issue to me.

The scene I created has a cube of fog in front of the camera. Inside the cube is a sphere and a spot light. Right behind the camera is a mirror. The two images were generated by flipping the direction the camera is facing:
pbrt.png


After discovering this issue with PBRT, I got curious about LuxRender, and so I made the few modifications necessary to the scene file to load it into LuxRender. LuxRender handles both cases equally, as it turns out. Good job LuxRender devs! :)

I've attached both the .pbrt and .lxs files for the curious. Let me know if the .lxs isn't the best representation of the .pbrt for comparison. What should I do with this info now?
Attachments
test.zip
(1.57 KiB) Downloaded 12 times
User avatar
Kira Vakaan
 
Posts: 161
Joined: Mon Nov 08, 2010 9:55 pm
Location: MI, USA

Return to Offtopic

Who is online

Users browsing this forum: No registered users and 2 guests