Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[1.2.5] Water Shader alpha v5b

  • This topic is locked This topic is locked
7520 replies to this topic



Posted 11 August 2011 - 04:48 AM



Just cause I was asked, I barely find time to check my private messages at the moment. I have updated to 1.2.5 and removed the surface effects of the previous version. (If you like them simply use the shader folder of the previous version instead of the new one.)

I have fixed a bug with the water surface effect in v5b.

I decided to call this version 5, since I have added a few surface effects. If you don't like them, there is an option to disable them via the config file (Surface effects (on/off) parameter).

Alpha v5 screenshot:

Posted Image

Older screenshots:



Version 5b*:
Direct download:

Version 5b for modloader (requires a modloader installation)*:
Direct download:


Version 5b*:
Direct download:

Version 5b for modloader (requires a modloader installation)*:
Direct download:

1. copy the files from the Minecraft folder to the minecraft.jar
2. delete the '/meta_inf' folder in your minecraft.jar
3. copy the '/shader' folder to your '/bin' folder
(If there is no '/shader' folder in your '/bin' folder create one; or simply drag the whole '/shader' folder to your '/bin' folder.)

A config file is found in the shader folder. It can be used to change parameters such as:
- Visual: water color, waterfall color
- Performance: there are a settings for disabling parts of the reflections and to decrease the reflection resolution
- To disable water effects use 'water_mode 0'

Incompatible graphic chips
- ATI X1200 or lower
- Graphic cards without GL_EXT_framebuffer_object support
- Graphic cards without GL_ARB_shader_objects, GL_ARB_vertex_shader and GL_ARB_fragment_shader support
- Mobile Intel® 4 Series Express Chipset Family (or lower; will in some cases result in the invisible world bug)

Execution problems and possible solutions:
- Minecraft runs out of memory
   solution: change these two settings in your config.txt
anti_aliasing 1
reflection_resolution 2

- An exception with: 'cfgGrassFix'
  Possible solution (no guarantee): use the modloader version when having modloader installed

- java.lang.SecurityException: SHA1 digest error for px.class
  solution: delete the '/meta_inf' folder in your minecraft.jar

- fast flickering in the water
   solution: disable advanced opengl in your video settings menu

- black texture borders:
   (see: Thread)

Some fan videos of the recent versions:


Changelog alpha 5:
- Modified 4f surface effects
- Option to disable them

Changelog alpha 4f:
- Added "surface caustics"
- Added fresnel fake
- Fixed a few bugs in 4e (waving sky)

Changelog alpha 4e:
(- Was e for quite a while, I simply changed the topic.)
- Removed debug console output in modloader version

Changelog alpha 4d:
- Lighting through new light engine (the ice still does not look 100% equal)
- FBO.class fix integrated into this version

Changelog alpha 4b:
- Changed waterfall color back (red colored texture pack textures)
- Increased waterfal diffrafction a little
- New config settings
- Basic anti aliasing

Changelog alpha 4:
- Slightly improved performance
- Added config
- More colorful water
- Framerate independent animation
- Diving out of the water error partially fixed
- Further improved reflection plane picking
- Nether portal fixed (still not fixed in the modloader version)
- Rain improved
- Waterfalls are now affected by fog
- Cloud reflections in the water off by default
- Player reflection in first person
- Pre OpenGL 2.0 support
- No more GL_EXT_packed_depth_stencil required
- Starting up the mod automatically disables advanced OpenGL

Changelog alpha v3b:
- fixed glowing ice
- fixed transparent walls in darkness
- increased waterfall visibility

Changelog alpha v3a:
- slightly increased water color

Changelog alpha v3:
- Non-planar water (waterfalls) no longer produce reflections
- Ice is rendered in standard minecraft fashion
- Reduced reflections, in specific around the player
- Ray-Casting variation to determine on what water plane to reflect

The mod requires changes in the following classes: Tessellator, RenderBlocks, EntityRenderer

Limitation/Known 'bugs':
- Invisible world probably on Intel Chipset Graphics (hopefully fixed)
- Popping artifacts due to the change of the reflection plane may occur
- In Advanced OpenGL reflections are sometimes not displayed correctly (view frustum culling removes objects required for reflections)
- Around water borders thin incorrect lines may occur (in the current version these artifacts are normally found at corners)

Known incompatibilities for the default version:
- Modloader (there is a modloader version; to install: start from a project using modloader; then copy the water shader files)
- OptiFine (Install watershader over optifine and switch graphics to fast - how_to_optifine)
- Forge API
- Better Than Wolves
- Finite Liquids

[This list may be incomplete or wrong, since other mods change all the time.]

Since I was asked to add a donate button, here it is. I don't think many will use it, but if you do thanks a lot.

Posted Image

Old downloads:


Thanks to the MCP project, which made it possible to create this in a short time.

Thanks for the feedback in this thread, I tried to include as much as possible.
Also thanks for the videos about this mod. And thanks for the downloads, and special thanks to the eight donates I have gotten so far Posted Image.

* I have decided to put up and adfly link as well, since if i don't look somebody comes up and wants to make money out of my mod (already in alpha). Which makes me feel real strange. Therefore I added an option to adfly myself. Feel free to use the regular download! and I hope nobody is offended by this offer.

Register or log in to remove.



Posted 11 August 2011 - 04:50 AM

