Board index FlightGear Development Effects and shaders

Water shader

An exciting "new" option in FlightGear, that includes reflections, lightmaps, the particle system etc.. A lot is yet to be discovered/implemented!

Re: Water shader

Postby planetacancun » Mon Dec 06, 2010 12:21 am

Bump :)
Just to thank you ppl. Anyways we could have like different shaders depending on the weather in that given moment, like thunderstorm and calm shaders, for the cloudy days with no direct sun, some crystal clear sun reflection would be awesome for a lake for example, but I have seen some other work in rocks, shaders are looking great :) <- happy guy upgrading GIT as I write.

planetacancun wrote:
gluon wrote:@planetacancun: Sure you can, just do some lines of GLSL code...


At least that video is OpenSceneGraph, so it's not like crazy right :) I was testing the shader posted here and it's pretty cool, it could be better than the actual one. I'm going to leave the coding to the pros here coz I sux :D

EDIT

3 links I found, might be useful.

IDE for shaders (I'm going to give it a try later): http://www.vis.uni-stuttgart.de/glsldevil/
Some GLSL version of water FP/VP: http://forum.bonzaisoftware.com/viewthr ... =10&page=1
A test project as demo: http://forum.bonzaisoftware.com/viewthr ... =33#pid265
Callsign:Fallen-
Videos: http://youtube.com/planetacancun2
planetacancun
 
Posts: 323
Joined: Thu Jul 30, 2009 4:52 pm
Callsign: Fallen-
IRC name: Fallen-
Version: GIT
OS: Ubuntu

Re: Water shader

Postby gral » Wed Dec 08, 2010 12:41 pm

fredb wrote:
timoore wrote:At a minimum, it is polite to give attribution when you borrow code.

I added an attribution to the vertex and the fragment shader :
Code: Select all
// This shader is mostly an adaptation of the shader found at
//  http://www.bonzaisoftware.com/water_tut.html and its glsl conversion
//  available at http://forum.bonzaisoftware.com/viewthread.php?tid=10
//  © Michael Horsch - 2005

By the way, thank you for the fix


Thank you Tim and Fred. Of course it is polite to give attribution to the coders, my comments in GLSL just broke the shader code here and didn’t know where to put this lines, that’s all :oops: . But anyway please change this notice to

Code: Select all
//  This shader is an adaptation of water shaders found at
//  http://www.bonzaisoftware.com/water_tut.html and its glsl conversion by mars999, © 2005 Michael Horsch
//  Other parts are an adaption from dangerdeep at http://dangerdeep.sourceforge.net/, © Thorsten Jordan


btw. where do I add copyright notice for my textures in flightgear?

Thanks, gral
gral
 
Posts: 325
Joined: Mon Nov 16, 2009 1:03 pm
Location: Zurich (Switzerland)
Callsign: HB-GRAL
Version: GIT

Re: Water shader

Postby Ernest1984 » Mon Jan 03, 2011 1:23 am

Hello. Where can i get the latest version of Water Shadings?
EPWA-hub: ERJ-195 clsgn: ERNIE
-----------------------------------
Around The World with B1900D!
callsign: AROUNDw - currently suspended till the FG will have a proper look on different locations
User avatar
Ernest1984
 
Posts: 437
Joined: Wed Dec 01, 2010 3:47 pm
Location: Poland / Canada
Callsign: ERNIE
Version: 2.10
OS: Mac OS X 10.8.2

Previous

Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 1 guest