🌟 Frogs in a Pond🐸🌿: Made ENTIRELY in Geometry Nodes!!!
Very Long Caatif
Geometry Nodes setup for Blender 5.2 by Alex Martinelli.
5.0· 20 Gumroad ratings
Free / pay what you want
Get it on GumroadSold by Alex Martinelli. Check current pricing, license and Blender compatibility on Gumroad before purchasing.
A Blender file with Geometry-Nodes (GN) modifiers to run and visualize Reaction-Diffusion (RD) simulation. Requires Blender >=5.2. Have questions or want to share your results? Reach out on Twitter/X or Threads. This setup allows simulation of Reaction-Diffusion: a mathematical model for interacting substances, that can be used for abstract animations or to simulate real physical phenomena like stripes and animals patterns formation, or bacteria interaction and growth. Small changes in the model parameters can lead to a wide variety of complex organic patterns. Summary of the Setup In the Blender file you can find a reaction_diffusion_obj with two modifiers slots: a Run Sim for the base simulation and a Render for rendering the results. You can start playing with these and get results right away! Notice that some of the functionalities here described are available in the premium version only, as highlighted in the dedicated section below. The simulation includes two core implementations: a "Basic Sim" and the "Gray-Scott Sim". The first is a general simplistic implementation of the RD model, relying on a single substance and basic image processing logic. The second implements the Gray-Scott model, where two different substances interact with each other (see theory here). Both implementation have their own modifier panel with input parameters and presents. The "custom preset" allows to specify the parameters manually, while other presents provide already tested combinations that give interesting results. Additionally to the simulation type, a simulation can be run either on the surface of a mesh (default setup) or as a 3D version (via the Run 3D version toggle. The base mesh can be selected via the Base Mesh panel, which allows to select some default meshes or specify your custom object. The 3D version relies on "Volume Grids", so conversion are made between original mesh and final results. The Num Voxels param controls the resolution of the grid used for the 3D simulation. While the Run Sim will return the raw results of the simulation, we also provide some utilities to visualise and render the results. RD 2D Renderer gives the control to use the sim results for plane displacement and shader control. RD 3D Renderer allows instead to render results as volume or full 3D mesh, use this option if you are running the 3D version of the simulation. The sim resolution depends on the resolution of the target mesh or volume. A higher face or voxel count gives more details but requires more computation. Sim Parameters For the Reaction Diffusion node-tree, we exposed the most relevant parameters to play with, but you can simply edit manually the values of the core simulation group (e.g. reaction_diffusion_sim) to explore the full range of results. Sim Substeps controls how many steps are run in a frame. The higher, and the faster the simulation will run, while requiring more time to be computed. For reaction_diffusion_sim we suggest the following ranges: Mul 1 Value: from 1.1 to 1.9 Blur 2 Iter : from 2 to 10. Higher values allows for faster diffusion, but require more computation Mul 2 Value: from 2.9 to 3.4 Results vary drastically with even minor parameter adjustments (e.g. +/-0.01). Many configurations may not produce compelling results, so experimentation through trial and error is essential. Play on low-resolution during such tests, to allow for faster iterations A big factor of RD sim is the substance(s) initialization. While we provide a basic menu for it, much more control and freedom can be achieved by manually modifying the nodes and values inside the node-tree. You can also control the substance initialization and parameters via texture, images, weight-paint and attributes by editing directly the content of the Reaction Diffusion node-tree. In the premium version we provide a variety of ready examples that you can tweak and connect as needed. Brush You can also find a brush object that can be animated or moved in real time to influence the substances of the simulation. Currently, it act as an eraser. When close enough to a point it will zero-out the substances. You can scale it in real-time to affect the area of influence. Extra content for Premium version In the premium version you will find the Gray-Scott model implementation and additional functionalities like simulation presets, option to run and render a 3D version of the simulation, texture/image/weight conditioning examples, plus a richer set of materials. Gray-Scott Model The Gray-Scott model is a more complex and rich implementation of the reaction-diffusion phenomena, (see theory here). We provide multiple presets for this implementation. You can select them from the Gray-Scott Preset menu. When using this model, we suggest to tick the Use substance_b option in the Render modifier. Notice this formulation can also evolve more slowly compared to the basic one, so more substeps (>4) might be required to see interesting results. 3D To run the RD sim in 3-dimensions, you simply need to enable the Run 3D version toggle, and use the RD 3D Renderer. The only dedicated parameter is Num Voxels, which controls the resolution of the volume grid used. Notice that 3D sim is much more computationally expensive, and can be quite slow to run high-resolution sim, depending on the used hardware. You can always bake a simulation via the "Bake" node right before the "Group Output" in the main sim node-tree. You can then render results as volume or full 3D mesh (where we use the "Volume to Mesh" utility). Tweaking of the associated materials might be necessary depending on the visual results you want to obtain. The "3D Gradient" init substance type is a good flexible option to start playing with the 3D formulation. Input mesh and Conditioning You can run the 2D version on an arbitrary mesh by selecting the Obj option from the Mesh Menu input and passing your target object. Remember that the resolution of the sim depends on the resolution of the target mesh. You can also test some of the conditioning examples present in the Reaction Diffusion node-tree by selecting from the various menus, or by manually connecting to the preferred input socket. Tweaking of the range of values is fundamental when trying on different input parameters. This is different from the substance initialization, as the conditioning affects the main sim parameters all along the run. Technical Considerations Laplacian Approximation The diffusion process relies on the Laplacian operator, which can be obtained via custom convolution kernels. Here we simply used the Blur Attribute node and approximate the Laplacian in a dedicated node-tree (laplacian_closures). 2D and 3D versions differ only by the multiplier factor (that account for number of neighbors). The basic sim uses an even stronger approximation (simple_sim_closures), taking the difference between two scaled blur runs of the original value. That's where the "mul1, blur2 and mul2" params of the sim come from. There is likely a formulation that aligns these different approaches, but for now we prefer to keep them separate as they both provide interesting results and approaches. Mesh Topology and Blur For the 2D sim, given that we rely on attributes at point level, the mesh topology will strongly influence simulation results. Think for example how differently the Blur Attribute node works when applied on triangular VS quadrilateral faces. We provide a "triangulate" option for some of the template input meshes, that increases the number of neighbors of a point from 4 to 8. 3D Sim To run the simulation in 3D we leverage "Volume Grid" and defined equivalent operations from the 2D run in terms of grid operators. While such equivalence is quite solid, the 3D setup poses even harder requirements on parameters config for interesting results. We will keep working on exploring such area, and welcome feedback, suggestions or discoveries of any kind. Bundles We made heavy use of "Bundles" and "Closures" to allow for a more modular setup, that allows to have single node-groups for all the possible sim variations (i.e. basic-sim VS Gray-Scott, 2D vs 3D). This might make the overall node-tree a bit harder to read it first, but it is much cleaner to use and modify. Changelog v2 use Blender 5.0 "Volume Grids" for 3D version, remove all old hacky ways to obtain 3D sim use closures for better modularity of sim utils (e.g. between 3D/2D, basic/gray-scott) use bundles to pass multiple params in a cleaner way (for example for greay-scott presets). Had to remove geometry from bundles cause it breaks the caching in the node-tree, and gets recomputed every time expose more parameters through node-tree, to allow better transparent control replace pow with b*b more presents for both sim, use bundles to store and propagate them refactored and improved renderers, with more control and error messages
Very Long Caatif
Rei
Amr Tahtawi