Jump to content

Post Process Ocean #2


Gandi
 Share

Recommended Posts

As I was bored last days i decided to work on my post process ocean again.

Problem was, that i couldn't find the code and materials anymore, so i started to build it up again from the beginning.

 

Now i got some decent results i want to share with you:

post-418-0-29292000-1329252953_thumb.jpg

Thats my favorite screenshot. you can see caustics, specular, color fading as water gets deeper and reflection.

 

post-418-0-68080800-1329252963_thumb.jpg

caustics again..

 

post-418-0-28885600-1329252970_thumb.jpg

and one shot from far away.

 

This water is rendered without any geometry data (completele post process) after everything else got rendered.

For the waves i used a Heightmap which also stores the normals:

post-418-0-90586800-1329253240.jpg

post-418-0-30143300-1329253246.jpg

packed into one 1024x1024 RGBA8 texture.

 

For fine details i use a bumpmap at different scale and overlay it. (don't think a screenshot is needed here) currently just 256x256px, maybe i get better results with a bigger texture.

 

It still needs some tweaks, but i think its much better results then at my last try.

 

Whats missing:

-Foam: as soon as i find a good foam texture i will add foam at the shore and on the wave-peaks

-new Heightmap. The current heightmap got visible seams and is not very good as i just upsampled it in photoshop from 256px to 1024px

-new Bumpmap: i want to check if i get better results with a bumpmap with higher resolution (at least 512²px)

-some minor changes with the computation of the fresnel value and better transition from near water to far distance water.

-minor changes with the computation of the refraction/reflection uv-coordinates

 

It would be great if i could test the ocean in a more beatiful environment (a nice little island), but as i got no assets and i'm not very good at creating terrains i want to ask you, if maybe someone got a nice scene where i could test it on.

Furthermore, if someone got a good heightmap, bumpmap or texture for foam or any other ideas how i could improve it, i would be grateful.

also if someone got an idea how i could improve the generation of the waves, as at the moment the just move into one direction, what maybe looks ok at one side of an island, but when the waves travel orthagonal or away from the shore it looks pretty strange.

  • Upvote 1
Link to comment
Share on other sites

That really looks very effective, shame it's static as it's always hard to get the real feel of the water without seeing it in motion. Looking forward to seeing more of this though!

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Link to comment
Share on other sites

maybe a way to implement Tessendorf waves?...I suspect it's pretty fps-heavy, but as

I'm no programmer...maybe you could work wonders. wink.png

 

Here's a guy who implemented them in XSI (before it was Autodesk Softimage): http://www.amaanakram.com/?page_id=131

 

 

*edit* Oops...forgot to say, looking good, Gandi! :)

Vista Ultimate SP1 64bit | Q6600 2.40 GHZ | 8GB RAM | 320MB Nvidia 8800GTS

Link to comment
Share on other sites

Has anyone here tried implementing waves by applying a sine curve function (with some randomness & a few more complexities) to the heights of rows of vertices on a plane?

 

I'd imagine this would be a huge FPS hit but just wondering if anyone has tried it?

 

.. If not I might just give it a try for kicks. Though I doubt it would be very viable performance wise.

STS - Scarlet Thread Studios

AKA: Engineer Ken

 

Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now!

Link to comment
Share on other sites

@Ken: Yes, Red did a while ago when trying to reinstate an earlier version of Leadwerks water:

 

http://www.leadwerks.com/werkspace/topic/1364-oh-no-i-broke-joshs-waterplane/page__hl__waterplane__fromsearch__1

 

 

 

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...