NEW WATER FOR IRRLICHT BUT MORE REALISTIC

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

NEW WATER FOR IRRLICHT BUT MORE REALISTIC

Post by katoun »

Hi,
I have found somethig very interesting:
How to make water for games more real.
Take a look at this article:
http://collective.valve-erc.com/index.p ... simulation
It is very usefull and I shal trye to make it work with Irrlicht as soon as I found out how.
Any help would be very usefull.
The water scene node hase to be 'upgraded'.
With that sort of water U can create waves generated my falling drops of water(particles of corse).So we will need a water particle efect and I don't know if Irrlicht has a plane particle emitor.
Kat'Oun
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

And forgot to add there is an example that uses that techniqe for creating heightmaps from a plane that has the Y values random on some range .
And that method just smothe it out.
Here is the page with the example
http://www.gamedev.net/reference/articl ... le2001.asp
is down the page.U will see it.
Kat'Oun
Wmbest2
Posts: 7
Joined: Thu Aug 19, 2004 10:33 pm
Location: PA, USA
Contact:

Post by Wmbest2 »

That sounds like you are on the right track, I hope you get it working. :D
Also, later after the water gets an upgrade i think it would be cool to have fresnel reflections(When the water has a different reflection based on the angle at which you look at it and at which the light is). Just a though to ponder.
Testur

Post by Testur »

Wouldn't that, along with refraction, be possible through shaders?
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

Well that the idea for reflection but don't know shaders iet.
Kat'Oun
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

I have finaly made it:!:
Code coming soon.
I need to do some testing fist.
Kat'Oun
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Cool. Post some shots. ;)
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

niko wrote:Cool. Post some shots. ;)
He already did in this thread: http://irrlicht.sourceforge.net/phpBB2/ ... 8&start=90

And what's with your blog, niko :P ?
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Ah, nice, didn't look into that forum yet. :)
About the blog: I'll post some news in this sub forum some infos about it and some related stuff soon.
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

Niko
I just send you the code on your new mail (the one on irrlicht32.org)
There are some 'bug' with the water so you might take a look at it maby you find something but basucaly it works good.
Kat'Oun
Bot_Builder

Post by Bot_Builder »

Those are some nice equations... The first two terms really do the velocity of a vertex while 3rd and 4th actually propogate waves. A bit more complicated than it needs to be if you want some simple efficient stuff though:

http://freespace.virgin.net/hugo.elias/ ... _water.htm - http://freespace.virgin.net/hugo.elias/ is a great site btw.

It could turn out that this is just the stuff with all of the precalculated coefficients taken out, perhaps it is a less accurate water model. ATM too lazy to try. If it turns out to be a less accurate, but more efficient you could consider implementing this as an alternative.

As for affecting the water, I'd do hitWater(x,y,f) where f is the amount of displacement applied.
katoun
Posts: 239
Joined: Mon Nov 15, 2004 9:39 am
Location: Romania
Contact:

Post by katoun »

:D :D :D
I know that algorith.
I have found that implemented in an small engine along with other 2 tipes of water.
This is a 2D Water an to get the height right for making an 3D Water
I had big problems and iven right now I couldn't fix it to actualy see witch is faster
because the efect is mostely the same(more that 90%).
Kat'Oun
Post Reply