[Bf-committers] Camera motion blur bug + fix

Vidar Madsen vidarino at gmail.com
Tue Mar 11 14:23:10 CET 2008


Hi.

I was trying to achieve a "zoom blur" effect by animating the Lens IPO
of the camera, but it seems the camera properies are only calculated
prior to the separate mblur renders.

Test here: http://vidar.gimp.org/tmp/zoomtest.blend

This tiny patch should fix the (admittedly also small) problem:

Index: source/blender/render/intern/source/pipeline.c
===================================================================
--- source/blender/render/intern/source/pipeline.c      (revision 14058)
+++ source/blender/render/intern/source/pipeline.c      (working copy)
@@ -1698,6 +1698,8 @@

                re->i.curblur= re->r.osa-blur;  /* stats */

+               RE_SetCamera(re, re->scene->camera);
+
                do_render_3d(re);

                blurfac= 1.0f/(float)(re->r.osa-blur);


More information about the Bf-committers mailing list