Global Photons


Global Photons Only: A photon solution can be rendered out using only photons for illumination. It won't be as accurate as a regathered render.

Global Photons with Regathering : QMC is guided by the photon solution. As soon as bounces (the QMC part of the luma server) are over 2, it will use regathering. Note there is no difference with a bounce larger than 2.

What's a Photon?
We can, for the sake of this explanation, imagine a photon as a particle (an individual ray of light) that is emitted from the light source. This particle will bounce around in the scene and make a footprint on everything it touches.

In Brazil, this particle will stick to the first surface it hits and emit another particle of the same strength but with an absorbed color into the direction that corresponds to the incidence angle in which it is traveling. A photon will never loose energy by itself but the total count of photons will spread out over a increased surface area as they bounce around the scene and therefore the complete solution will have less and less energy the further away it gets from the emission point.




   bLight options:
The vital areas in the light rollout is to make sure that the [Indirect] checkbox is checked and that both the [Generate Photons] and [Specify Photon Count] is checked. A good way to test the photons is to uncheck the [Direct] checkbox since that will only render the indirect light generated by the photon maps.


   Luma Server options:
In this we will in this tutorial only play with the [View Rate] and [Bounces], we'll leave the Shade rate to 0/0 for both the photon-only renders and the QMC regathered renders, so that we can see the light distribution without undersampling. If you would set the shade rate to a negative number you will get a photon solution that looks compressed/undersampled. You can of course undersample a regathered solution as you normally would, but we won't in the following example.


   Photon Map Server options:
The photon map server is what's the most important -- here the [Active] checkbox must be checked, if its not it will disable the photons even if the light is set to emit them. A smaller [Photons in Estimate] value will render a "splotchy" solution while the [Max Search Radius] defines a size for how close photons have to be to be counted in the sample. The [Diffuse Depth], [Reflected Depth], [Refracted Depth] sets the limits for the maximum number of bounces a photon is allowed to make, when this number is reached the photon will stop but still be counted in the solution.






Quick Walk-through
- Open the file gmap-room.max) (download: gmap-room.r4.zip





- Select the blight and check the [Global Photons] and [Specify Photon Count] check boxes, and change the default amount of photons to 50.000.
- Go to the Luma Server, enable Indirect Illumination and specify a View Rate of "0/0" to keep the "sharpest" photon solution
- Specify the Sample Rate Bounces to "1" in order to only render the photon solution
- Change [Diffuse Depth] in the Photon Map Server rollout to "2" (Depth is the maximum number of bounces per photon)
- Click [Render]





Next, increase the depth to "10" to get a more even illumination in the room. Each photon that bounces around will "leave a mark" where it hits and continue to bounce 10 times. (NOTE: Increasing the number of photons or the number of bounces will require more memory. Higher values may not work on some systems due to the memory requirement.)


As you can see the overall brightness of the scene increases when the depth of the photons are set to "10" (vs. "1"). However, it will not increase much more when using a higher depth (dependent on scene), but as visible, the color bleeding from that red chair is already apparent.

Before we move on to the regathering technique, do some quick renders with different photon count and different values for [Photons In Estimate] and [Max Search Radius] so that you can get a feel for what the different settings do visually. Settings you can try: Count 50,000; Estimate 8; Radius 150 vs Count 300,000; Estimate 8; Radius 150. For a smoother solution try something similar to: Count 50k; Estimate 150; Radius 150;

Now for the fun part. Set [Bounces] in the Luma Server to "2" to active the Regathering function, but keep the [View Rate Samples] relatively low use "4" with the Shade Rate of "0/0" in this example.



Now as you can see, the image is relatively dark, so you can remedy that by using any (or all) of these four options:
- Increase the [Diffuse Secondary Energy] ; This will increase the intensity of each bounce.
- Increase the multiplier of the light itself ; Will increase the intensity of the first bounce more than following bounces.
- Increase the [Exposure]; Remember that some background maps and colors might get too washed out by this.
- increase the photon map multiplier ; probably the least recommended since it will make things slightly overblown in the wrong places.

The most likely solution, depending on the scene, will probably be to make increases in more than one of the above areas. In the render below, I have increased the light multiplier to "2.5" and the secondary diffuse energy to "2.5" (total render time for this was about 1 min. 21 sec.). A similar render using only a QMC solution at 3 bounces took about 12 minutes to render, so already we got a speedier solution.



Now, when you're using the regathering function you need to find a balance between speed and quality - not only by the "standard" Luma Server options but within the photon map server - a too small [Photons In Estimate] value might leave the regathered solution to bleed and be splotchy while a too large of a setting, will make it inaccurate and slow.


Settings; Regathered; Shade Rate 0/0; Samples 6; Photon Estimate 8; Search Radius 500; -- Rendered in 2 min 43 sec. -- Do note the bleeding just above the windows.


Settings; Regathered; Shade Rate 0/0; Samples 6; Photon Estimate 100; Search Radius 500; -- Rendered in 9 min 30 sec. -- Bleeding has disappeared.



Other Examples
Note that in a scene you might have textures and a lighting setup that could benefit from just a slight ambient lighting to be added, this can be done fairly quickly with only photon maps. The "key" for these is to even out the illumination enough to not be too splotchy while at the same time, keeping a search radius that is small enough to not completely black out smaller objects or edges of walls. It takes some experimenting but at the moment satisfactory results can be achieved as demonstrated by this render I did a while ago of a cathedral:

 
While some "oddities" exist in the image and as you can see the search radius for the photon solution was set slightly too high eliminating illumination from the pillars - it does add some nice secondary lighting effects with fast render times -- it was rendered in about 21 minutes.

The second image was rendered in passes using a regathered solution. This image rendered in about 3 hours for all passes (Direct, Regathered, Skylight, Direct Bounce and Glow)



All trademarks and copyrights on this page are owned by their respective owners.
Everything else: ©2002  SplutterFish, LLC. All Rights Reserved. Privacy