The International Simutrans Forum

 

Author Topic: Day and Night in Pak128  (Read 1593 times)

0 Members and 1 Guest are viewing this topic.

Offline Eusebio Ptolomeu

  • *
  • Posts: 2
  • Languages: PT, EN
Day and Night in Pak128
« on: November 07, 2017, 10:41:38 PM »
  In pak128, the transition between night and day is pretty straightforward, it seems that only the brightness of the color is reduced. Is there a way to tweak this, to make it more life-like, like an orange sunset/sunrise?

Offline gauthier

  • Devotee
  • *
  • Posts: 3629
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: Day and Night in Pak128
« Reply #1 on: November 08, 2017, 05:46:56 PM »
It's not specific to pak128, this is a code-related issue. No way I can change this a pakset maintainer, you should make an extension request about it.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
Re: Day and Night in Pak128
« Reply #2 on: November 09, 2017, 01:54:35 PM »
In principle yes. In practice you will run quickly in ugly color, sicne you only have 5 bits to work with. But it is very easi\y, you find the routined in simgraph16.cc. I have no compiler right now, but the routines are quite in the first quarter of the file. Look for "nightshift".