leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
275 stars 52 forks source link

Dynamic Backgrounds #112

Closed leezer3 closed 7 years ago

leezer3 commented 7 years ago

https://github.com/leezer3/OpenBVE/pull/103 implements dynamic lighting.

The next step is to implement dynamic backgrounds which change with the time of day. (Obviously, we don't want a sunset at midnight!)

Some initial WIP in this branch: https://github.com/leezer3/OpenBVE/tree/DynamicBackground

TODO:

Later Plans:

leezer3 commented 7 years ago

OK, this is a working XML for the branch above:

<?xml version="1.0" encoding="utf-8"?>
<openBVE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Background>
        <Time>00.00</Time>
        <Mode>FadeIn</Mode>
        <Repetitions>6</Repetitions>
        <Texture>Cloudy.png</Texture>
  </Background>
  <Background>
        <Time>10.00</Time>
        <Mode>FadeIn</Mode>
        <Repetitions>6</Repetitions>
        <Texture>Sunny.png</Texture>
        <TransitionTime>10</TransitionTime>
  </Background>
</openBVE>

Interesting new parameters: