[Bf-committers] Camera motion blur bug + fix

Ton Roosendaal ton at blender.org
Thu Mar 13 17:23:11 CET 2008


Hi,

That call will break other things (forgot which, no time now...). I'm  
aware of the issue, there are more side effects (like python lens  
animations). It's more of a design error, parts of pipeline flow for  
camera/scene stuff has to be tweaked for a real solution.

_Ton-

On 11 Mar, 2008, at 14:23, Vidar Madsen wrote:

> 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);
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
>
------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton at blender.org  
http://www.blender.org



More information about the Bf-committers mailing list