|
Blender V5.3
|
#include "MEM_guardedalloc.h"#include <algorithm>#include <cmath>#include <cstdio>#include "BLI_assert.hh"#include "BLI_fileops.hh"#include "BLI_kdtree.hh"#include "BLI_listbase.hh"#include "BLI_math_color_c.hh"#include "BLI_math_geom_c.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_mutex.hh"#include "BLI_path_utils.hh"#include "BLI_string.hh"#include "BLI_string_utf8.hh"#include "BLI_string_utils.hh"#include "BLI_task_c.hh"#include "BLI_threads.hh"#include "BLI_utildefines.hh"#include "BLT_translation.hh"#include "DNA_dynamicpaint_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_modifier_types.h"#include "DNA_object_force_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_texture_types.h"#include "BKE_armature.hh"#include "BKE_bvhutils.hh"#include "BKE_collision.h"#include "BKE_colorband.hh"#include "BKE_constraint.h"#include "BKE_customdata.hh"#include "BKE_deform.hh"#include "BKE_dynamicpaint.h"#include "BKE_effect.h"#include "BKE_image.hh"#include "BKE_image_format.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_material.hh"#include "BKE_mesh.hh"#include "BKE_mesh_mapping.hh"#include "BKE_mesh_runtime.hh"#include "BKE_modifier.hh"#include "BKE_object.hh"#include "BKE_particle.h"#include "BKE_pointcache.h"#include "BKE_scene.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "RE_texture.h"#include "atomic_ops.h"#include "CLG_log.h"Go to the source code of this file.
Classes | |
| struct | blender::DynamicPaintRuntime |
| struct | blender::Bounds2D |
| struct | blender::Bounds3D |
| struct | blender::DynamicPaintVolumeGrid |
| struct | blender::Vec3f |
| struct | blender::BakeAdjPoint |
| struct | blender::PaintBakeNormal |
| struct | blender::PaintBakeData |
| struct | blender::PaintUVPoint |
| struct | blender::ImgSeqFormatData |
| struct | blender::PaintAdjData |
| struct | blender::DynamicPaintSetInitColorData |
| struct | blender::DynamicPaintModifierApplyData |
| struct | blender::DynamicPaintCreateUVSurfaceData |
| struct | blender::DynamicPaintFindIslandBorderData |
| struct | blender::DynamicPaintOutputSurfaceImageData |
| struct | blender::DynamicPaintBrushVelocityData |
| struct | blender::DynamicPaintPaintData |
| struct | blender::DynamicPaintEffectData |
| struct | blender::DynamicPaintDissolveDryData |
| struct | blender::DynamicPaintGenerateBakeData |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | SUBFRAME_RECURSION OBJECT_MODIFIER_UPDATE_SUBFRAME_RECURSION_DEFAULT |
| #define | BRUSH_USES_VELOCITY (1 << 0) |
| #define | HIT_VOLUME 1 |
| #define | HIT_PROXIMITY 2 |
| #define | NOT_FOUND -1 |
| #define | ON_MESH_EDGE -2 |
| #define | OUT_OF_TEXTURE -3 |
| #define | EFF_MOVEMENT_PER_FRAME 0.05f |
| #define | WAVE_TIME_FAC (1.0f / 24.0f) |
| #define | CANVAS_REL_SIZE 5.0f |
| #define | MIN_WETNESS 0.001f |
| #define | MAX_WETNESS 5.0f |
| #define | ADJ_ON_MESH_EDGE (1 << 0) |
| #define | ADJ_BORDER_PIXEL (1 << 1) |
Variables | |
| static CLG_LogRef | blender::LOG = {"object.dynamicpaint"} |
| static const float | blender::gaussianFactors [5] |
| static const float | blender::gaussianTotal = 3.309425f |
| static int | blender::neighX [8] = {1, 1, 0, -1, -1, -1, 0, 1} |
| static int | blender::neighY [8] = {0, 1, 1, 1, 0, -1, -1, -1} |
| static int | blender::neighStraightX [8] = {1, 0, -1, 0, 1, -1, -1, 1} |
| static int | blender::neighStraightY [8] = {0, 1, 0, -1, 1, 1, -1, -1} |
Image Sequence / UV Image Surface Calls | |
| #define | JITTER_SAMPLES |
| static void | blender::dynamic_paint_create_uv_surface_direct_cb (void *__restrict userdata, const int ty, const TaskParallelTLS *__restrict) |
| static void | blender::dynamic_paint_create_uv_surface_neighbor_cb (void *__restrict userdata, const int ty, const TaskParallelTLS *__restrict) |
| static float | blender::dist_squared_to_corner_tris_uv_edges (const Span< int3 > corner_tris, const Span< float2 > uv_map, int tri_index, const float point[2]) |
| static void | blender::dynamic_paint_find_island_border (const DynamicPaintCreateUVSurfaceData *data, DynamicPaintFindIslandBorderData *bdata, int tri_index, const float pixel[2], int in_edge, int depth) |
| static int | blender::dynamic_paint_find_neighbor_pixel (const DynamicPaintCreateUVSurfaceData *data, const MeshElemMap *vert_to_tri_map, const int w, const int h, const int px, const int py, const int n_index) |
| static bool | blender::dynamicPaint_pointHasNeighbor (PaintAdjData *ed, int index, int neighbor) |
| static bool | blender::dynamicPaint_symmetrizeAdjData (PaintAdjData *ed, int active_points) |
| int | blender::dynamicPaint_createUVSurface (struct Scene *scene, struct DynamicPaintSurface *surface, float *progress, bool *do_update) |
| static void | blender::dynamic_paint_output_surface_image_paint_cb (void *__restrict userdata, const int index, const TaskParallelTLS *__restrict) |
| static void | blender::dynamic_paint_output_surface_image_displace_cb (void *__restrict userdata, const int index, const TaskParallelTLS *__restrict) |
| static void | blender::dynamic_paint_output_surface_image_wave_cb (void *__restrict userdata, const int index, const TaskParallelTLS *__restrict) |
| static void | blender::dynamic_paint_output_surface_image_wetmap_cb (void *__restrict userdata, const int index, const TaskParallelTLS *__restrict) |
| void | blender::dynamicPaint_outputSurfaceImage (struct DynamicPaintSurface *surface, const char *filepath, short output_layer) |
| #define ADJ_BORDER_PIXEL (1 << 1) |
Definition at line 252 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_border_cb(), blender::dynamic_paint_effect_drip_cb(), blender::dynamic_paint_effect_shrink_cb(), blender::dynamic_paint_effect_spread_cb(), blender::dynamicPaint_createUVSurface(), blender::dynamicPaint_doSmudge(), and blender::dynamicPaint_symmetrizeAdjData().
| #define ADJ_ON_MESH_EDGE (1 << 0) |
Definition at line 251 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_wave_step_cb(), blender::dynamicPaint_createUVSurface(), and blender::dynamicPaint_initAdjacencyData().
| #define BRUSH_USES_VELOCITY (1 << 0) |
Definition at line 109 of file dynamicpaint.cc.
Referenced by blender::dynamicPaint_generateBakeData(), and blender::surface_getBrushFlags().
| #define CANVAS_REL_SIZE 5.0f |
Definition at line 121 of file dynamicpaint.cc.
Referenced by blender::dynamicPaint_doEffectStep(), blender::dynamicPaint_doWaveStep(), and blender::dynamicPaint_prepareEffectStep().
| #define EFF_MOVEMENT_PER_FRAME 0.05f |
Definition at line 118 of file dynamicpaint.cc.
Referenced by blender::dynamicPaint_doEffectStep(), and blender::dynamicPaint_prepareEffectStep().
| #define HIT_PROXIMITY 2 |
Definition at line 112 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_paint_mesh_cell_point_cb_ex().
| #define HIT_VOLUME 1 |
Definition at line 111 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_paint_mesh_cell_point_cb_ex().
| #define JITTER_SAMPLES |
Definition at line 2208 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_create_uv_surface_direct_cb(), and blender::dynamic_paint_create_uv_surface_neighbor_cb().
| #define MAX_WETNESS 5.0f |
Definition at line 124 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_effect_drip_cb().
| #define MIN_WETNESS 0.001f |
Definition at line 123 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_effect_spread_cb(), blender::dynamic_paint_surface_pre_step_cb(), blender::dynamicPaint_mixPaintColors(), and blender::value_dissolve().
| #define NOT_FOUND -1 |
Definition at line 114 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_find_island_border(), and blender::dynamic_paint_find_neighbor_pixel().
| #define ON_MESH_EDGE -2 |
Definition at line 115 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_find_island_border(), and blender::dynamicPaint_createUVSurface().
| #define OUT_OF_TEXTURE -3 |
Definition at line 116 of file dynamicpaint.cc.
Referenced by blender::dynamic_paint_find_island_border(), blender::dynamic_paint_find_neighbor_pixel(), and blender::dynamicPaint_createUVSurface().
| #define SUBFRAME_RECURSION OBJECT_MODIFIER_UPDATE_SUBFRAME_RECURSION_DEFAULT |
Definition at line 107 of file dynamicpaint.cc.
Referenced by blender::dynamicPaint_brushMeshCalculateVelocity(), blender::dynamicPaint_brushObjectCalculateVelocity(), and blender::dynamicPaint_doStep().
| #define WAVE_TIME_FAC (1.0f / 24.0f) |
Definition at line 120 of file dynamicpaint.cc.
Referenced by blender::dynamicPaint_doWaveStep().