Blender Git Loki
Git Commits -> Revision 1fe5302
Revision 1fe5302 by Brecht Van Lommel (master) April 10, 2008, 11:39 (GMT) |
Point Cache Refactoring ======================= Caching and Baking: - The point cache is now cleared on DAG_object_flush_update(), and not cleared for time dependency graph updates. - There is now a Bake button instead of Protect. Also cache start and end frames were added to softbody and particles. - The cloth autoprotect feature was removed. - The Ctrl+B menu now also bakes cloth and particles next to softbody and fluids. Additionally there are now frree bake and free cache menu entries. - The point cache api has been changed. There is now a PTCacheID struct for each point cache type that can be filled and then used to call the point cache functions. - PointCache struct was added to DNA and is automatically allocated for each physics type. - Soft body now supports Bake Editing just like cloth. - Tried to make the systems deal consistently with time ipo's and offsets. Still not sure it all works correct, but too complicated to solve completely now. Library Linking: - Added some more warnings to prevent editing settings on library linked objects. - Linked objects now read from the cache located next to the original library file, and never write to it. This restores old behavior for softbodies. For local simulation the mesh and not the object should be linked. - Dupligroups and proxies can't create local point caches at the moment, how to implement that I'm not sure. We probably need a proxy point cache for that to work (ugh). Physics UI: - Renamed deflection panel to collision for consistency and reorganized the buttons. Also removed some softbody collision buttons from the softbody panel that were duplicated in this panel for cloth. - Tweaked field panel buttons to not jump around when changing options. - Tabbing e.g. Soft Body Collision into the Soft Body panel, it now only shows Collision to make the panel names readable. - I tried to make enabled/disabling physics more consistent, since all three system did things different. Now the two modifier buttons to enable the modifier for the viewport and rendering are also duplicated in the physics panels. Toggling the Soft Body and Cloth buttons now both remove their modifiers. - Fixed modifier error drawing glitch. Particles: - Particles are now recalculated more often than before. Previously it did partial updates based on the changes, but that doesn't work well with DAG_object_flush_update() .. - Fixed memory leak loading keyed particle system. Now keys are not written to file anymore but always created after loading. - Make particle threads work with autothreads. Continue Physics: - The timeline play now has a Continue Physics option in the playback menu, which keeps the simulations going without writing them to the cache. - This doesn't always work that well, some changes are not immediately updated, but this can be improved later. Still it's fun to get a feel for the physics. Todo: - Point cache can get out of sync with and undo and changing a file without saving it. - Change the point cache file format to store a version (so old point cache files can be either converted or at least ignored), and to do correct endian conversion. - Menu item and/or buttons for Ctrl+B. - A system("rm ..") was changed to remove() since the former is very slow for clearing point caches. These system() calls were already giving trouble in a bug in the tracker, but really most use of this system("") should be changed and tested. - The Soft Body Collision and Clot Collision panel titles don't mention there's point cache settings there too, doing that makes them unreadable with the default panel setup.. but may need to make the names longer anyway. |
Commit Details:
Full Hash: 1fe5302cce8de1bad875ad29a3fcff06d0c59654
SVN Revision: 14376
Parent Commit: 36288da
Lines Changed: +2462, -1750
42 Modified Paths:
/source/blender/blenkernel/BKE_cloth.h (+8, -6) (Diff)
/source/blender/blenkernel/BKE_depsgraph.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_particle.h (+11, -4) (Diff)
/source/blender/blenkernel/BKE_pointcache.h (+67, -7) (Diff)
/source/blender/blenkernel/BKE_softbody.h (+4, -1) (Diff)
/source/blender/blenkernel/intern/cloth.c (+194, -345) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+62, -14) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+2, -4) (Diff)
/source/blender/blenkernel/intern/modifier.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/object.c (+13, -2) (Diff)
/source/blender/blenkernel/intern/particle.c (+44, -4) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+298, -177) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+352, -31) (Diff)
/source/blender/blenkernel/intern/softbody.c (+392, -340) (Diff)
/source/blender/blenlib/intern/fileops.c (+1, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+56, -12) (Diff)
/source/blender/blenloader/intern/writefile.c (+4, -8) (Diff)
/source/blender/include/butspace.h (+2, -5) (Diff)
/source/blender/makesdna/DNA_cloth_types.h (+5, -16) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_object_force.h (+23, -6) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+6, -2) (Diff)
/source/blender/makesdna/DNA_space_types.h (+1, -0) (Diff)
/source/blender/src/buttons_editing.c (+9, -20) (Diff)
/source/blender/src/buttons_object.c (+615, -440) (Diff)
/source/blender/src/drawview.c (+11, -17) (Diff)
/source/blender/src/edit.c (+8, -3) (Diff)
/source/blender/src/editipo.c (+1, -13) (Diff)
/source/blender/src/editmesh.c (+154, -131) (Diff)
/source/blender/src/editnla.c (+1, -1) (Diff)
/source/blender/src/editobject.c (+9, -22) (Diff)
/source/blender/src/editparticle.c (+0, -3) (Diff)
/source/blender/src/fluidsim.c (+8, -0) (Diff)
/source/blender/src/header_time.c (+30, -10) (Diff)
/source/blender/src/interface_panel.c (+13, -5) (Diff)
/source/blender/src/poselib.c (+2, -22) (Diff)
/source/blender/src/space.c (+21, -6) (Diff)
/source/blender/src/toets.c (+3, -1) (Diff)
/source/blender/src/transform.c (+9, -3) (Diff)
/source/blender/src/transform_conversions.c (+11, -12) (Diff)
/source/blender/src/transform_generics.c (+4, -32) (Diff)
/source/blender/src/vpaint.c (+0, -17) (Diff)
/source/blender/blenkernel/BKE_depsgraph.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_particle.h (+11, -4) (Diff)
/source/blender/blenkernel/BKE_pointcache.h (+67, -7) (Diff)
/source/blender/blenkernel/BKE_softbody.h (+4, -1) (Diff)
/source/blender/blenkernel/intern/cloth.c (+194, -345) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+62, -14) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+2, -4) (Diff)
/source/blender/blenkernel/intern/modifier.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/object.c (+13, -2) (Diff)
/source/blender/blenkernel/intern/particle.c (+44, -4) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+298, -177) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+352, -31) (Diff)
/source/blender/blenkernel/intern/softbody.c (+392, -340) (Diff)
/source/blender/blenlib/intern/fileops.c (+1, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+56, -12) (Diff)
/source/blender/blenloader/intern/writefile.c (+4, -8) (Diff)
/source/blender/include/butspace.h (+2, -5) (Diff)
/source/blender/makesdna/DNA_cloth_types.h (+5, -16) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_object_force.h (+23, -6) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+6, -2) (Diff)
/source/blender/makesdna/DNA_space_types.h (+1, -0) (Diff)
/source/blender/src/buttons_editing.c (+9, -20) (Diff)
/source/blender/src/buttons_object.c (+615, -440) (Diff)
/source/blender/src/drawview.c (+11, -17) (Diff)
/source/blender/src/edit.c (+8, -3) (Diff)
/source/blender/src/editipo.c (+1, -13) (Diff)
/source/blender/src/editmesh.c (+154, -131) (Diff)
/source/blender/src/editnla.c (+1, -1) (Diff)
/source/blender/src/editobject.c (+9, -22) (Diff)
/source/blender/src/editparticle.c (+0, -3) (Diff)
/source/blender/src/fluidsim.c (+8, -0) (Diff)
/source/blender/src/header_time.c (+30, -10) (Diff)
/source/blender/src/interface_panel.c (+13, -5) (Diff)
/source/blender/src/poselib.c (+2, -22) (Diff)
/source/blender/src/space.c (+21, -6) (Diff)
/source/blender/src/toets.c (+3, -1) (Diff)
/source/blender/src/transform.c (+9, -3) (Diff)
/source/blender/src/transform_conversions.c (+11, -12) (Diff)
/source/blender/src/transform_generics.c (+4, -32) (Diff)
/source/blender/src/vpaint.c (+0, -17) (Diff)