Fun with Shaders in BF2142 (DX9) - Part 3: Stormy Water
The last few weeks i tried to get into graphics programming with OpenGL (and started working on a OGL project) and also the OpenGL Shading Language (GLSL). I learned a bit about vertex and fragment-/pixelshaders and today I wanted to try some things out with the BF engine.
The last videos had not much dynamics in it, but I figured out what was used as the dynamic variable for the water shader: the WaterCycleTime is passed in from the application and updates constantly. So I used this variable to shift the y-position of each watersurface-vertex according to its x- and y-position on the map (used just a combination of sines). The result was as I had expected: a stormy water shader. ^^
Now one has to adjust the texture scrolling of the water according to the waves, so that it looks more realistic. One problem remains though: when jumping into the water, the player remains at the height of the water-surface specified in the [level].con
Nevertheless, I'm making progress. :)
See you next time!
Other Videos By Rav3n
2011-12-01 | OpenCL Multibody Simulation (1) |
2010-05-22 | Battlefield 2142 RCON: Ingame Tweaking Fun |
2010-05-18 | RotF: Hyperspace Jump - Python Concept |
2010-05-05 | RotF: Kull Bracelet Animation |
2010-04-26 | Dedicated Server and Space Map |
2010-04-17 | RotF Development: First Drone Tracer |
2010-02-27 | RotF - Rain Experiment |
2010-02-04 | Stargate: RotF BF2142-Mod - Projectile Lights Test |
2010-01-25 | BF2142 Sorry Emote |
2009-12-25 | Fun with Shaders in BF2142 (DX9) - Part 4: Magma |
2009-12-25 | Fun with Shaders in BF2142 (DX9) - Part 3: Stormy Water |
2009-11-22 | Fun with Shaders in BF2142 (DX9) - Part 2: Discowater |
2009-11-18 | Fun with Shaders in BF2142 (DX9) - Part 1: Blood Rain |
Other Statistics
Battlefield 2142 Statistics For Rav3n
At this time, Rav3n has 2,599 views for Battlefield 2142 spread across 5 videos. Less than an hour worth of Battlefield 2142 videos were uploaded to his channel, or 5.76% of the total watchable video on Rav3n's YouTube channel.