Skip to content

rubikonx9/ColorfulGameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colorful Game Of Life

This project is one of my first attempts at OpenGL and GLSL.

Idea

The idea was to create a colorful version of Conway's Game of Life.

Upon launching the application, user must first prepare the board. To do this, select a layer by pressing 1-4 (corressponding to red, green, blue, and aplha channels). Then, with a mouse, colour the desired cells (pixels).

Colouring the board

When done, press space to start the game, and observe as the life evolves. All layers evolve independently from each other.

Live

How it's done

The main purpose of this project was to learn some basic GLSL.

Firstly, a texture buffer object is created. It's used to transfer the data from main memory to the GPU. It's actually used as the texture, and each change (player's colouring the board or simulation step) is first reflected in main memory, then it's transferred to the GPU, and finally it's drawn using the shaders.

All in all, this doesn't seem to be a good method in terms of performance and usability.

Dependencies

  • boost
  • GL3W
  • GLFW 2

Before issuing make, make sure the paths to libraries in Makefile are correct.

Platforms

As of now, this project was only tested in MinGW.

For other systems, probably small changes would be necessary, especially concerning the build process.

Support

This project is not developed any more.

Licensing

GNU GPL v2.0.