| Controlling Color Bleeding due to Bouncing Light
using GI, with and without Global Photons. by André Richard |
| GI without photons: |
|
Lets start off with a rather simple scene, so that we can see the bleeding easily. Here we have a colored object, on an infinite ground plane (you can get the scene here (19KB)). We are using simple GI for this (secondary illumination turned on for the point light). In this example, we're using 8 bounces to increase the amount of bleeding. The render should look like this: |
|
| And the GI settings should look like this: |
|
|
Ok, now on to trying to eliminate this bleeding. Go to the material editor and choose the green material. Transform it into a Brazil Utility material, and keep the old material as the sub-material. Now we can go down to the Global illumination parameters and modify them to suit our needs. We dont want to turn off the bouncing of light, we only want to make it not green. In this case, we'll add a material in the "Generate (Send)" panel. This will make it so that any generated GI will use this material instead of the default green material. We will create a Brazil Test Mtl in this slot, with a 186,186,186 RGB value as it's diffuse color. It's best to create this new material with the same "value" as the one you're replacing it with so that it wont seem like we're bouncing more or less light than before. In our case, the green material had a Value of 186, so we're replacing it with a grey material with the same value. That's it for regular GI. All you have to do now is render. Here we see the material we added: |
|
| And the resulting render: |
|
|
This is the same result you'd get if you use Global photons, and
had used regathering (Bounces = 2). Using global photons, but viewing
them directly (bounces = 1) is explained next. Global photons rendered directly: Now for Doing the same thing with Global photons, when viewing them directly (not regathered). These act differently than Normal GI, as photons don't follow the rules of GI yet. The trick to reduce bleeding is a lot simpler than you might think. First, lets look at the new scene, found here. (21KB). |
|
| From the last example, the GI bounces have been toned down to 1, to enable direct rendering of the photons in the render, and the Photon Map panel looks like this: |
|
|
In the render, we clearly see the bleeding of the color, even when using the Utility material with the grey material in the Generate GI slot. To go around this, copy the grey material from the utility material into it's own slot (click and drag to a new slot, choose copy). Apply this material to the object. Go in the photon map panel and click "Save" in the Photon Map Files box, and give the file a name. Render the scene, then go back to the photon map panel, and switch "Save", to "Load". Your next renders will now used the saved photons map instead of generating a new one. We can now apply the green material back on our object, and render. Your render should look like this: |
|
| Note: The technique used here of saving the photon
map and changing the material should technically not be needed. Because
of a current bug (in v0.4.93 and below), doing this is necessary,
but in future versions this should be fixed. Nevertheless, the technique
may be useful for more than just controlling bleeding. |