Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Realtime River Simulation

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,478
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 11, 2010

This is my end of year project for physics and animation in Interactive Entertainment Technology Msc. Trinity College Dublin.

All water calculations occur on the GPU. Grid size is 1024x1024 and framerates when not recording are around 20fps on my C2D @ 3.15Ghz and an ATi 2900HD.

Apologies about the length of the video, I start rambling around having fun half way through and forget that I'm supposed to be showing this off. As you can see the terrain is completely dynamic along with the water. Erosion eats away at it and sedimentation occurs at slower speeds. The user also has the ability to raise, lower and smooth terrain.

The aim of this was not to create an absolutely water-tight (sorry for the pun) simulation but to create something that looked real and was still quick to compute. The vast majority of frame time taken up here is in rendering the scene. The actual water calculations took just 2-3ms per frame max which ends up being around 5-10% of total frame time.

Water is rendered by volumetric rendering. I take the depth of the frame up until the water rendering (just the terrain in this) then calculate the depth of the water and apply an alpha value to the water based on this and a given penetration depth. For this I used a 1m penetration depth to show the water clearly. What that means is that any depth over 1 metre is fully opaque, any depth under that ranges from totally transparent to opaque.

Category:

Film & Animation

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (Dargish)

  • horrible and stupid, nobody fucking cares because its stupid.

  • @HQVideoTutorials

    Awesome, my first troll, I'm finally getting somewhere in the world!

  • @Dargish No it's not trolling, it's complaining because this video is fucking worthless. how about you look at the one to the left made by babrodtk. NOW THATS GOOD WORK, NOT THIS LOW RESOLUTION PIECE OF ANUS BARNACLE.

  • @HQVideoTutorials I'm so sorry, I of course should defer judgment to the person who has programmed the most basic calculator imaginable and can also use Blender to create a fluid simulation. Babrodtks video shows the results of a paper he wrote, that means many months spent creating it. Mine shows something that took me maybe a total of 20 hours for a small class project in college.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • @HQVideoTutorials lol anus barnacle im going to use that

  • Incredible work!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more