[Radiance-general] Combining Ambient Files

Greg Ward gregoryjward at gmail.com
Tue Dec 22 10:16:20 PST 2009


Hi Mark,

Rob is basically right.  There is an even simpler method, though.  So  
long as the ambient file was written correctly, you can append it from  
another source using getinfo to remove the header:

	getinfo - < machine2.amb >> machine1.amb

If you are concerned that one or the other ambient file may not be  
complete, the safer method is lookamb:

	(lookamb -d machine1.amb ; lookamb -h -d machine2.amb) | lookamb -r >  
combined.amb

-Greg

> From: "Guglielmetti, Robert" <Robert.Guglielmetti at nrel.gov>
> Date: December 22, 2009 9:18:31 AM PST
>
> On 12/22/09 10:07 AM, "Mark de la Fuente" <MdelaFuente at wmtao.com>  
> wrote:
>
>> I'm running a simulation on a Cygwin (windows) computer.  Windows  
>> won't let us
>> share the ambient file, so creating multiple views of large scenes  
>> takes
>> longer to do, as processors sit idle. Is it possible to run  
>> multiple rpicts of
>> the same octree, each one with a different view and associated  
>> ambient file,
>> and then add the ambient files together for use in future runs?
>
> Hi Mark,
>
> You can do that with the lookamb utility. You use lookamb -h -d to  
> print the
> contents of the ambient file sans header to STDOUT, then pipe that  
> back to
> lookamb with -r to roll them all up into one ambient file.
>
> - Rob



More information about the Radiance-general mailing list