|
|
Hey Peter,
You have to edit the FrameRender() function in povray.cpp. Heres what I did
for POV-Ray XR, my experimental version of POV-Ray.
Look for the part where it traces the radiosity preview:
// Note that radiosity REQUIRES a mosaic preview prior to main scan
if ( opts.Radiosity_Enabled && !opts.Radiosity_Preview_Done)
Start_Tracing_Radiosity_Preview(opts.PreviewGridSize_Start,
opts.PreviewGridSize_End);
else if((opts.Options & PREVIEW) && (opts.Options & DISPLAY))
Start_Tracing_Mosaic_Preview(opts.PreviewGridSize_Start,
opts.PreviewGridSize_End);
Then you can add code to conditionally trace the full scene ( I added the
+PTO command line option and the if statement )
// GJP Parallel radiosity - If we specified we want Pretrace Only (+PTO)
then DONT do regular tracing after the pretrace.
if ( !opts.Do_Pretrace_Only ) // added by GJP
{
switch(opts.Tracing_Method) // this was already in povray.
{
case 2:
Start_Adaptive_Tracing();
break;
case 1:
default:
Start_Non_Adaptive_Tracing();
}
} // GJP
// We're done.
"RDX" <rdx### [at] warlordsofbeercom> wrote in message
news:web.3ea43a137101d31e6af4484a0@news.povray.org...
> I am working on a perl script that enables me to break up large still
> renders into multiple small strips which are shot off to different servers
> (or the same server on multi CPU systems) for rendering and then
> reassembled after they are all finished.
>
> Naturally this works quite well without antialiasing or radiosity.
>
> So far I've managed to solve the problem of antialiasing artifacts by
> rendering the 'strips' with extra pixels on the sides, then cropping these
> strips before the final reassembly. This works quite well and my test
> image (1280x1024, 16 strips, antialiasing +A0.001 +R10) reassembles
> flawlessly.
>
> I decided to solve the problem of radiosity by using the load_file,
> save_file radiosity block options, and always_sample turned to off (a fair
> compromise). I would then use the radiosity map generated by this stage
> when rendering the individual strips.
>
> My question is, how do I get POVRay to exit once it has generated the
> radiosity map? Currently it generates the radiosity information and then
> goes on to render the image in it's entirety! Obviously this defeats the
> purpose of what I'm trying to achieve.
>
> Any ideas?
>
> Regards,
>
> -peter
>
Post a reply to this message
|
|