2
$\begingroup$

For a project I'm working on I want to do some test renders to see how many samples I would need for the final image. I want to do this as time efficient as possible so I was wondering if there is any possibility I could set the samples really high, use progressive refine and let the image auto-save every, let's say, 100 samples ( or whatever number you put in maybe ). if someone knows a way of doing this albeit with a script, please let me know

$\endgroup$
4
$\begingroup$

You can render an animation with 100 (same) frames after clicking the variable seed button (clock icon), and setting samples to 100.

variable seed

Averaging image1 with image2 would be equivalent to the image with 200 samples, averaging images 1, 2 and 3 would be equivalent to the image with 300 samples and so on.

Photoshop or gimp could help you with that but you could do it more quickly with imagemagick

convert 1.jpg 2.jpg 3.jpg ... N.jpg -average result.jpg

Here is the code in bash that echoes the commands to run

for i in `seq 1 10`; do
    echo -n "convert "
    for j in `seq -f "%03g" 1 $i`;
        do
                echo -n "$j.png "
        done    
    echo "-average result.jpg"
done

and here are the commands for 10 images in case you are on windows

convert 001.png 002.png -average result.jpg
convert 001.png 002.png 003.png -average result.jpg
convert 001.png 002.png 003.png 004.png -average result.jpg
convert 001.png 002.png 003.png 004.png 005.png -average result.jpg
convert 001.png 002.png 003.png 004.png 005.png 006.png -average result.jpg
convert 001.png 002.png 003.png 004.png 005.png 006.png 007.png -average result.jpg
convert 001.png 002.png 003.png 004.png 005.png 006.png 007.png 008.png -average result.jpg
convert 001.png 002.png 003.png 004.png 005.png 006.png 007.png 008.png 009.png -average result.jpg
convert 001.png 002.png 003.png 004.png 005.png 006.png 007.png 008.png 009.png 010.png -average result.jpg
$\endgroup$
  • $\begingroup$ thanks for the answer and I tried something similar already but for this particular project the image is different with this method. The scene has a small planet with a volumetric atmosphere and with combining seeds the volume is way less thick and noticable $\endgroup$ – YOLOnline Feb 12 '17 at 21:54
  • $\begingroup$ I really wonder why I wrote a whole program to list all the files instead of convert *.png -average out.png $\endgroup$ – qwazix Mar 7 '17 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.