Realistic water node

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

Now we're cooking.
Image
Last edited by Vectrotek on Sat Jun 18, 2016 3:48 pm, edited 1 time in total.
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

Now just bring back the Screen Quad for FXAA and fix the Above Water vs Under Water thing and were on our way..
It would be cool to have those "Underwater Post Processor back"..

@The_Glitch.. I had to have a close look at the Directory References in the code..
These strings were changed:

Code: Select all

 RealisticWaterSceneNode* water = new RealisticWaterSceneNode(TheSceneManager, 512.0, 512.0, "Shaders");
also in the Water Node File I had to have:

Code: Select all

   irr::video::ITexture* bumpTexture = _videoDriver->getTexture(resourcePath + "/waterbump.png");
It may or may not have something to do with your black screen..
(check in your console whether any shaders or image files were loaded)

This opens a few doors..
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

There's still some small issues but it looks O.K. so far..
Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

Issues such as the visible "clipped wavelets" at the borders of the screen
, some slightly weird reflections and Underwater Post Processing is solvable
simply because they are clearly solved in the other version elsewhere on the forums..
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Realistic water node

Post by The_Glitch »

Image

Gotta love skyrim
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Realistic water node

Post by The_Glitch »

Image
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Realistic water node

Post by The_Glitch »

Image

Better eyes
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

Now render that to a screen quad three times, one with Normal Render,
one with Contrast so the eyes are isololated (hlsl contrast to rtt)
and one with the eyes blurred so they shine..
FXAA if you really like as a fourth pass..

Water optional..
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Realistic water node

Post by The_Glitch »

yeah going to look into a new technique for glowing eyes. I believe you need hdr rendering to have things that have there own level of brightness vs other objects in the scene.
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

I really looooked, but I don't see any water?
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Realistic water node

Post by The_Glitch »

There's not any water in those screenshots. I'm working on some new water effects I'll post when I get them up.
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

Finally Figured out why we have the "Fresnel Term"..
Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

This one don't have the advanced "Depth" factors (other comple version) so we have to find a curve that relates
"Plane Clip Offset" with "Camera Distance From Water"..
Working On it..
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Realistic water node

Post by Vectrotek »

Image
Post Reply