Commit 7394777e authored by amandaghassaei's avatar amandaghassaei

eod

parent 983c1d00
# ReactionDiffusionShader
WebGL Shader for a Gray-Scott reaction diffusion system
<img src="https://raw.githubusercontent.com/amandaghassaei/ReactionDiffusionShader/master/img.png"/>
Live demo at <a href="http://git.amandaghassaei.com/ReactionDiffusionShader/" target="_blank">git.amandaghassaei.com/ReactionDiffusionShader/</a>
This is a simulation of a <a href="https://en.wikipedia.org/wiki/Reaction%E2%80%93diffusion_system" target="_blank">Gray-Scott reaction-diffusion system</a>, running in a GPU shader.
The parameters for this model are F = 0.0545 and K = 0.062. With these parameters the system forms a mitosis-like pattern, where small cells divide and spread across space.<br/><br/>
Reaction diffusion patterns are interesting, but they can be difficult to control in meaningful ways for design purposes.
In this project I added an underlying vector field that controls the orientation of diffusion across the system to produce directed, global patterns.
Click on the screen to change the location of the sinks in the vector field.<br/>
<br/>
If this simulation is not performing well on your computer, resize your browser's window to make the simulation smaller.<br/><br/>
The math used to created oriented diffusion is this system is discussed in the papers <a href="https://www.sci.utah.edu/publications/SCITechReports/UUSCI-2003-002.pdf" target="_blank">Display of Vector Fields Using a Reaction-Diffusion Model</a>
and <a href="http://www.cs.cmu.edu/~jkh/462_s07/reaction_diffusion.pdf" target="_blank">Reaction-Diffusion Textures</a>.<br/><br/>
More info about ways to control these systems can also be found on <a href="http://www.karlsims.com/rd.html" target="_blank">Karl Sims' Webpage</a>.<br/><br/>
Information about programming a reaction diffusion system on the GPU is here: <a href="https://bl.ocks.org/robinhouston/ed597847175cf692ecce" target="_blank">A reaction-diffusion simulation using WebGL</a>.
<br/><br/>
By <a href="http://www.amandaghassaei.com/" target="_blank">Amanda Ghassaei</a>, code on <a href="https://github.com/amandaghassaei/ReactionDiffusionShader" target="_blank">Github</a>.
......@@ -88,8 +88,12 @@
<div class="modal-content">
<div class="modal-body">
<b>Fluid Simulation Shader</b><br/><br/>
<br/><br/>
By <a href="http://www.amandaghassaei.com/" target="_blank">Amanda Ghassaei</a>, code on <a href="https://github.com/amandaghassaei/ReactionDiffusionShader" target="_blank">Github</a>.
I used the following sources to write this simulation:<br/><br/>
<a href="https://pdfs.semanticscholar.org/84b8/c7b7eecf90ebd9d54a51544ca0f8ff93c137.pdf" target="_blank">Real-time ink simulation using a grid-particle method</a><br/>
<a href="http://http.developer.nvidia.com/GPUGems/gpugems_ch38.html" target="_blank">Fast Fluid Dynamics Simulation on the GPU</a> - a very well written tutorial about programming the Navier-Stokes equations on a GPU.<br/>
<a href="http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/ns.pdf" target="_blank">Stable Fluids</a> - a paper about numerical methods for evaluating Navier-Stokes on a discrete grid.<br/>
<br/>
By <a href="http://www.amandaghassaei.com/" target="_blank">Amanda Ghassaei</a>, code on <a href="https://github.com/amandaghassaei/FluidSimulation" target="_blank">Github</a>.
<br/><br/>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment