water/underwater shader preview v0.99

Description

This is an ongoing project of mine with an aim to create a realistic water and underwater shader. Keep in mind this is a work in progress and serves just for demo purposes, I no not really recommend using this as a resource for your own projects. But I do intend in to expand this to become an artist friendly toolkit for those who want to have realistic water scenes in their projects.

video of the shader in action:

http://www.youtube.com/watch?v=UkskiSza4p0

If you have any suggestions, comments, or technical issues running the blend, drop me a message in this thread in BlenderArtists forums:

[http://www.blenderartists.org/forum/showthread.php?242940-unlimited-planar-reflections-amp-refraction-(update)](http://www.blenderartists.org/forum/showthread.php?242940-unlimited-planar-reflections-amp-refraction-(update))

The water shader is based on my own observations of water characteristics.

it features:

- reflection with accurate fresnel refectance model

- refraction with chromatic aberration

- projected caustics on geometry from the water surface based on normals

- seamless transition to underwater (no fake fog added)

- accurate water volume with light scattering

- view and light ray color extinction based on water color and sunlight

- simple coastline detection based on terrain`s height-map

does not yet feature:

- displaced water geometry

- underwater particles

- underwater light rays from caustics

- shoreline behaviors

Sky model is based on Preetham, but implementation is from Simon Wallner, with a significant (artistic) changes done by myself.

I have also included an overly exaggerated experimental glitter shader and a completely procedural "water droplets on lens" shader.

Comments (47)

Z
zerba almost 13 years ago

Awesome work man, already looks amazing so far! Keep it up!

P
prof-2004 almost 13 years ago

Really outstanding! I get low fps rate but the look fells really real. And that wet effect in the camera... just great! Keep up the good work!

M
Medoway almost 13 years ago

Wooooooooooooooooooooooow! Was blown away by the video - good luck on getting such outstanding results with the final bits of this project as it is A* so far :)

U
uijin almost 13 years ago

Amazing work! Thanks for sharing.

W
Wunddorn almost 13 years ago

Keep up the good work!! :D

1
1DInc almost 13 years ago

This is just so fantastic awesome! Thanks a lot!!

B
Blender-Man almost 13 years ago

WOW I'm speechless

T
TheNewVai almost 13 years ago

thank you

S
SEspider almost 13 years ago

THANK YOU!!

S
standa almost 13 years ago

oh, my god! what a nice work! genius!

T
toepinch almost 13 years ago

i am loving this

M
matthewinglis almost 13 years ago

Awesome! Very nice.

S
Scorpion451 almost 13 years ago

*Cleans glasses, looks to see if renders still look that freaking awesome* Yep. Wow. Thats all I can say, really. Can't wait to play around with this one!

S
Scorpion451 almost 13 years ago

Follow up: I can't believe the framerate this is running at, steady at ~30fps on my reasonably high-end rig... If this is how clean it runs when the code is a mess, can't wait to see what you can crank it up to with some optimizing! Great work!

R
rasteron over 12 years ago

~60fps on my i5 gtx 650. what's ur spec?

T
Th0mas about 12 years ago

~120 fps on my i5 :D

M
matthewinglis over 12 years ago

WOW! This is truly incredible, amazing. This should absolutely make the staff picks. I know I would chose this if I were an could! :)

C
circletrack37 over 12 years ago

THAT is amazing!!!!!!!!!!!!!

R
rasteron over 12 years ago

I saw and tested the very first versions of this on BlenderArtist (link posted), amazing as always!

I
idealtitude over 12 years ago

Thanks for the sharing! It looks very very nice! But unfortunately i can't test it, though i've downloaded it, because i have an issue with glsl (don't really know from what it comes, probably a question of drivers (I'm under linux with the non proprietary nvidia driver)): all object that don't have an image texture do not receive light, and all of them are displayed black (in viewport as in game). Anyway, thank you! :)

J
JVisionary over 12 years ago

This is absolutely outstanding... you seem to be a pro a coding because the integration between python and C++ is perfect. :) Hope to be at your skill level someday!

D
davidrev over 12 years ago

Me quede sin palabras-....

D
david1000a about 12 years ago

very nice woork I love it

B
blenderaddict about 12 years ago

Wow...just amazing

S
Shadzybadzy about 12 years ago

Outstanding!

E
etoven almost 12 years ago

Holy Cow!!!

T
Th0mas almost 12 years ago

May I please use this for a game?

T
tmp12345 almost 12 years ago

tks guy.

C
Clemens almost 12 years ago

This is so beautiful. Even though there is nothing to do here I love to just walk around and enjoy the view. There was an age in URU that has that open atmosphere too.

X
xpatrick over 11 years ago

Great Work! Performance is very good! Just walk or swim around and enjoy the beautiful weather :D Muy grande. Thank you for sharing!

D
D3m0n92 over 11 years ago

Gorgeous! it can be implemented in a Unity 3d project?

I
idealtitude about 11 years ago

Many thanks! beautiful work!!

J
JimmyAnimator almost 11 years ago

Fantastic.

H
huskybiscuit over 10 years ago

This is just PERFECT, i love it to be implemented into a kit for games! i have a AMD 8350 8-core CPU and a gtx-970 and it runs at no less then 60 fps!

S
ssgachilles over 10 years ago

Ich kann nur sagen, das es echt klasse arbeit von dir ist. So ähnlich kann man es auch mit andere trick hinbekommen. Aber als programmierer sehr gut ausgearbeitet. hammer. spitze.

M
miichael over 10 years ago

This looks great! Is it possible to use things made for the game engine in pre-rendered scenes? And have you managed to get a shore-line behaviour working? I would buy that!

H
halszkat over 10 years ago

thank you!

S
sajibsrs over 10 years ago

JUST WOW!!! Thanks for sharing

Q
Quast about 10 years ago

really good work man

N
Nitipon almost 10 years ago

Your work is really realistic

1
1DInc about 9 years ago

I am still amazed! Gorgeous one!

K
kisterstudio about 9 years ago

no words man 0_0.. absolutely amazing!!!

C
CGBull over 8 years ago

Thank your asset!

A
Almay about 8 years ago

Thank you siiiiir

M
mgns about 6 years ago

Cant thank you enough

H
Hans_1148552 almost 6 years ago

Doesnt work, maybe because of the version being too old

D
dsaad almost 6 years ago

Not working

Sign in to leave a comment.