Blender Git Loki
Git Commits -> Revision bff893a
Revision bff893a by Janne Karhu (master) September 30, 2009, 22:10 (GMT) |
Unified effector functionality for particles, cloth and softbody * Unified scene wide gravity (currently in scene buttons) instead of each simulation having it's own gravity. * Weight parameters for all effectors and an effector group setting. * Every effector can use noise. * Most effectors have "shapes" point, plane, surface, every point. - "Point" is most like the old effectors and uses the effector location as the effector point. - "Plane" uses the closest point on effectors local xy-plane as the effector point. - "Surface" uses the closest point on an effector object's surface as the effector point. - "Every Point" uses every point in a mesh effector object as an effector point. - The falloff is calculated from this point, so for example with "surface" shape and "use only negative z axis" it's possible to apply force only "inside" the effector object. * Spherical effector is now renamed as "force" as it's no longer just spherical. * New effector parameter "flow", which makes the effector act as surrounding air velocity, so the resulting force is proportional to the velocity difference of the point and "air velocity". For example a wind field with flow=1.0 results in proper non-accelerating wind. * New effector fields "turbulence", which creates nice random flow paths, and "drag", which slows the points down. * Much improved vortex field. * Effectors can now effect particle rotation as well as location. * Use full, or only positive/negative z-axis to apply force (note. the z-axis is the surface normal in the case of effector shape "surface") * New "force field" submenu in add menu, which adds an empty with the chosen effector (curve object for corve guides). * Other dynamics should be quite easy to add to the effector system too if wanted. * "Unified" doesn't mean that force fields give the exact same results for particles, softbody & cloth, since their final effect depends on many external factors, like for example the surface area of the effected faces. Code changes * Subversion bump for correct handling of global gravity. * Separate ui py file for common dynamics stuff. * Particle settings updating is flushed with it's id through DAG_id_flush_update(..). Known issues * Curve guides don't yet have all ui buttons in place, but they should work none the less. * Hair dynamics don't yet respect force fields. Other changes * Particle emission defaults now to frames 1-200 with life of 50 frames to fill the whole default timeline. * Many particles drawing related crashes fixed. * Sometimes particles didn't update on first frame properly. * Hair with object/group visualization didn't work properly. * Memory leaks with PointCacheID lists (Genscher, remember to free pidlists after use :). |
Commit Details:
Full Hash: bff893a42047cfc92671f878109c1ff17ce5f8a2
SVN Revision: 23574
Parent Commit: 7d9bfdc
Lines Changed: +2319, -1716
1 Added Path:
/release/scripts/ui/buttons_physics_common.py (+153, -0) (View)
42 Modified Paths:
/release/scripts/ui/buttons_particle.py (+48, -101) (Diff)
/release/scripts/ui/buttons_physics_cloth.py (+26, -12) (Diff)
/release/scripts/ui/buttons_physics_field.py (+22, -61) (Diff)
/release/scripts/ui/buttons_physics_softbody.py (+15, -2) (Diff)
/release/scripts/ui/buttons_scene.py (+18, -0) (Diff)
/source/blender/blenkernel/BKE_collision.h (+9, -0) (Diff)
/source/blender/blenkernel/BKE_effect.h (+86, -23) (Diff)
/source/blender/blenkernel/BKE_particle.h (+15, -50) (Diff)
/source/blender/blenkernel/intern/boids.c (+82, -105) (Diff)
/source/blender/blenkernel/intern/cloth.c (+7, -0) (Diff)
/source/blender/blenkernel/intern/collision.c (+91, -0) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+26, -28) (Diff)
/source/blender/blenkernel/intern/effect.c (+641, -214) (Diff)
/source/blender/blenkernel/intern/implicit.c (+11, -11) (Diff)
/source/blender/blenkernel/intern/modifier.c (+6, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+8, -7) (Diff)
/source/blender/blenkernel/intern/particle.c (+147, -160) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+87, -599) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/scene.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/smoke.c (+1, -2) (Diff)
/source/blender/blenkernel/intern/softbody.c (+42, -25) (Diff)
/source/blender/blenloader/intern/readfile.c (+83, -7) (Diff)
/source/blender/blenloader/intern/writefile.c (+6, -1) (Diff)
/source/blender/editors/object/object_add.c (+88, -0) (Diff)
/source/blender/editors/object/object_edit.c (+1, -0) (Diff)
/source/blender/editors/object/object_intern.h (+1, -0) (Diff)
/source/blender/editors/object/object_modifier.c (+3, -3) (Diff)
/source/blender/editors/object/object_ops.c (+1, -0) (Diff)
/source/blender/editors/physics/particle_boids.c (+6, -6) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+5, -3) (Diff)
/source/blender/editors/transform/transform_conversions.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_cloth_types.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_object_force.h (+87, -40) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+14, -12) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+11, -0) (Diff)
/source/blender/makesrna/intern/rna_boid.c (+8, -19) (Diff)
/source/blender/makesrna/intern/rna_cloth.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+363, -61) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+61, -160) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+22, -1) (Diff)
/release/scripts/ui/buttons_physics_cloth.py (+26, -12) (Diff)
/release/scripts/ui/buttons_physics_field.py (+22, -61) (Diff)
/release/scripts/ui/buttons_physics_softbody.py (+15, -2) (Diff)
/release/scripts/ui/buttons_scene.py (+18, -0) (Diff)
/source/blender/blenkernel/BKE_collision.h (+9, -0) (Diff)
/source/blender/blenkernel/BKE_effect.h (+86, -23) (Diff)
/source/blender/blenkernel/BKE_particle.h (+15, -50) (Diff)
/source/blender/blenkernel/intern/boids.c (+82, -105) (Diff)
/source/blender/blenkernel/intern/cloth.c (+7, -0) (Diff)
/source/blender/blenkernel/intern/collision.c (+91, -0) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+26, -28) (Diff)
/source/blender/blenkernel/intern/effect.c (+641, -214) (Diff)
/source/blender/blenkernel/intern/implicit.c (+11, -11) (Diff)
/source/blender/blenkernel/intern/modifier.c (+6, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+8, -7) (Diff)
/source/blender/blenkernel/intern/particle.c (+147, -160) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+87, -599) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/scene.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/smoke.c (+1, -2) (Diff)
/source/blender/blenkernel/intern/softbody.c (+42, -25) (Diff)
/source/blender/blenloader/intern/readfile.c (+83, -7) (Diff)
/source/blender/blenloader/intern/writefile.c (+6, -1) (Diff)
/source/blender/editors/object/object_add.c (+88, -0) (Diff)
/source/blender/editors/object/object_edit.c (+1, -0) (Diff)
/source/blender/editors/object/object_intern.h (+1, -0) (Diff)
/source/blender/editors/object/object_modifier.c (+3, -3) (Diff)
/source/blender/editors/object/object_ops.c (+1, -0) (Diff)
/source/blender/editors/physics/particle_boids.c (+6, -6) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+5, -3) (Diff)
/source/blender/editors/transform/transform_conversions.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_cloth_types.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_object_force.h (+87, -40) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+14, -12) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+11, -0) (Diff)
/source/blender/makesrna/intern/rna_boid.c (+8, -19) (Diff)
/source/blender/makesrna/intern/rna_cloth.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+363, -61) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+61, -160) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+22, -1) (Diff)