You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/modifiers.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,47 @@ mesh.apply(modifier); // Apply the modifier to the mesh
169
169
170
170
By understanding the basic principles and parameters of the Bend Modifier, you can effectively use it to create a wide range of 3D shapes and effects.
171
171
172
+
## Noise Modifier
173
+
174
+
**Purpose:**
175
+
176
+
The Noise Modifier is a versatile tool for adding random variations to the vertex positions of a 3D mesh. It can be used to create a variety of effects, such as adding wrinkles to a surface, creating organic shapes, or simulating natural phenomena like turbulence or wind.
177
+
178
+
**How it Works:**
179
+
180
+
1.**Random Noise Generation:**
181
+
* A random number generator is used to create a random value for each vertex.
182
+
* The range of the random values is determined by the `minimum` and `maximum` parameters.
183
+
2.**Vertex Displacement:**
184
+
* The random value is multiplied by the vertex's normal vector.
185
+
* The resulting vector is added to the vertex's position, effectively displacing the vertex along its normal direction.
186
+
3.**Seed Value:**
187
+
* The `seed` parameter allows you to control the randomness of the noise. By setting the same seed value, you can generate the same noise pattern multiple times.
188
+
189
+
**Using the Noise Modifier:**
190
+
191
+
1.**Create a Mesh:** Start with a basic 3D mesh, such as a plane, cube, or sphere.
192
+
2.**Apply the Modifier:** Create an instance of the `NoiseModifier` class, specifying the desired `minimum`, `maximum`, and `seed` values.
193
+
3.**Modify the Mesh:** Apply the `modify` method of the `NoiseModifier` to the mesh.
***Noise Intensity:** The ```minimum``` and ```maximum``` parameters control the intensity of the noise. Higher values will result in more pronounced deformations.
207
+
***Seed Value:** The ```seed``` value allows you to control the randomness of the noise. By setting the same seed value, you can generate the same noise pattern multiple times.
208
+
***Mesh Topology:** The effectiveness of the Noise Modifier can be influenced by the mesh topology. For complex meshes, additional considerations may be necessary.
209
+
***Combining with Other Modifiers:** The Noise Modifier can be combined with other modifiers to create more complex deformations.
210
+
211
+
By understanding the basic principles and parameters of the Noise Modifier, you can effectively use it to add organic and natural-looking variations to your 3D models.
0 commit comments