Blender  V2.93
DNA_particle_defaults.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #pragma once
22 
23 /* Struct members on own line. */
24 /* clang-format off */
25 
26 /* -------------------------------------------------------------------- */
30 #define _DNA_DEFAULT_ParticleSettings \
31  { \
32  .type = PART_EMITTER, \
33  .distr = PART_DISTR_JIT, \
34  .draw_as = PART_DRAW_REND, \
35  .ren_as = PART_DRAW_HALO, \
36  .bb_uv_split = 1, \
37  .flag = PART_EDISTR | PART_TRAND | PART_HIDE_ADVANCED_HAIR, \
38  \
39  .sta = 1.0f, \
40  .end = 200.0f, \
41  .lifetime = 50.0f, \
42  .jitfac = 1.0f, \
43  .totpart = 1000, \
44  .grid_res = 10, \
45  .timetweak = 1.0f, \
46  .courant_target = 0.2f, \
47  \
48  .integrator = PART_INT_MIDPOINT, \
49  .phystype = PART_PHYS_NEWTON, \
50  .hair_step = 5, \
51  .keys_step = 5, \
52  .draw_step = 2, \
53  .ren_step = 3, \
54  .adapt_angle = 5, \
55  .adapt_pix = 3, \
56  .kink_axis = 2, \
57  .kink_amp_clump = 1.0f, \
58  .kink_extra_steps = 4, \
59  .clump_noise_size = 1.0f, \
60  .reactevent = PART_EVENT_DEATH, \
61  .disp = 100, \
62  .from = PART_FROM_FACE, \
63  \
64  .normfac = 1.0f, \
65  \
66  .mass = 1.0f, \
67  .size = 0.05f, \
68  .childsize = 1.0f, \
69  \
70  .rotmode = PART_ROT_VEL, \
71  .avemode = PART_AVE_VELOCITY, \
72  \
73  .child_nbr = 10, \
74  .ren_child_nbr = 100, \
75  .childrad = 0.2f, \
76  .childflat = 0.0f, \
77  .clumppow = 0.0f, \
78  .kink_amp = 0.2f, \
79  .kink_freq = 2.0f, \
80  \
81  .rough1_size = 1.0f, \
82  .rough2_size = 1.0f, \
83  .rough_end_shape = 1.0f, \
84  \
85  .clength = 1.0f, \
86  .clength_thres = 0.0f, \
87  \
88  .draw = 0, \
89  .draw_line = {0.5f,}, \
90  .path_start = 0.0f, \
91  .path_end = 1.0f, \
92  \
93  .bb_size = {1.0f, 1.0f}, \
94  \
95  .keyed_loops = 1, \
96  \
97  .color_vec_max = 1.0f, \
98  .draw_col = PART_DRAW_COL_MAT, \
99  \
100  .omat = 1, \
101  .use_modifier_stack = false, \
102  .draw_size = 0.1f, \
103  \
104  .shape_flag = PART_SHAPE_CLOSE_TIP, \
105  .shape = 0.0f, \
106  .rad_root = 1.0f, \
107  .rad_tip = 0.0f, \
108  .rad_scale = 0.01f, \
109  }
110 
113 /* clang-format on */