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.
horrible and stupid, nobody fucking cares because its stupid.
HQVideoTutorials 8 months ago
@HQVideoTutorials
Awesome, my first troll, I'm finally getting somewhere in the world!
Dargish 7 months ago 2
@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 7 months ago
@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.
Dargish 7 months ago