Realistic water scene node

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Tr3nT wrote:why i get all blue?????
all the surface is blue.......
and it's a bit better only in specific position but the edge i s forever blue.... why?????
Some screenshots would probably help us out in assessing what the problem is.
TheQuestion = 2B || !2B
Vsk
Posts: 343
Joined: Thu Sep 27, 2007 4:43 pm

Post by Vsk »

I am having some problems.
This is the error message that I am having in the console:

First at all, it doent lowad the dds water. what kind of file is dds?
Then I have this messages :
Hlsl varibable to set not found "view".
And later shows the names of the possible variables to take.

What is it?

Thanks.
Vsk
Posts: 343
Joined: Thu Sep 27, 2007 4:43 pm

Post by Vsk »

Well, I repeat the problem with more information.
First at all, irrlicht doen't want to load dds file (the one with the water bumb), so I change it for jpg; is that ok?

Second (indifernt to the first problem (loaded or not)), I have the console message that I have said before:

"Hlsl varibable to set not found "view" " and then it gives the names of the variables that are avalable to use "winddirection".. etc.

Third, it is extrange but it has skybox relexion only, and some kind of refraction.
I explain: Terrain, trees, etc other that the skybox is not reflected.
The only way that it gest "reflected" is when I sumerge the object in water so it gives INSTEAD of refraction a reflexion from the above part of the objetc!!! -but it is under water!.

From far away, I can see a terain reflexion but when get closed y dissapaer (no matter which angle).
And Also I have no refraction at all, the terrain behind the water is not seen at all. I have tried setien diferent alpha value for the color and also for the blend factor but don't change this issue.

Some pictures with the problems:

Image



No reflexion from terrain, trees, no refraction, etc.
Image
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

Post by Mirror »

a very nice project, grats and thanks. i'd like to ask, is it possible to alter the percentages of reflection and refraction ? ( possibly in real-time ). i don't know alot about shaders, i would like a hint on this
Insomniacp
Posts: 288
Joined: Wed Apr 16, 2008 1:45 am
Contact:

Post by Insomniacp »

Hey,
I am adding this into my map editor and game but I am having a problem. I adjusted the code to let me make a scene node and add that as the water node instead of just a flat hill node. The issue I have hit is when I add over 4 mesh buffers it becomes a solid blue instead of transparent blue images are below. If anyone has a way to solve this it would be awesome if I find why it happens I'll let you know. Other than that it is amazing, by the way I am using Christian's code for it since the original gave me an error I couldn't fix.

Blue water:
Image

Transparent water:
Image
Steel Style
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Post by Steel Style »

Image

No that not a dream Realistic Shader Scene Node in IrrEdit.
And it's now also work with OpenGL !!!!

HERE


Though please add the elvman header for the shader I forgot to make it back, I removed it for naviguate on the file. And I should travel tomorow and I think I will not be back before August so if someone can add wind direction on the IrrEDit stuff I't would be cool.

They are some artifact in IrrEdit and in OpenGl but I don't have the time to know what it's about maybe in IrrEdit it's due to multiple camera ...
wildrj
Posts: 301
Joined: Thu Mar 23, 2006 12:49 am
Location: Texas/ Cyberspace
Contact:

Post by wildrj »

Very nice steels :) i will be using this later...whenever irredit gets a nix version ahhaah. I will use the shader manually though good job :)
http://wild.deathtouchstudios.com << My gamedev blog
<Programming is a way of life>
If at first you don't succeed press the delete key till you do :)
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

That is very cool. I have not looked into irrEdit plugin creation myself, so I was unaware you could use shaders, etc inside irrEdit.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Post by doqkhanh »

Visual C++ Express does not support developing for MFC and/or ATL. So this may explain why you can't find afxwin.h :(( How can I do :((
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Post by doqkhanh »

Sorry, Just comment out the include directive.

But in my ATI Mobilty, water is not water :(

Code: Select all

//! Testing water
		water = new RealisticWaterSceneNode(
				getSceneManager(), 
				1024.0f, 
				1024.0f,				getVideoDriver()->getTexture("data/waterbump.dds"), 
				getGraphicDevice()->getTimer()
				
				);


Image[/code]
speewave
Posts: 12
Joined: Wed May 14, 2008 3:02 am

Post by speewave »

The Card Must be able to support DirectX 9 (Fully) and Support Pixel And Vertex Shader!

These are the ATI Radeon Cards + Mobility that is not compatable:
  • Mobility Radeon
    Mobility Radeon 7500
    Mobility Radeon 9000
    Mobility Radeon 9200
    Radeon 7000 Series
    Radeon 8500 Series | 9200\ 9250 (based on 8500 series)
Run DxDiag and See which card you have. Above all these cards should run RWSN.

Also Updating your Device Driver Via ATI's Homepage should work!
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Is it already work with OpenGL?
I tested it with my tool at the beginning of this year and got good result but only in DirectX mode:

Image
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Darktib
Posts: 167
Joined: Sun Mar 23, 2008 8:25 pm
Location: France

Post by Darktib »

I tested but i'm surprised with the water animation... i see a normal texture which moves along the plane... Is there any solution to create more realistic water ? Or maybe i've not understand correctly ?

thanks in advance.
JRS
Posts: 45
Joined: Tue Jun 03, 2008 10:00 am
Location: Universität Heidelberg

Post by JRS »

..
Last edited by JRS on Mon Aug 04, 2008 9:01 am, edited 3 times in total.
JRS
Posts: 45
Joined: Tue Jun 03, 2008 10:00 am
Location: Universität Heidelberg

Post by JRS »

sry
Last edited by JRS on Mon Aug 04, 2008 8:59 am, edited 1 time in total.
Post Reply