Jump to content

  • Log In with Google      Sign In   
  • Create Account

Aaru's Journal

2D Cellular Automation - Water Simulation Source Code

Posted by , 06 April 2013 - - - - - - · 1,909 views
2D, Cellular Automation, 2D Water and 4 more...
2D Cellular Automation - Water Simulation Source Code I've been getting a lot of people asking for my source code, and how I went about implementing it.
I decided to upload my code to help out everyone who is interested in implementing this stuff in thier own projects/games.

My code is based off of this tutorial:
http://w-shadow.com/blog/2009/09/01/simple-fluid-simulation/
Which is implemented in java.

I took this approach and implemented it into C++ and SDL, with SDL_gfx to draw the primatives etc.
The gfx headers are included in the folder.
So all you need to do is create a new project put all of those files in it, and link SDL.lib and SDL_main.lib/ set up your SDL directories.
You should be good to go at that point.

Should you be unfamiliar with SDL, Here is a great place to help you get the project working:
http://www.lazyfoo.net/SDL_tutorials/lesson01/index.php

I hope my code help's! Posted Image

Attached Files




First Entry - 2D Cellular Automation

Posted by , 20 November 2012 - - - - - - · 770 views
sdl, c++, Cellular Automation, 2D
First Entry - 2D Cellular Automation I figured I would start off my very first entry with my latest project. I have been trying out a technique for simulating water in 2D.

Here are my results:


I've already finished integrating the water into my "yet to be mentioned" game that I'm working on. It works flawlessly and will be the topic for my next journal entry!





My Picture

Random Album Image

Mac10

December 2016 »

S M T W T F S
    12 3
45678910
11121314151617
18192021222324
25262728293031

Search My Journal

Latest Visitors