Ocean Shaders

2012-06-30

Ocean Shaders

Permalink 12:09:30 pm, Categories: GSoC 2012  

Ocean looked nice with connected meshes but it lacked reflection and refraction. Although Ocean is actually a deep water system thus should have no refraction but I did it anyways. For this implementation i followed this Paper.

It involved 5 basic steps.
1. Create the reflection texture : provided by engine
2. Create the refraction texture : provided by engine
3. Distort the textures according to a dudv-map :- We don't need it as it's used to apply distortion. Normal map worked equally great.
4. Apply bump mapping : not needed since we are using vertex shaders to generate waves.
5. Combine with fresnel effects : no problem :)

and here's the result

Ocean reflect refract

and this

island ocean

Some notes
-ocean exhibits No caustics. Caustics are already implemented in CS but aren't in ocean
-This shader is *not* shaderwaver. It is regular vertex and fragment program.
-LOD pops out as you move along.
-ocean doesn't entirely covers the island. a possible solution for it could be to increase the cell width and leght and corresponding parameters. so that it covers more area.
-also waves direction appears to be changing between different LOD when viewed from top. implementing inverse FFT could remove it, I think.

-Naman Gupta

Trackback address for this post:

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Comments, Trackbacks, Pingbacks:

Comment from: v2 cigs code [Visitor]
Excellent post. Keep writing such kind of
info on your blog. Im really impressed by it.
Hello there, You have done an incredible job. I'll certainly digg it and for my part recommend to my friends. I'm
sure they'll be benefited from this website.
PermalinkPermalink 2012-09-16 @ 21:33
Comment from: Damion [Visitor]
Hello, i believe that i noticed you visited my blog so i came to go
back the favor?.I'm trying to in finding issues to enhance my site!I suppose its good enough to use some of your ideas!!
PermalinkPermalink 2012-09-18 @ 18:35
Comment from: naman22 [Member] Email · http://namanguptagameprogrammer.in/
Hi Damion.
shouldn't be a problem. go ahead.
PermalinkPermalink 2012-09-19 @ 00:09
I every time emailed this web site post page to all my contacts, for the reason that if like to read
it afterward my links will too.
PermalinkPermalink 2012-10-09 @ 14:05
Comment from: louis vuitton knock off handbags [Visitor]
I pay a quick visit every day a few web sites and information sites to read posts, except this blog presents
quality based posts.
PermalinkPermalink 2012-10-10 @ 22:13
Good day I am so excited I found your site, I really found you by accident,
while I was looking on Google for something else, Anyhow I
am here now and would just like to say cheers for a incredible post and a all round thrilling blog (I also love
the theme/design), I don't have time to go through it all at the minute but I have saved it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the fantastic work.
PermalinkPermalink 2012-10-13 @ 13:22

This post has 48 feedbacks awaiting moderation...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

May 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Categories

Archives

Misc

XML Feeds

What is this?

powered by
b2evolution