Get the latest tech news

Mitosis in the Gray-Scott model: writing shader-based chemical simulations


Use the parallel processing power of your GPU to simulate a simple chemical system that exhibits emergent behaviors

In order to run the simulation, we will need to store the current state of the grid (the concentration of each chemical species for each cell) at a location we are able to read during a later iteration. Experiment with different values for the speed constants k2 and k3(in the “Common” tab) and see how adding some catalyst (green species) with your mouse changes the patterns. You may have heard of Conway’s game of life in which a grid is repeatedly updated according to simple local rules in a binary way (the cells are either ON or OFF).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Shader

Shader

Photo of Scott model

Scott model

Photo of Mitosis

Mitosis

Related news:

News photo

Former Snap design lead debuts Shader, an AR creation tool that uses AI to generate custom effects