Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 09:21

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Screen Space Water
PostPosted: 20.02.2008, 07:16 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
http://www.gamedev.net/community/forums/topic.asp?topic_id=482962

This is an interesting idea - drawing water as a (deferred shading) post-processing effect instead of as geometry. He doesn't really explain his technique, but I'm guessing he's just sampling the position from the G-buffer and calculating the amount of water between that position and the camera.

Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 20.02.2008, 11:17 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Very cool!

I wonder if this technique could be improved by rendering a real plane for the water in world/view-space rather than a full screen-space quad. This way it would be cheaper to get the texture coordinates for the wave map (no reconstruction from the position buffer needed) and you also get clipping for free (only the visible water surface is drawn).

Hopefully he will give more details on his implementation...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 21.02.2008, 05:50 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
marciano wrote:
I wonder if this technique could be improved by rendering a real plane for the water in world/view-space rather than a full screen-space quad.


Reading between the lines, I think he was trying to avoid this at all costs, to avoid the messy problems at the coast line.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 22.02.2008, 04:33 
Offline

Joined: 19.11.2007, 19:35
Posts: 218
Quote:
Reading between the lines, I think he was trying to avoid this at all costs, to avoid the messy problems at the coast line.


I wouldn't be surprised if he gave the plane a shot though first as opposed to saying "Hey! What can I do in screen space? WATER!" However, being based on volumetric fog I can't see why you'd want to avoid a plane.

At the least I think a plane at the maximum wave height would be worthwhile even if it were just a super light set the "alpha so alpha test can filter out parts that don't need to be processed" pre-pass. But then masks are my personal universal solution to all problems, even the ones that don't exist.

EDIT: But the biggest question I have is what does it look like underwater?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 22.02.2008, 06:08 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
AcidFaucet wrote:
EDIT: But the biggest question I have is what does it look like underwater?

Yeah, it's interesting that he didn't post any pictures of that ;)

It should work fine in theory though, as he should be able to calculate the amount of water between the camera and a pixel, so when underwater, every pixel should return a positive value in that test.


Top
 Profile  
Reply with quote  
 Post subject: Re: Screen Space Water
PostPosted: 15.04.2008, 00:42 
Offline

Joined: 15.04.2008, 00:33
Posts: 15
The trouble is it LOOKS like fog. The image is striking at first glance but the surface patterning is not that convincing and at the edges it looks quite disconcerting because the water has no substance.


Top
 Profile  
Reply with quote  
 Post subject: Re: Screen Space Water
PostPosted: 15.04.2008, 19:08 
Offline

Joined: 19.11.2007, 19:35
Posts: 218
I think its more proof of concept and for his purposes than meant to overtake the world as the new standard way of doing water. Side note: I really like that "lack of substance," if the water weren't so opaque it would be considerably more convincing.


Top
 Profile  
Reply with quote  
 Post subject: Re: Screen Space Water
PostPosted: 15.04.2008, 21:06 
Offline

Joined: 15.04.2008, 00:33
Posts: 15
I think you're right, also looking at the shots on the website the surface rendering is quite nice really.

For anyone who hasn't seen it before there is some very nice real-time water rendering in the Typhoon engine. The site includes rough descriptions of the techniques used and refers to papers (not linked, just gives titles and I haven't tried to find them yet).

Also, looking at Typhoon again, the coast is the one area that doesn't look all that good. There the water ends in abruptly and the foggy approach suddenly doesn't look that bad by comparison.

Oh and another thing about that engine is it demonstrated to me the difference between of using streak and bloom filters together which feels like actually being in the place in the presence of intense light and just bloom which has a cinematic effect. i.e. the optics of the eye create streaks and film cameras don't so much.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group