Simulation noise: Difference between revisions

Content deleted Content added
No edit summary
Line 43:
</math>
 
Afterwards we calculate a scalar value p for that point in the space using a 3D perlin or simplex noise function. Now we create a vector field '''FV''' = p'''n''' pointing outside of the surface. The curl of this vector field gives the direction in every point in the space where the particles should move.
 
<math>SDN = (\frac{\partial FzVz}{\partial y} - \frac{\partial FyVy}{\partial z} ,\frac{\partial FxVx}{\partial z} - \frac{\partial FzVz}{\partial x},\frac{\partial FyVy}{\partial x} - \frac{\partial FxVx}{\partial y})</math>
 
By construction this vector SDN will point in a tangent direction to a isosurface at the level of the signed distance to the original surface and can be used to confine the movements of the particles to stay in that surface.