Git Product home page Git Product logo

regl-smooth-life's Introduction

regl-smooth-life

SmoothLife on the GPU, via regl

Leaving this repo for reference, but see updated version at: http://rreusser.github.io/demos/smooth-life/

A quick implementation of SmoothLife on the GPU using regl. GPGPU has never been so easy. As far as WebGL goes, this is little more than a trivial modification of Mikola's Game of Life example.

It's pretty inefficient since it's brute-forcing the convolution. It's unrolling the loop as intelligently as possible (I suspect the compiler is probably good enough to remove all precalculatable floating point multiplications and loop branches anyway), but I really need to figure out GPU FFT. It might actually be faster to do this in plain js, but it was a great REGL learning experience (though admittedly most of the time was just spent tweaking the parameters trying to get anything interesting. I guess it was mostly just fun is what I'm trying to say).

See demo at: http://rreusser.github.io/regl-smooth-life

But for a better implementation, see: smoothnacl from the PNaCl Demos site.

References

Rafler, Stephan (2011). "Generalization of Conway's "Game of Life" to a continuous domain - SmoothLife". arXiv:1111.1567v2.

License

© 2016 Ricky Reusser. MIT License.

regl-smooth-life's People

Contributors

rreusser avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.