podlovics
05-12-2010, 04:42 PM
A small tutorial of how to reduce prepass rendering time to half/third/fourth/fifth of the original prepass calculation in case of object animation
I was very pissed with one client who wanted a built-in closet's door open in an archviz animation while going around in the house.
I had to render prepass for each 400 frames while the doors slowly opened. I was wondering if I could just use every 2nd or even every 5th frame to render the prepass and interpolate between them for the final animation.
So I made a test. In the attached movie you can see the animated cube in 2 versions.
In the Every2nd.mp4 every 2nd Anim Prepass frame was rendered: pre_0000, pre_0002, pre_0004, etc. Then I used IrfanView's (a very good image viewing program) Batch Rename function to rename every prepass file to one higher number. So pre_0000 became pre_0001, pre_0002 became pre_0003, etc.
This way I had the prepass files for every frame, although every odd number was the same as the one before.
Then I used the Anim render function in vray, set the Interpolated frames to 3 and I got this result.
http://download.podlovics.hu/tutorial/Every2nd.mp4
I went even further, rendered the prepass for every 5th frame, converted pre_0000 to pre_0001, pre_0002, pre_0003, pre_0004 and so on and rendered the cube with this setup too. In this case I set the Interpolated samples to 5 in the Anim render.
The result is here:
http://download.podlovics.hu/tutorial/Every5th.mp4
The result was still ok, although it had some flickering already. However if the animation movement is slow you can use higher values, especially if you have dark surfaces, where diffuse lights are not that strong, anyway.
I hope it was clear.
Tamas
I was very pissed with one client who wanted a built-in closet's door open in an archviz animation while going around in the house.
I had to render prepass for each 400 frames while the doors slowly opened. I was wondering if I could just use every 2nd or even every 5th frame to render the prepass and interpolate between them for the final animation.
So I made a test. In the attached movie you can see the animated cube in 2 versions.
In the Every2nd.mp4 every 2nd Anim Prepass frame was rendered: pre_0000, pre_0002, pre_0004, etc. Then I used IrfanView's (a very good image viewing program) Batch Rename function to rename every prepass file to one higher number. So pre_0000 became pre_0001, pre_0002 became pre_0003, etc.
This way I had the prepass files for every frame, although every odd number was the same as the one before.
Then I used the Anim render function in vray, set the Interpolated frames to 3 and I got this result.
http://download.podlovics.hu/tutorial/Every2nd.mp4
I went even further, rendered the prepass for every 5th frame, converted pre_0000 to pre_0001, pre_0002, pre_0003, pre_0004 and so on and rendered the cube with this setup too. In this case I set the Interpolated samples to 5 in the Anim render.
The result is here:
http://download.podlovics.hu/tutorial/Every5th.mp4
The result was still ok, although it had some flickering already. However if the animation movement is slow you can use higher values, especially if you have dark surfaces, where diffuse lights are not that strong, anyway.
I hope it was clear.
Tamas