[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29593] branches/render25/source/blender/ render/intern/raytrace/rayobject.cpp: Render Branch: fix bug raytracing instanced objects with use instancing

Daniel Salazar - 3Developer.com zanqdo at gmail.com
Mon Jun 21 21:35:51 CEST 2010


About this probably the raytracer instancing should be on by default,
I talked to Andre a while back about this and he told me the speed
impact of having the feature on when you don't really need it should
be unnoticeable. So maybe we need to do a couple of tests and if it
turns out not to have any negative effect on speed just enable it by
default? The huge benefits of using memory instancing when there are
instances on the scene are very worth it

pura vida,
Daniel Salazar


On Mon, Jun 21, 2010 at 8:16 AM, Brecht Van Lommel <brecht at blender.org> wrote:
> Revision: 29593
>          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29593
> Author:   blendix
> Date:     2010-06-21 16:16:05 +0200 (Mon, 21 Jun 2010)
>
> Log Message:
> -----------
> Render Branch: fix bug raytracing instanced objects with use instancing
> disabled for the raytracer.
>
> Modified Paths:
> --------------
>    branches/render25/source/blender/render/intern/raytrace/rayobject.cpp
>
> Modified: branches/render25/source/blender/render/intern/raytrace/rayobject.cpp
> ===================================================================
> --- branches/render25/source/blender/render/intern/raytrace/rayobject.cpp       2010-06-21 11:43:28 UTC (rev 29592)
> +++ branches/render25/source/blender/render/intern/raytrace/rayobject.cpp       2010-06-21 14:16:05 UTC (rev 29593)
> @@ -72,6 +72,8 @@
>
>  MALWAYS_INLINE void rayface_from_vlak(RayFace *rayface, ObjectInstanceRen *obi, VlakRen *vlr)
>  {
> +       rayface_from_coords(rayface, obi, vlr, vlr->v1->co, vlr->v2->co, vlr->v3->co, vlr->v4 ? vlr->v4->co : 0);
> +
>        if(obi->transform_primitives)
>        {
>                mul_m4_v3(obi->mat, rayface->v1);
> @@ -81,8 +83,6 @@
>                if(RE_rayface_isQuad(rayface))
>                        mul_m4_v3(obi->mat, rayface->v4);
>        }
> -
> -       rayface_from_coords(rayface, obi, vlr, vlr->v1->co, vlr->v2->co, vlr->v3->co, vlr->v4 ? vlr->v4->co : 0);
>  }
>
>  RayObject* RE_rayface_from_vlak(RayFace *rayface, ObjectInstanceRen *obi, VlakRen *vlr)
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>


More information about the Bf-committers mailing list