Page 1 of 1

Blue camera for water

Posted: Sun Sep 18, 2005 11:06 am
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.

Posted: Sun Sep 18, 2005 1:33 pm
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.

Posted: Sun Sep 18, 2005 2:07 pm
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().

Posted: Mon Sep 19, 2005 6:34 am
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.