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:
authorMiika Hamalainen <blender@miikah.org>2011-08-03 22:31:48 +0400
committerMiika Hamalainen <blender@miikah.org>2011-08-03 22:31:48 +0400
commit8394f65d4a6019ae623fe32268a769463a189b9e (patch)
tree4338758f689e63d7fdd4752685e16eae42d1401e /source/blender/makesdna/DNA_dynamicpaint_types.h
parent35720a4c075c2a0782af173519097a094b5c0165 (diff)
Dynamic Paint:
* Object velocity can now be used to determine brush influence and color. * Brushes can now be set to "smudge" existing paint. * Added new operators to easily add and remove surface output mesh data layers from Dynamic Paint ui. * Fixed drip effect algorithm to work properly on forces pointing towards surface. * Adjusted drip effect speed. * Drip effect can now use canvas velocity and acceleration to influence drip direction. * Fixed texture mapping for material enabled brushes. * "Object Center" type brushes can now use "material color" as well. * Improved surface partitioning grid generation algorithm. * Fixed possible invalid brush collision detection when OpenMP enabled. * Fixed incorrect random sized particle displace/wave influence. * Fixed "Object Center" brush color ramp falloff. * Fixed invalid zero alpha sampling when rendering vertex colors. * Lots of smaller tweaking.
Diffstat (limited to 'source/blender/makesdna/DNA_dynamicpaint_types.h')
-rw-r--r--source/blender/makesdna/DNA_dynamicpaint_types.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_dynamicpaint_types.h b/source/blender/makesdna/DNA_dynamicpaint_types.h
index d2c6e91904b..7793a0b34d8 100644
--- a/source/blender/makesdna/DNA_dynamicpaint_types.h
+++ b/source/blender/makesdna/DNA_dynamicpaint_types.h
@@ -85,6 +85,7 @@ typedef struct DynamicPaintSurface {
float disp_depth;
float spread_speed, shrink_speed;
+ float drip_vel, drip_acc;
/* wave settings */
float wave_damping, wave_speed, wave_timescale, wave_spring;
@@ -129,6 +130,13 @@ typedef struct DynamicPaintCanvasSettings {
#define MOD_DPAINT_INVERSE_PROX (1<<6) /* inverse proximity painting */
#define MOD_DPAINT_ACCEPT_NONCLOSED (1<<7) /* allows volume brushes to work with non-closed volumes */
+#define MOD_DPAINT_DO_SMUDGE (1<<8) /* brush smudges existing paint */
+#define MOD_DPAINT_VELOCITY_ALPHA (1<<9) /* multiply brush influence by velocity */
+#define MOD_DPAINT_VELOCITY_COLOR (1<<10) /* replace brush color by velocity color ramp */
+#define MOD_DPAINT_VELOCITY_DEPTH (1<<11) /* multiply brush intersection depth by velocity */
+
+#define MOD_DPAINT_USES_VELOCITY ((1<<8)|(1<<9)|(1<<10)|(1<<11))
+
/* collision type */
#define MOD_DPAINT_COL_VOLUME 0 /* paint with mesh volume */
#define MOD_DPAINT_COL_DIST 1 /* paint using distance to mesh surface */
@@ -151,7 +159,7 @@ typedef struct DynamicPaintCanvasSettings {
#define MOD_DPAINT_RAY_ZPLUS 1
-/* Painter settings */
+/* Brush settings */
typedef struct DynamicPaintBrushSettings {
struct DynamicPaintModifierData *pmd; /* for fast RNA access */
struct DerivedMesh *dm;
@@ -168,8 +176,9 @@ typedef struct DynamicPaintBrushSettings {
float paint_distance;
float displace_distance, prox_displace_strength;
- // Falloff curves
+ /* color ramps */
struct ColorBand *paint_ramp; /* Proximity paint falloff */
+ struct ColorBand *vel_ramp; /* Velocity paint ramp */
short proximity_falloff;
short brush_settings_context; /* ui settings display */
@@ -177,7 +186,8 @@ typedef struct DynamicPaintBrushSettings {
short ray_dir;
float wave_factor;
- float pad_f;
+ float max_velocity, smudge_strength;
+ float pad;
} DynamicPaintBrushSettings;
#endif