XNA UK User Group

A helping hand for bedroom coders throughout the land.
in

RandomChaos

Generic XNA - Water

http://www.youtube.com/v/fy8oFZ_3O68 <p><a href="http://www.youtube.com/v/fy8oFZ_3O68">http://www.youtube.com/v/fy8oFZ_3O68</a></p>  

Yes, I know, I have already put up the NVIDIA ocean shader, but after a member of the community had some issue with it, mostly how it played with the SkySphere sample I found that in my naive XNA days (I know, I am still learning) I made a shed load of errors in the implementation of the class. This I am going to remedy in my next post, so expect the Ocean Shader II post to be next.

During my investigation of the issues David Reilly was having with the combination of Ocean and SkySphere I came across a water shader that I found ages ago. I cant for the life of me remember where I got it from, but I am glad I found it. It's written by Anirudh S Shastry and it does all the stuff the NVIDIA shader does but I personally think that it has better performance. I guess putting them both up here gives you the choice when it comes to water shaders. I also plan to come up with my own water shader at some point, but for now here are the third party shaders I have.

As far as the shader goes, I have not changed much, there was a redundant routine or two, but other than that it is pretty much as I found it. As with the NVIDIA shader, all I have done is provided an XNA class that gives access to the shader and it's parameters.

 

Hope you find it useful. Solution can be found here.

Comments

 

MrBob11235813 said:

This looks amazing!

April 30, 2008 5:48 PM
 

walthergropius said:

Fabtastic stuff, as usual : )

May 1, 2008 6:47 PM
 

Nemo Krad said:

Thanks guys, waiting for my new broadband conection to get installed at home, once that is in I will post the NVIDIA shader with the corrections.

May 1, 2008 8:23 PM
 

UH COSC Interactive Game Development » Generic XNA Water Shader said:

Pingback from  UH COSC Interactive Game Development &raquo; Generic XNA Water Shader

May 23, 2008 4:01 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About Nemo Krad

Have been a professional developer since 1995. My skill set ranges from C/C++, VB6,MSSQL, Java Script, VB Script, HTML/ASP, Java, C#, ASP.NET as well as others. I started 3D and games development when the first release of XNA came out in December 2006 and have become addicted to it.