Hi
I'm working on lens flares effects. Everythink works fine, i've got lens flares, I know how to detect if sun is visible, but in addition of lans flares, I want to lighten screen when sun is too close to the center of screen, so:
How can I lighten whole screen? E.g by 10%
How to lighten screen when look to sun?
hey,
Have you got lens flare working, I think I saw a thread on that somewhere.
What kind of sun do you have, is it a light source, or part of the skybox texture.
Not sure but first simple thing could be white/yellow texture, and change the alpha.
I read a similar thread where someone wanted to change the screen brightness and color, according to heath.
I think thats what they did, so screen would get darker and darker and turn red, the lower the health went.
Really depends on what your sun is really, light or texture ??
Have you got lens flare working, I think I saw a thread on that somewhere.
What kind of sun do you have, is it a light source, or part of the skybox texture.
Not sure but first simple thing could be white/yellow texture, and change the alpha.
I read a similar thread where someone wanted to change the screen brightness and color, according to heath.
I think thats what they did, so screen would get darker and darker and turn red, the lower the health went.
Really depends on what your sun is really, light or texture ??
You scratch my back, I'll scratch yours.
I dont think there is some method howe to increase brightenes in Irrlicht. If there is something like that, try looking somevhere in video namespace. Personaly I newer saw anything like that.
But since you want sun like blinding efect, I think you can get fine with plane object in front of camera with texture of your choosing (simple white or yelow color, one pixel texture would do just fine). Adjust transparenci according to howe close to sun camera look.
Might be posible also with 2d image pasted on screen...
But since you want sun like blinding efect, I think you can get fine with plane object in front of camera with texture of your choosing (simple white or yelow color, one pixel texture would do just fine). Adjust transparenci according to howe close to sun camera look.
Might be posible also with 2d image pasted on screen...
hi,
if you got when the sun is close to the center of the screen, you just maked the work.
Just draw a rectangle with an alpha component that changes with sun´s position ===> s32 sun_var [0, 255]
Something like that should work.
if you got when the sun is close to the center of the screen, you just maked the work.
Just draw a rectangle with an alpha component that changes with sun´s position ===> s32 sun_var [0, 255]
Code: Select all
color= SColor(sun_var, 255, 255, 255) //for a clean white
draw2DRectangle ( color,
pos, // should be rect(0,0,screen_X, screen_Y)
0
) ;
Something like that should work.
------------------------------------------------
Irrlicht Ussers Map
Join now!!
http://www.frappr.com/irrlichtusers
Irrlicht Ussers Map
Join now!!
http://www.frappr.com/irrlichtusers
Maybe setAmbienteLight(...) can help you ???
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
it works!
Thanks a lot, that draw2DRectangle works perfectly, see the proof:
http://img92.imageshack.us/img92/9777/sun1up0.jpg
http://img111.imageshack.us/img111/7082/sun2mh8.jpg
http://img105.imageshack.us/img105/2338/sun3gc7.jpg
http://img92.imageshack.us/img92/9777/sun1up0.jpg
http://img111.imageshack.us/img111/7082/sun2mh8.jpg
http://img105.imageshack.us/img105/2338/sun3gc7.jpg