POV-Ray : Newsgroups : povray.unofficial.patches : save_file, load_file "mediaph.ph" : Re: save_file, load_file "mediaph.ph" Server Time
2 Sep 2024 16:16:09 EDT (-0400)
  Re: save_file, load_file "mediaph.ph"  
From: Nathan Kopp
Date: 8 Nov 1999 08:58:39
Message: <3826d70f@news.povray.org>
If you have an animation where the objects affecting the photons do not
change, this could save a lot of time.  One of the demo scenes for UVPov6.1
has the following code:
    #if(clock=0)
    save_file "mediaph.ph"
    #else
    load_file "mediaph.ph"
    #end

This is especially the case if the camera is the only thing that moves.

Now, as this relates to radiosity -- Unlike photons, the computation of
radiosity is very camera-dependant.  If generate the radiosity data and then
move the camera and re-use it, you will likely be missing some spots.

-Nathan

Nieminen Juha <war### [at] punarastascstutfi> wrote...
>   Are there any other advantages of saving the photon map than speeding up
> a continued trace?
>   The scene usually changes from render to render (trial and error style
> modelling) so I think that the photon map changes as well.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.