diff options
author | Miika Hamalainen <blender@miikah.org> | 2011-10-14 00:00:22 +0400 |
---|---|---|
committer | Miika Hamalainen <blender@miikah.org> | 2011-10-14 00:00:22 +0400 |
commit | 8bf78d7f5676520bf6f4241afb88fba506e342f4 (patch) | |
tree | 4b488a48bd9e5726111f75b7383874695f634ad1 /source/blender/blenkernel/BKE_dynamicpaint.h | |
parent | 28f77d398e48a8a3d5c2732400c2838b233c27b9 (diff) |
Dynamic Paint:
* Fix: Wave "timescale" also changed simulation behavior. Now different timescale values will lead to nearly identical results, just slower or faster.
* Added "Displace Factor" setting for vertex displace surfaces. You can use it to adjust final displace strength or use negative values to paint bumps.
* Added clamp/map value to wave image sequence output settings.
* RNA description tweaking.
* General code tweaking.
Diffstat (limited to 'source/blender/blenkernel/BKE_dynamicpaint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_dynamicpaint.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_dynamicpaint.h b/source/blender/blenkernel/BKE_dynamicpaint.h index 26ad3c294eb..fe45c6580fe 100644 --- a/source/blender/blenkernel/BKE_dynamicpaint.h +++ b/source/blender/blenkernel/BKE_dynamicpaint.h @@ -70,6 +70,7 @@ int dynamicPaint_resetSurface(struct DynamicPaintSurface *surface); void dynamicPaint_freeSurface(struct DynamicPaintSurface *surface); void dynamicPaint_freeCanvas(struct DynamicPaintModifierData *pmd); void dynamicPaint_freeBrush(struct DynamicPaintModifierData *pmd); +void dynamicPaint_freeSurfaceData(struct DynamicPaintSurface *surface); void dynamicPaint_cacheUpdateFrames(struct DynamicPaintSurface *surface); int dynamicPaint_surfaceHasColorPreview(struct DynamicPaintSurface *surface); @@ -79,6 +80,20 @@ void dynamicPaintSurface_setUniqueName(struct DynamicPaintSurface *surface, char void dynamicPaint_resetPreview(struct DynamicPaintCanvasSettings *canvas); struct DynamicPaintSurface *get_activeSurface(struct DynamicPaintCanvasSettings *canvas); -int dynamicPaint_initBake(struct bContext *C, struct wmOperator *op); +/* image sequence baking */ +int dynamicPaint_createUVSurface(struct DynamicPaintSurface *surface); +int dynamicPaint_calculateFrame(struct DynamicPaintSurface *surface, struct Scene *scene, struct Object *cObject, int frame); +void dynamicPaint_outputImage(struct DynamicPaintSurface *surface, char* filename, short format, short type); + + +/* surface -> image file flags */ +#define DPOUTPUT_JPEG 0 +#define DPOUTPUT_PNG 1 +#define DPOUTPUT_OPENEXR 2 + +#define DPOUTPUT_PAINT 0 +#define DPOUTPUT_WET 1 +#define DPOUTPUT_DISPLACE 2 +#define DPOUTPUT_WAVES 3 #endif /* BKE_DYNAMIC_PAINT_H_ */ |