Another Openrails Skydome texture #5.incorrect Read Me file with errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dreamcatcher1962
    Senior Member
    • Jan 2014
    • 290
    • Denmark

    #1

    Another Openrails Skydome texture #5.incorrect Read Me file with errors

    Hallo fellow trainsimmers .

    After playing around with one of the Monogame beta versions of OR, released on Elvas Tower, I discovered, that I made a gross mistake in the 'Read Me' file accompanying the OR Skydome texture #5.

    In the 'Read Me' file, I'm giving directions on how to "turn off the Sun", but after using my own medicine, from the included "Read Me" file, in a OR Monogame install, the Sun suddenly appeared around 12:00 Noon. WTF .

    From the included 'read me File'.

    In order to "turn of" the OR Sun, You need to make the following changes to the SkyShader.fx, located in Openrails\Content folder.

    From this:


    // Sun glow
    // Coefficients selected by the author to achieve the desired appearance - fot limits the effect
    skyColor += angleRcp * Fog.y;


    To this


    // Sun glow
    // Coefficients selected by the author to achieve the desired appearance - fot limits the effect
    skyColor += angleRcp * 0.000 * Fog.y;


    This is simply not correct.
    Instead You have to change the text in the skyShader.fx from this:


    // Sun glow
    // Coefficients selected by the author to achieve the desired appearance - fot limits the effect
    skyColor += angleRcp * Fog.y;

    // increase orange at sunset - fog limits the effect
    if (LightVector.x < 0)
    {
    skyColor.r += SkyColor.z * angleRcp * Fog.z;
    skyColor.g += skyColor.r * Fog.w;
    }


    To this:


    // Sun glow
    // Coefficients selected by the author to achieve the desired appearance - fot limits the effect
    skyColor.b += angleRcp * 0.000 * Fog.y;

    // increase orange at sunset - fog limits the effect
    if (LightVector.x < 0)
    {
    skyColor.b += SkyColor.z * angleRcp * 0.000 * Fog.z;
    skyColor.b += skyColor.r * Fog.w;
    }


    After a back-up of the original SkyShader.fx, you can copy & paste the above text into the SkyShader.fx file.

    This will remove the Sun, and it will change the Gamma shift, that happens around 12:00 Noon in OR. Around 12:00 Noon, the whole OR Skydome changes, and becomes greenish tinted. I personally never liked that greenish tint, but the above text will get rid of it.

    Again, sorry for uploading an incomplete read me file / not testing me own files properly

    The best regards Claus (cvo2010)
  • ossie
    1000 Post Veteran and Moderator



    • May 2010
    • 1298
    • Melbourne, Australia
    • MSOR

    #2
    No need for apologies Claus. Your skydome textures have made a huge difference to the appearance of the sim and I'm sure a lot of people are grateful for your efforts. Thank you!
    Cheers!
    Pete

    Comment

    • qballbandit
      6500 Post Veteran

      • Jan 2006
      • 6522
      • Elgin Il., USA.
      • MSOR

      #3
      Ditto x10!

      Never caught the issue, as I only used that one during dusk/dawm times of day.

      One thing I do notice when using the original, is that I get an orange glow all throughout the dark hours of night on one section of the sky.
      Maybe my edit was incorrect? Have you noticed this?
      Neil

      Chicago Railroading Fan

      Comment

      • advut
        Senior Member
        • May 2010
        • 178
        • General

        #4
        Thanks for your sky textures. Personally I like the tint after 12:00. You seem knowledgeable on shader files, so can you help me to get a warmer colour temperature? OR is quite bluish IMO. Also, do you know how to change the fog colour? Some distant blue haze with a overall warmer appearance will look great.

        Comment

        • Don_SF
          New Member
          • Sep 2017
          • 13

          #5
          I agree guys! Thank you Claus. I'm new to OR but I've downloaded some of the skydomes and the variety is great. Much appreciated.

          Comment

          • dreamcatcher1962
            Senior Member
            • Jan 2014
            • 290
            • Denmark

            #6
            Thank you Pete, Neil, advut and Don .

            Neil, I can't say, that I noticed an orange glow, but then again, I haven't used my own faulty edits for more than a few minutes in a new OR install .

            Advut, If you save a copy of the Skyshader.fx somewhere safe, you can edit the original OR SkyShader.fx to your heart's content.
            That's how I do it, and with a back-up of the file, you can't ruin or mess up anything .

            The best regards Claus

            Comment

            Working...