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
diff options
context:
space:
mode:
authorAlex Fraser <alex@phatcore.com>2011-09-25 15:51:28 +0400
committerAlex Fraser <alex@phatcore.com>2011-09-25 15:51:28 +0400
commit558b646216feaa43abf44eb332d2449c68bf1b39 (patch)
treefd723cb9ceeef9bc715f08ab9ae62a8698f54a0d /source/blender/makesdna/DNA_particle_types.h
parent9931c9442e16867ac2117a60b5a41839df76a454 (diff)
Committing patch #27442: Adaptive time step for fluid particles. The number of
subframes can now be altered automatically while an SPH (fluid particle) simulation is running.
Diffstat (limited to 'source/blender/makesdna/DNA_particle_types.h')
-rw-r--r--source/blender/makesdna/DNA_particle_types.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_particle_types.h b/source/blender/makesdna/DNA_particle_types.h
index 69ee530c0b6..9fec5207dbb 100644
--- a/source/blender/makesdna/DNA_particle_types.h
+++ b/source/blender/makesdna/DNA_particle_types.h
@@ -179,10 +179,12 @@ typedef struct ParticleSettings {
float simplify_rate, simplify_transition;
float simplify_viewport;
- /* general values */
+ /* time and emission */
float sta, end, lifetime, randlife;
- float timetweak, jitfac, eff_hair, grid_rand;
+ float timetweak, courant_target;
+ float jitfac, eff_hair, grid_rand, ps_offset[1];
int totpart, userjit, grid_res, effector_amount;
+ short time_flag, time_pad[3];
/* initial velocity factors */
float normfac, obfac, randfac, partfac, tanfac, tanphase, reactfac;
@@ -288,6 +290,9 @@ typedef struct ParticleSystem{ /* note, make sure all (runtime) are NULL's in
struct ParticleDrawData *pdd;
float *frand; /* array of 1024 random floats for fast lookups */
+
+ float dt_frac; /* current time step, as a fraction of a frame */
+ float _pad; /* spare capacity */
}ParticleSystem;
/* part->type */
@@ -402,6 +407,9 @@ typedef struct ParticleSystem{ /* note, make sure all (runtime) are NULL's in
#define PART_SIMPLIFY_ENABLE 1
#define PART_SIMPLIFY_VIEWPORT 2
+/* part->time_flag */
+#define PART_TIME_AUTOSF 1 /* Automatic subframes */
+
/* part->bb_align */
#define PART_BB_X 0
#define PART_BB_Y 1