The online racing simulator

Live for Speed, Graphics Progress Report: Kyoto and lighting

Hello Racers,

As many of you know from the forum and Twitter, Eric has been working on Kyoto and Scawen has been working on a new lighting system. In this month's progress report we would like to show you some of the work in progress and talk a bit about the lighting.

The Kyoto track is not yet finished. There is still more detail to be completed and holes to fill, but we thought you would like to see how it is coming along.

  • 9919276 -14963926 775202 26068 896 0.0 60.0
  • -9953497 -13552182 876225 -17259 2038 0.0 60.0
  • -9959243 -39478797 604214 31669 379 0.0 60.0
  • 12049794 37764860 590322 -19856 1783 0.0 60.0
  • -12293061 -12772904 531234 -17595 447 0.0 60.0
  • -12833181 -19836297 783487 16353 2021 0.0 60.0
  • -17458859 52674040 703851 8383 74 0.0 55.0
  • -19786497 51968706 662434 12982 581 0.0 60.0
  • -22363696 -29520395 1176955 14251 1787 0.0 55.0
  • -24743540 59465312 981738 15916 1926 0.0 60.0
  • -25230979 3430762 596287 6488 968 0.0 60.0
  • -25940510 63727034 1118004 15239 1111 0.0 60.0
  • -30089099 30441046 1062182 -22584 2255 0.0 54.0
  • -37172189 66054511 1660308 15214 2004 0.0 60.0
  • -45645468 19152122 751139 7339 124 0.0 60.0
  • -47611192 39474590 832896 -21354 1494 0.0 60.0
  • -47680260 40963352 905843 -22764 3718 0.0 87.5
  • -48006210 42169885 832652 -1302 818 0.0 87.5
  • -49094740 43128921 870359 4358 1619 0.0 60.0
  • -49686218 40035627 1067877 6544 2021 0.0 60.0

The new lighting system

Because of the way the new shadow system works, there is no longer a need for a limited number of lighting setups per track. I tried an experiment to allow the user to set the time of day for the lighting. The sun direction is calculated from that and the geographical location of the track. It became very tempting to try to allow all times of day and night. If that was to happen we would need working headlights, so I had a go at that as you can see in these screenshots.

  • 10107031 -14472084 386041 -22889 506 0.0 36.0
  • -23529554 -5507670 875934 29828 437 0.0 36.0
  • -24605090 -2915061 1841810 24795 3036 0.0 75.0
  • lfs_00001000

We now have a simple interface to control time. You can select live time, so the tracks are lit according to their geographical position at the current time. Another option allows the time in game to be offset relative to real time by a number of hours (and days). For example you can start your race in the daytime even if it is really evening. Finally there is still an option for fixed time, which is useful at least for development purposes.

Here is a video of a sunset at the Autocross area :

I've recently been experimenting with real time generated skies to provide a lot of variation for the different sun positions. It's an interesting subject but it brings up the issue of exposure that is encountered with cameras (and eyes) in real life. An iris control can adjust the exposure.

Here is a video showing the exposure being adjusted at Aston. At the start the sky is exposed correctly but the foreground is too dark. At the end the foreground looks brighter but the sky is overexposed.

Finally here is a video showing a 24 hour cycle at Blackwood, in the summer. The iris is automatically adjusted (by an experimental system) so the daytime doesn't look too bright and things don't look too dark in the night.


- LFS Developers

Further reading: Graphics Progress Report: Lighting research

FGED GREDG RDFGDR GSFDG