Have you ever wanted to simulate a two-dimensional PDE or integro-differential equation on the GPU? Do you envy the reaction diffusion simulators of pnmeila, Felix Woitzel, Robin Houston, and Inear? Have you walked through the WebGL fundamentals tutorials, only to be frustrated by how much effort was needed to wrest control of indivdual pixels? If so, you may be interested in this code.
The OpenGL library is verbose, requiring hundreds of lines of code to get started with PDE simulation on the GPU. While there are examples of using WebGL for GPGPU code (1 2 3 4 5), most of these examples
- Do not demonstrate tight integration of GPGPU computation and visualization
- Are incomplete
- Crash on my machine
This repository is a record of my efforts to learn how to implement GPGPU code in WebGL for simulating neural field equations. The objectives, in descending order
- Provide version control for my own use
- Develop WebGL neural field simulations
- Develop an API for simplifying WebGL PDE simulation
- Develop an API to simplify WebGL
Aims (3) and (4) are redundant to existing projects. In my case, code re-use and debugging other's libraries on my system is more difficult than re-implementing routines. One must learn the details of WebGL code in order to effectively use and debug such libraries. The same is true if you use the code here. These examples are best used as references from which to code your own implementation.