[Bf-committers] point cache changes

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Mar 20 23:00:28 CET 2008


Hi,

>On topic,
>while you are on it .. consider linking a basic feature.
>error report link -->
>http://projects.blender.org/tracker/?func=detail&atid=125&aid=8140&group_id=9

The linking situation I haven't thought about too much. One the one hand you want the simulation to be per scene that the object is used in, but it's also useful to reuse results .. probably best to make this an option somehow.

I've made some progress with the code. The dependency graph can now clear point caches when the objects change, and not do anything when the time changes.
http://wiki.blender.org/index.php/BlenderDev/PointCache

Here's a patch with the current state. It has mainly changes in cloth, softbody and particles might be broken even, haven't tested. I've added bake buttons but they don't actually bake yet, only protect.
http://users.pandora.be/blendix/point_cache_refactor_cloth.txt

Also includes a hack that keeps the cloth simulation going with the timeline play button on, i.e. it doesn't reset when it gets back to frame 1, and it doesn't write to the point cache. Even keeps running during the transform loop. Not sure yet how hard it is do integrate this properly, but it seems feasible.

Cheers,
Brecht.





More information about the Bf-committers mailing list