How to put a color light in irrEdit

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
The Creator
Posts: 30
Joined: Wed Sep 10, 2008 9:04 pm

How to put a color light in irrEdit

Post by The Creator »

Hi again. I'm trying to use a light that can bath every mesh in the light's color, so that i can make a texture simulation of the time of the day (morning, afternoon and night) with only one set of textures.

For example i want to put a dark blue/purple light so that my scene looks like it's night in my game.

I'm currently using a light with global illumination (without an ambient light)and color bleeding.
I'm only selecting the floor's mesh (using the selection option instead of the all option).

What could i do to be able to do something like that?[/i]
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

You could use the scene manager's ambient light setting and alter it in code as the sun moves through the sky. Try this code for a complete day/night cycle.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
The Creator
Posts: 30
Joined: Wed Sep 10, 2008 9:04 pm

Post by The Creator »

Thanks for the reply.

I don't need something complicated, i only want to do very specific moments in the day, it doesn't matter how long the shadows are and stuff like that. I only want the whole scene to be "oranger" or "bluer"
Post Reply