Posted March 30, 2021 by zaimatsu from GasC
#game of life #simulation #conway #compute shaders #unity
Since I didn't work much with shaders, I thought that it will be nice challenge for me to learn about specific type of them - Compute Shaders.
Thanks to John Convay who in 1970 invented Cellular Automata known as Conway's Game of Life I had an idea for another project - to make Game of Life that works on GPU.
I decided to run the game's simulation using entirely Compute Shaders. There were some challenges, but surprisingly, it wasn't related to Compute Shaders themselves. They were pretty easy to start with, thanks to the Internet:
Rules of the Game of Life:
If you are interested in much more sophisticated approach then this talk is a must-watch:
The Conway's rules are not the only ones. If you want to explore further this wonderful universe of cellular automatas I must direct you to this wiki:
https://conwaylife.com/wiki/Main_Page
and this application:
http://golly.sourceforge.net/
Warning: at the time of writing this project the compute shaders are not supported by default in web browsers. I would recommend downloading the standalone version of zlevels.
Link to my github page:
https://github.com/Zaimatsu/zlevels
If you like my work leave a comment and share it with your friends!
References: