Real Light or Lightmap?

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
Gladius_Coldhead
Posts: 56
Joined: Thu Oct 12, 2006 5:15 am

Real Light or Lightmap?

Post by Gladius_Coldhead »

Hi.
Its better use in outdoor(city) scene one Real Light(sun) or Lightmap?
why?
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

Most games with immersive levels use a lightmap for static objects, real light for shadows of dynamic objects and highlighting key areas of the level.

Why - because a lightmap is a pre-calculated texture map. Dynamic lighting requires a lot of calculations in your cpu or graphics hardware. Also, the number of dynamic lights with current hardware is limited - to 8 lights on a typical new graphics card.

If your city scene buildings don't sway in the breeze, I would use a lightmap.
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
Gladius_Coldhead
Posts: 56
Joined: Thu Oct 12, 2006 5:15 am

Post by Gladius_Coldhead »

and how big games, like GTA Vice City(or San Adreas), make a good day/night system?
with lightmaps?
Frobozz
Posts: 19
Joined: Wed Jul 13, 2005 6:38 pm

Post by Frobozz »

sgt_pinky wrote:Also, the number of dynamic lights with current hardware is limited - to 8 lights on a typical new graphics card.
I was under the impression you could bypass the limit by coding a shader that looks for more.

But as for the outdoor scene, you could try having a series of lightmaps for different times of the day. Maybe one for every hour or so. :wink:
Post Reply