> Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
>> That's only useful if you can save the mesh and use it for other
>> renders.
>
> #if (generate_mesh = 0)
> #include "my_mesh.inc"
> #else
> mesh_generation_macro()
> #end
>
> (This is quite similar to the way Radiosity pregeneration works, you'll notice).
I *always* use this on the global photons block:
#if(file_exists("photons.ph"))
load_file "photons.ph"
#else
save_file "photons.ph"
#end
If I need to re-make the photon map, I invert the condition just for
that render, or delete the file.
Post a reply to this message
|