Shader Water in Spirit - The Tutorial Created 16 years ago2007-12-31 13:28:07 UTC by ChickenFist ChickenFist

Created 16 years ago2007-12-31 13:28:07 UTC by ChickenFist ChickenFist

Posted 16 years ago2007-12-31 13:28:07 UTC Post #242176
User posted image
Here's a tutorial on how to implement MechMod's shaderwater in a Spirit of Half-Life 1.5a4 based mod, and everything else you need.

There's also a precompiled version if you're to lazy to do it yourself.

All credits go to Jason "ssjason123" Matson for the water code itself, and me for porting it to Spirit and writing the tutorial :D

Download the package!

http://mechmod.sourceforge.net
http://chickenfist.fre3.com
ChickenFist ChickenFist<Witty Title>
Posted 16 years ago2008-01-01 12:43:29 UTC Post #242239
Thanks chickenfist, I'll check this out. I'm a bit concerned about this performance cost though, hopefully its worth it :)
Posted 16 years ago2008-01-01 18:51:18 UTC Post #242258
Well, as it's togglable the performance hit shouldn't be that big of a problem. Players who lags can simply turn the effect off.
ChickenFist ChickenFist<Witty Title>
Posted 16 years ago2008-01-02 20:21:46 UTC Post #242339
Thanks! btw, did you try that code i sent you or did it fail?!? (probably failed as I didn't test it in Spirit)
Posted 16 years ago2008-01-04 13:18:38 UTC Post #242579
Ok, I added this in, at first I put some code in the wrong function and I was getting some nasty graphic glitches, after I fixed it it worked properly.

This effect is very good, its just like source water, thanks for posting it here chicken fist, and thank jason for me for the best water that we may ever see in goldsource.

If you got any other code snippets let me know because I am very interested:ciggie:.
Posted 16 years ago2008-01-04 13:21:01 UTC Post #242581
Nice of you to share. :walter:
Rimrook RimrookSince 2003
Posted 16 years ago2008-01-04 14:54:37 UTC Post #242593
lmao.
I might take a look at this for SnG's
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2008-01-06 18:33:06 UTC Post #242788
hlife_hotdog, I forgot actually. Will check it out.
ChickenFist ChickenFist<Witty Title>
Posted 16 years ago2008-01-12 20:16:07 UTC Post #243290
What I find with the shader water, you loose alot of control over the water. You cant change the fx amount, speed and even water flow direction (which is the most annoying) In my mod, I have some areas with alot of water, and I have no control over which way the water flows. Can you at least change it so you can change the direction of the water flow by changing the yaw amount. I shouldn't be to hard to change in the code.
Posted 16 years ago2008-01-14 00:46:33 UTC Post #243372
I can't run it. I get the error "error on fracture" is this just my crappy video card or something more sinister??? :zonked:
Posted 16 years ago2008-01-14 21:15:04 UTC Post #243444
Did you add the code properly? Try running the mod that comes with the package and load up a half-life map with water in it.
Posted 16 years ago2008-01-14 21:45:47 UTC Post #243446
It's not working. Do you need Vista to see the effect?
Posted 16 years ago2008-01-14 23:08:40 UTC Post #243453
Ofcourse not, you just need to be running half-life in opengl mode. I added the code into my mod, it works fine for me.
Posted 16 years ago2008-01-15 05:14:10 UTC Post #243458
Do you need Vista to see the effect?
I lol'd. A first for Dave's many posts.
Posted 16 years ago2008-01-15 10:00:27 UTC Post #243474
No, no vista required :P

Requirements:
  • Graphics card must have support for 4 texture units and fairly primitive vertex and pixel shaders.
  • OpenGL mode.
ChickenFist ChickenFist<Witty Title>
Posted 16 years ago2008-01-15 20:17:29 UTC Post #243499
It that case, the dianosis is:

Crappy video card!
You must be logged in to post a response.