Blender Git Loki

Git Commits -> Revision b4353a8

Revision b4353a8 by Janne Karhu (master)
July 20, 2009, 23:52 (GMT)
Initial code for boids v2

Too many new features to list! But here are the biggies:
- Boids can move on air and/or land, or climb a goal object.
- Proper interaction with collision objects.
* Closest collision object in negative z direction is considered as ground.
* Other collision objects are obstacles and boids collide with them.
- Boid behavior rules are now added to a dynamic list.
* Many new rules and many still not implemented.
* Different rule evaluation modes (fuzzy, random, average).
- Only particle systems defined by per system "boid relations" are considered for simulation of that system.
* This is in addition to the boids own system of course.
* Relations define other systems as "neutral", "friend" or "enemy".
- All effectors now effect boid physics, not boid brains.
* This allows forcing boids somewhere.
* Exception to this is new "boid" effector, which defines boid predators (positive strength) and goals (negative strength).

Known issue:
- Boid health isn't yet stored in pointcache so simulations with "fight" rule are not be read from cache properly.
- Object/Group visualization object's animation is not played in "particle time". This is definately the wanted behavior, but isn't possible with the current state of dupliobject code.

Other new features:
- Particle systems can now be named separately from particle settings.
* Default name for particle settings is now "ParticleSettings" instead of "PSys"
- Per particle system list of particle effector weights.
* Enables different effection strengths for particles from different particle systems with without messing around with effector group setting.

Other code changes:
- KDTree now supports range search as it's needed for new boids.
- "Keyed particle targets" renamed as general "particle targets", as they're needed for boids too. (this might break some files saved with new keyed particles)

Bug fixes:
- Object & group visualizations didn't work.
- Interpolating pointcache didn't do rotation.

Commit Details:

Full Hash: b4353a84439085ac7d4bb7da2daed983637a75cc
SVN Revision: 21737
Parent Commit: 01b7876
Lines Changed: +4070, -1189

4 Added Paths:

/source/blender/blenkernel/BKE_boids.h (+62, -0) (View)
/source/blender/blenkernel/intern/boids.c (+1526, -0) (View)
/source/blender/editors/physics/physics_boids.c (+433, -0) (View)
/source/blender/makesrna/intern/rna_boid.c (+615, -0) (View)

30 Modified Paths:

/release/ui/buttons_particle.py (+234, -37) (Diff)
/release/ui/buttons_physics_field.py (+6, -1) (Diff)
/source/blender/blenkernel/BKE_particle.h (+19, -10) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+47, -33) (Diff)
/source/blender/blenkernel/intern/effect.c (+3, -0) (Diff)
/source/blender/blenkernel/intern/modifier.c (+44, -6) (Diff)
/source/blender/blenkernel/intern/object.c (+39, -7) (Diff)
/source/blender/blenkernel/intern/particle.c (+31, -24) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+441, -787) (Diff)
/source/blender/blenlib/BLI_kdtree.h (+5, -1) (Diff)
/source/blender/blenlib/intern/BLI_kdtree.c (+111, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+65, -9) (Diff)
/source/blender/blenloader/intern/writefile.c (+50, -4) (Diff)
/source/blender/editors/include/ED_physics.h (+1, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -0) (Diff)
/source/blender/editors/space_buttons/buttons_intern.h (+4, -4) (Diff)
/source/blender/editors/space_buttons/buttons_ops.c (+58, -54) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+4, -4) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+20, -3) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+5, -0) (Diff)
/source/blender/makesdna/DNA_object_force.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+28, -40) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_fluidsim.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+208, -160) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -1) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021