dude this i pretty good i havent seen a shader like this
Posted Image



Posted 11 August 2011 - 04:50 AM

looks good here have this  :GoldBar:
Posted Image




  • Members
  • 59 posts

Posted 11 August 2011 - 04:50 AM




    Retired Staff

  • Retired Staff
  • 954 posts

Posted 11 August 2011 - 04:54 AM

Oh god I'm on a netbook and my FPS will cry in pain but I don't care I want this!

Never take the sword or bow off the hotbar!

Posted Image



Posted 11 August 2011 - 04:55 AM

Posted Image
whats going on there?
Posted Image



Posted 11 August 2011 - 04:55 AM

You sir, are a God amongst men... :Diamond:



Posted 11 August 2011 - 04:59 AM

View Postcrazymoh11, on 11 August 2011 - 04:55 AM, said:

whats going on there?

View PostNecrowizzard, on 11 August 2011 - 04:48 AM, said:

also alpha blending seems to be not working correctly for particles, grass and the player hand (seen in screenshot 3 and 4).

:) no time to straighten the numerous bugs out at the moment, but since minecraft will eventually be updated in 2 weeks or so, i had put it online now

the forum seems to be quite frequented; thanks for the positive feedback so far :P



Posted 11 August 2011 - 05:06 AM

Damn, this is gorgeous. I hope you'll be able to continue straightening out bugs and such. Also, I find it hard to believe that Mojang is going to upgrade their shaders at this stage of development, so you're probably safe continuing to support this mod.
Posted Image
^^^ Forum thread link is in the post above ^^^



    Creeper Destroyer

  • Curse Premium
  • Curse Premium
  • 5792 posts
  • Location: Kansas
  • Minecraft: Devilblade

Posted 11 August 2011 - 05:14 AM

Looks cool would download if not already using glslr mod and im guessing there not compatible.



Posted 11 August 2011 - 05:24 AM

View PostXaanos, on 11 August 2011 - 05:14 AM, said:

Looks cool would download if not already using glslr mod and im guessing there not compatible.

nope, i wanted to start out using the glsl mod; but it is nearly impossible to develop shaders without their source-code

i am really not a lot into minecraft mods, 2 original classes are overwritten - the px class is probably important to many modders (i also changed the n - class; but i think i could remove these changes since the were not required)

i might merge it with the glsl mod, if i get the chance to - probably its best to wait fo the modding api anyways
stick to glsl mod for now :)



    Coal Miner

  • Members
  • 130 posts
  • Location: Underwater, Building random crap in minecraft
  • Minecraft: The__Q

Posted 11 August 2011 - 05:29 AM

This must be finished and added as like fancy water to minecraft.
Posted Imageლ(ಠ益ಠლ


  • Location: Sweden

Posted 11 August 2011 - 05:35 AM

How does this work? I suppose it's not ray tracing.  :mossystone:
Posted ImageSpecific biome terrain: www.youtube.com/watch?v=TZlnQ0hBj5U Support this suggestion.



    Redstone Miner

  • Members
  • 535 posts

Posted 11 August 2011 - 05:40 AM

Keep on working you have my support :)



Posted 11 August 2011 - 07:11 AM

View PostHarpSeal, on 11 August 2011 - 05:35 AM, said:

How does this work? I suppose it's not ray tracing.  :mossystone:

You are right, i simply mirrored the scene along the water plane, clipped the under water reflection geometry and added some sinus distortions in image space in a fragment shader. There is a lot of fixed function in the source code, so it was a little unusual programming.

Next challenge would be to support different planes of water and try to get the transparency right, which is a little difficult due to meaningless variable names and missing comments. (But we all have to live with that.)

Anyways thanks for the motivating feedback, hard to keep it like it is now.

PS: i just realized i wrote something incorrect; the distortion conceptually happens in world space, not image space, although it is done in a fragment shader...



    Tree Puncher

  • Members
  • 18 posts

Posted 11 August 2011 - 07:18 AM

Looking Good. I will get it as soon as you are done..... And you get  :Diamond: and a thumbs up



    Obsidian Miner

  • Members
  • 1479 posts
  • Location: Gliding Through the ­ing Matrix

Posted 11 August 2011 - 07:22 AM

This is insanely awesome.

Shame it's incompatible with GLSL. I can't live without my shaders. : (



    Diamond Miner

  • Members
  • 864 posts

Posted 11 August 2011 - 07:25 AM

That. Is. AWESOME.

You deserve a medal. A chocolate medal?
Posted Image The name's Cirom, a BLU KAG archer of awesome. Click the archer to join me in KAG!



Posted 11 August 2011 - 11:52 PM

I installed it along with the following mods:
-LB RPG Realism (512x512)
-Zombe's Mod

And this is what I got:

Posted Image

Posted Image



    Iron Miner

  • Members
  • 251 posts
  • Location: Norway
  • Minecraft: Premane

Posted 12 August 2011 - 12:28 AM

View PostTheArcher, on 11 August 2011 - 11:52 PM, said:

I installed it along with the following mods:
-LB RPG Realism (512x512)
-Zombe's Mod

And this is what I got:

Posted Image
Wow, That is sooo cool man!
Asus G74SX, Intel i7 2670QM 2,20 GHz, Win 7, HDD 750 GB, Nvidia Geforce GTX 560M, Bluray.