# Radiance, POV-Ray and parallel global illumination?

**URL:** <https://discourse.radiance-online.org/t/radiance-pov-ray-and-parallel-global-illumination/2195>\
**Category:** radiance-general\
**Created:** [February 1, 2003, 4:49pm UTC](https://discourse.radiance-online.org/t/radiance-pov-ray-and-parallel-global-illumination/2195 "2003-02-01T16:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Pantazopoulos](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/g/9e8a1a/32.png) [@George\_Pantazopoulos](https://discourse.radiance-online.org/u/George_Pantazopoulos)\
**Post date:** [February 1, 2003, 4:49pm UTC](https://discourse.radiance-online.org/t/radiance-pov-ray-and-parallel-global-illumination/2195/1 "2003-02-01T16:49:08Z")

</div>

Hello all,  
&nbsp;&nbsp;  
&nbsp;&nbsp;I am a programmer working with the POV-Ray raytracer. As you may know, for global illumination, POV-Ray uses a version of the irradiance caching algorithm from Mr. Ward's paper "A Ray Tracing Solution for Diffuse Interreflection" (Ward, Rubenstein, and Clear). Presumably Radiance uses a similar, but more advanced version of the same algorithm for its global illumination simulation.

&nbsp;&nbsp;I'm trying to get parallel rendering working, but there is a problem. If the image is divided into tiles, and rendered with POV-Ray and global illumination, each finished tile has a different basic brightness level. And when the final image is reassembled from the tiles, the effect is like a checkerboard or patchwork. In short, it ruins the final image. Apparently each render slave \*needs\* to have the entire scene octree available to it, somehow. There has been an effort to share the octree data with the other slaves as soon as it is generated, however this is only partially successful and does not always suppress the artifacts I mentioned. (Here is a link to the pvmegapov page [http://www.wozzeck.net/images/pmp/](http://www.wozzeck.net/images/pmp/) )

&nbsp;&nbsp;I'm wondering if Radiance handles this problem in a fundamentally different way, which I could learn from. Some basic parallel Radiance info I read did not mention this problem at all, so hopefully you guys already have a solution. Any suggestions would be most appreciated!

Thanks,  
George Pantazopoulos

---

<div class="post-metadata">

**Author:** ![Georg\_Mischler](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/g/7feea3/32.png) [@Georg\_Mischler](https://discourse.radiance-online.org/u/Georg_Mischler)\
**Post date:** [February 2, 2003, 1:29am UTC](https://discourse.radiance-online.org/t/radiance-pov-ray-and-parallel-global-illumination/2195/2 "2003-02-02T01:29:07Z")

</div>

George Pantazopoulos wrote:

> I'm trying to get parallel rendering working, but there is a problem. If  
> the image is divided into tiles, and rendered with POV-Ray and global  
> illumination, each finished tile has a different basic brightness level.  
> And when the final image is reassembled from the tiles, the effect is like  
> a checkerboard or patchwork. In short, it ruins the final image. Apparently  
> each render slave \*needs\* to have the entire scene octree available to it,  
> somehow. There has been an effort to share the octree data with the other  
> slaves as soon as it is generated, however this is only partially  
> successful and does not always suppress the artifacts I mentioned. (Here is  
> a link to the pvmegapov page [IndoSuper | Situs Taruhan Online Terakurat 2024 | Indo Super](http://www.wozzeck.net/images/pmp/) )

Hi George,

just to eliminate any potential confusions about the terminology:  
What POV calls "scene octree" is normally called "ambient data" in  
Radiance-speak. But we're still talking about the same thing.

Your analsysis is correct: You need to share this data between the  
different processes in relatively short intervals, or they will  
get out of sync, producing the observed tile patterns. Radiance does  
the sharing through a file (we're currently discussing alternatives  
in the radiance-dev list). Each process synchronizes with this file  
when its stdio output buffer is full, on my box that means after it  
has created approximately 100 new values.

> I'm wondering if Radiance handles this problem in a fundamentally  
> different way, which I could learn from.

As far as I understand what POV does, the main difference seems to  
be in the syncing frequency. I see that you have difficulties  
increasing that. To improve the quality of the ambient data, it is  
common practise with Radiance to "seed" the ambient file with a very  
small rendering that is then discarded. Maybe it would help too in  
your case, if you let your slaves render and discard one patch each  
at first (evenly distributed across the picture), and then to start  
the "real" rendering with the ambient data collected that way  
already available. In most cases, earlier patches will show bigger  
discrepancies than later ones.

Btw., if you really still have tiles in your PvMegaPOV example  
picture, the woodgrain pattern hides them very effectively... 😉

-schorsch

> **···**
>
> --  
> Georg Mischler -- simulations developer -- schorsch at schorsch com  
> +schorsch.com+ -- lighting design tools -- [http://www.schorsch.com/](http://www.schorsch.com/)
