Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-27Fix #36630, Particlesystem - boids - goal - collision.Lukas Toenne
Problem was introduced with r54648, which determined the initial interval for the Newton-Raphson method using the "total_time" of the collision - but this info is only defined for regular collisions, not for the raycasting used in boids to find the "ground object". To ensure correct behavior, now clear the collision info before using it (good practice in any case), then check the inv_total_time variable and use the standard 0.001 step if not defined.
2013-09-02use strict flags for kdtree, and replace ints with unsigned ints where possible.Campbell Barton
also replace callocs with mallocs since zeroing memory can be avoided.
2013-07-13fix for more errors with switch missing breakCampbell Barton
- boids random option was falling through to average. - (NC_OBJECT | ND_DRAW) notifier was falling through to ND_SHADING button preview updates.
2013-04-16Random number generator: replace a bunch of usage of the global random numberBrecht Van Lommel
generator with a local one. It's not thread safe and will not give repeatable results, so in most cases it should not be used. Also fixes #34992 where the noise texture of a displacement modifier was not properly random in opengl animation render, because the seed got reset to a fixed value by an unrelated function while for final render it changed each frame.
2012-10-23rename api functions...Campbell Barton
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-22style cleanupCampbell Barton
2012-10-14style cleanupCampbell Barton
2012-08-17fix own error in recent smoothview cleanup, also correct some cross ↵Campbell Barton
references in bmesh docs.
2012-07-29code cleanup: replace MIN2/MAX2 with minf/maxfCampbell Barton
2012-06-20style cleanupCampbell Barton
2012-04-29style cleanup: whitespace / commasCampbell Barton
2012-04-28style cleanup: changes to brace placement / newlines - for/while/if/switchCampbell Barton
2012-04-21style cleanupCampbell Barton
2012-03-24style cleanup: follow style guide for/with/if spacingCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-06style cleanup, brackets in else/if, some indentation.Campbell Barton
2012-02-23style cleanup for blenkernel, no functional changes.Campbell Barton
2012-01-11use BLI_strncpy and BLI_snprintf when the size of the string is known.Campbell Barton
fix for sequencer unique naming which was missed with string length update.
2011-12-17style edit only - move parenthesis onto second line of function definition ↵Campbell Barton
(in keeping with most of blenders code) also split some long lines in own code.
2011-11-11quiet -Wdouble-promotion warningsCampbell Barton
2011-11-06more macro --> bli math lib replacements.Campbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-10header cleanup (no functional changes)Campbell Barton
2011-09-28whitespace edits, make formatting for functions consustent at least within ↵Campbell Barton
the file.
2011-09-12replace VECCOPY -> copy_v3_v3, added copy_v*_v*_short too for typesafe ↵Campbell Barton
copying, some parts of the code are copying float -> short normals without scaling. fix coming next.
2011-07-10Fix for [#26873] Animated displacement modifier on an object doesn't work ↵Janne Karhu
with hair particle objects * Noise is now considered an animated texture as it changes with every frame * Converted a few places in particles code to use the particle system's own random table instead of BLI_frand.
2011-04-25Fix for [#27112] Boid Particles get Z clamped to 0.0 when "Allow Flighting"Janne Karhu
* Boids that can only fly shouldn't care about ground unless there's actually a collision object below them.
2011-04-02quiet gcc float -> double promotion warnings.Campbell Barton
2011-03-18New particle collisions code:Janne Karhu
* The old collisions code detected particle collisions by calculating the collision times analytically from the collision mesh faces. This was pretty accurate, but didn't support rotating/deforming faces at all, as the equations for these quickly become quite nasty. * The new code uses a simple "distance to plane/edge/vert" function and iterates this with the Newton-Rhapson method to find the closest particle distance during a simulation step. * The advantage in this is that the collision object can now move, rotate, scale or even deform freely and collisions are still detected reliably. * For some extreme movements the calculation errors could stack up so much that the detection fails, but this can be easily fixed by increasing the particle size or simulation substeps. * As a side note the algorithm doesn't really do point particles anymore, but uses a very small radius as the particle size when "size deflect" isn't selected. * I've also updated the collision response code a bit, so now the particles shouldn't leak even from tight corners. All in all the collisions code is now much cleaner and more robust than before!
2011-02-27doxygen: blender/blenkernel tagged.Nathan Letwory
2011-02-13enforce string limits (reported by pedantic checking tools & some developers).Campbell Barton
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf(). also fix possible crash if CWD isnt available.
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2010-11-03Oops, particle collisions didn't take simulation subframes into account at all.Janne Karhu
* This caused nearly all particles to leak through the collision surface if simulation subframes were used and the collision object was moving. * In addition to fixing this I also did some more cleanup of the collision code and refined some of the comments.
2010-11-02fix for compiling with the c90 standard, support for non-static variable ↵Campbell Barton
initializers is a c99 feature.
2010-10-17- fixed remaining unused warnings.Campbell Barton
- omit render code from this warning (cmake only), until render branch is merged. - moved -Wunused-parameter warning to apply to all C code in blender (not just ./source/blender), (cmake only).
2010-10-16most unused arg warnings corrected.Campbell Barton
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-09-17Fix compile error after last commit in boids.Brecht Van Lommel
2010-09-17Tiny addition to boids functionality: pitch valueJanne Karhu
* Controls maximum rotation around side vector (as opposed to banking, which controls rotation around forward vector)
2010-09-17Bug fix: Boids that could only fly didn't take the ground object into ↵Janne Karhu
account leading to problems when flying near the ground. Reported by Mike Pan and Dalai Felinto by mail.
2010-09-03Fix for [#22147] Particle system, fight boids bug (dead particle)Janne Karhu
2010-08-15use more BLI math functions.Campbell Barton
2010-04-24sub_v3_v3v3 --> sub_v3_v3 (where possible)Campbell Barton
2010-04-21replace add_v3_v3v3() --> add_v3_v3() where possibleCampbell Barton
2010-03-21removed unused includes, except for physics and particle related filesCampbell Barton
2010-02-26use negate_v3 rather then multiplying a vector by -1.0 (no functional changes)Campbell Barton
2010-02-12correct fsf addressCampbell Barton
2010-01-23Small fixes for particles.Janne Karhu
* Particle collision with size was broken since raytrace optimizations by jaguarandi, now the collision code falls back to old slower method when the collision ray has a radius. * Single goal/avoid object now works for boids. * Some tiny improvements on collision avoidance for boids.
2009-12-30Fix for [#20430] Boids options for Flying and climbing do not workJanne Karhu
* Boids didn't yet use global gravity
2009-11-10Math LibBrecht Van Lommel
* Convert all code to use new functions. * Branch maintainers may want to skip this commit, and run this conversion script instead, if they use a lot of math functions in new code: http://www.pasteall.org/9052/python