Blue camera for water

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
phrounz
Posts: 45
Joined: Thu Feb 10, 2005 11:45 am
Location: France
Contact:

Blue camera for water

Post by phrounz »

I would like to create a blue effect when the camera is in the water. Is there a way to change the hue of the camera ? I searched in ICameraSceneNode Class Reference and I didn't find. I'm looking for a function for example which would multiply all pixels of the image rendered by the camera by a SColor class.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

in/out fader would work maybe I'm not sure though.

another simple way would be to create a 2d rectangle that covers the screen.
phrounz
Posts: 45
Joined: Thu Feb 10, 2005 11:45 am
Location: France
Contact:

Post by phrounz »

Find it : I just had to do :

Code: Select all

driver->draw2DRectangle(SColor(100,0,0,255), core::rect<int>(0,0,window_size_x,window_size_y));
between driver->beginScene(...) and driver->endScene().
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

You got it. 8)

Shaders, Lighting Effects, Rectangles, In/Out Faders... there are a lot of ways to Improve the look and feel of Water or any other environment.

One thing that really sets the mood is to stretch and skew the view frustrum like I've seen done in multiplayer RTCW maps.
Post Reply