[Bf-committers] displist.c, surfaces and buffers

Matt Ebb matt at mke3.net
Mon Nov 19 22:33:57 CET 2007


If I remember correctly, the subsurf code does incremental updates -  
perhaps you could try having a look in there.

cheers

Matt


On 20/11/2007, at 8:23 AM, Emmanuel Stone wrote:

> Hello,
>
> This is a Blender architecture/design question.
>
> In displist.c::makeDispListSurf() :
>
> - The vertex buffer for the tesselated surface is malloc()ed up  
> every time, why?
> - Is it possible to get the old buffer?
>
> ...  displist.c: 1347
> """
> 				dl= MEM_callocN(sizeof(DispList), "makeDispListsurf");
> 				dl->verts= MEM_callocN(len*3*sizeof(float), "dlverts");
> """
>
> libNurbana uses deltas to modify the surface incrementally/on demand,
> which is much faster than recalculating the entire surface for every
> modification. At the moment I am caching the results of the previous
> tesselation internally within libNurbana, but if this data still
> exists somewhere within blender, I would prefer to use that.
>
>
> -Emmanuel
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

------------------------------------------
Matt Ebb . matt at mke3.net . http://mke3.net



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-committers/attachments/20071120/9f34199c/attachment.htm 


More information about the Bf-committers mailing list