Hi everyone,
One of the ways I learned in the discourse to speed up the Radiance is to use the -af and -n options of the rtrace command. In the manpage, the -af option will set the ambient file. The main function of the ambient file is to store the indirect illuminance and be used as a means of communication and data sharing between simultaneously executing processes. So, based on my tests and previous answer from @Greg_Ward (Is there a faster way to calculate the illuminance value?), if only use -n options, it will almost not speed up the process. It must use -af and -n options together to speed up the process.
The manpage also shows that “if any calculation parameters are changed or the scene is modified, the old ambient file should be removed so that the calculation can start over from scratch”. So, this means that if the light.rad file, .mat file or room.rad file is modified, it actually modifies the scene. In this case, the old ambient file should be removed.
So, if you use the rtrace command to analyze the same scene multiple times, you can use these two options to accelerate it. But, if you change some main properties of the scene, like the .mat file, light.rad, or room.rad file, you need to regenerate the ambient file. In this way, using these two options will not save time when you want to test the influence of different settings of .mat file.
Consequently, I am really confused about the functions of these two options. What is the significance of using rtrace’s -af and -n together to accelerate the analysis of the same scene? Because it makes no sense to analyze the same scene again and again.
Warm regards,
Hao