Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

X-Plane 10: Experimenting with art controls (Raleigh scattering)

Featured Replies

I would strongly recommend all developers to upload their work on

http://www.xp-developer.com/downloads

 

And of course join, will be happy to have a dedicated discustion category for this and many more projects

Just for transparency it should be noted Tom runs this website.

i910900k, RTX 3090, 32GB DDR4 RAM, AW3423DW, Ruddy girt big mug of Yorkshire Tea

  • Replies 343
  • Views 143.2k
  • Created
  • Last Reply

Does anyone know what gives the clouds their colors at dawn and dusk? Is it done through art controls? If so, which ones? I'd like to tone the colors down quite a bit.

Does anyone know what gives the clouds their colors at dawn and dusk? Is it done through art controls? If so, which ones? I'd like to tone the colors down quite a bit.

 

I think that is done through the shaders. Its a dynamic hardware rendering and can't be set directly via an Art Control value.

Insane, do you have the lua code for this setting? Want to give it a try today..

 

Hi Tom,

 

Here is the code I am using. Basically I took a little of each of the codes in this thread and modified them to my liking.

 

set( "sim/private/controls/clouds/cloud_shadow_lighten_ratio",       0.85 )

set( "sim/private/controls/atmo/atmo_scale_raleigh",        20.0 )

set( "sim/private/controls/atmo/inscatter_gain_mie",     5.0 )

set( "sim/private/controls/atmo/inscatter_gain_raleigh",        10.0 )

set( "sim/private/controls/atmo/scatter_raleigh_b",         40 )

set( "sim/private/controls/atmo/scatter_raleigh_g",      10.30 )

set( "sim/private/controls/atmo/scatter_raleigh_r",    0.010 )

set( "sim/private/controls/skyc/white_out_in_clouds",     0.5 )

set( "sim/private/controls/clouds/plot_radius",    1.20 )

set( "sim/private/controls/clouds/soft_occlude",  1.00 )

set( "sim/private/controls/skyc/mie_scattering_foggy",  25.000 )

set( "sim/private/controls/skyc/mie_scattering_ocast",  7.00 )

set( "sim/private/controls/lights/bloom_far", 3000.00 )

set( "sim/private/controls/lights/bloom_near", 120.00 )

set( "sim/private/controls/lights/mix_big", 80.000 )

set( "sim/private/controls/lights/mix_small", 25.00)

set( "sim/private/controls/lights/bloom_for_zoom", 0.60)

set( "sim/private/controls/hdr/gain_min", -4.8)

set( "sim/private/controls/clouds/ambient_gain", 4.0)

 

Did it, tride it and loved it, thanks! Will incorporate my light tweaks into this aswell.

 

Now here are some pics from the test

 

xp_test4.PNG

 

xp_test5.PNG

 

xp_test7.PNG

 

xp_test9.PNG

 

xp_test10.PNG

X-Plane Scandinavia

Norway - Sweden - Finland - Iceland - Denmark

https://www.facebook.com/xpscandinavia

Like - Share - Follow us on everything

 

Great shots Tom.

 

What would be amazing is if, maybe after we know what's in 10.30, someone can develop a pugin that alters the main artrefs depending on the weather, season and location. For example the amount of blue tint in the scattering presumably differs according to the environment.

 

I would pay through the nose for that...

i910900k, RTX 3090, 32GB DDR4 RAM, AW3423DW, Ruddy girt big mug of Yorkshire Tea

Great shots Tom.

 

What would be amazing is if, maybe after we know what's in 10.30, someone can develop a pugin that alters the main artrefs depending on the weather, season and location. For example the amount of blue tint in the scattering presumably differs according to the environment.

 

I would pay through the nose for that...

With SkyMaxx Pro as seen in pics, changing to i.e dusk or dawn makes it just more realistic, almost scary real. But yes, i too would second such motion

X-Plane Scandinavia

Norway - Sweden - Finland - Iceland - Denmark

https://www.facebook.com/xpscandinavia

Like - Share - Follow us on everything

 

How to install this?

 

1. Download the Fly with Lua script

 

2. Unzip and place the folder into your plugin folder as described in the readme

 

3. Make sure you have xsquawkbox installed

 

4. Delete all .lua scripts in the /Resource/plugin/FlywithLua/Script folder

 

5. Open Notepad and paste in the code

 

set( "sim/private/controls/clouds/cloud_shadow_lighten_ratio", 0.85 )

set( "sim/private/controls/atmo/atmo_scale_raleigh", 20.0 )

set( "sim/private/controls/atmo/inscatter_gain_mie", 5.0 )

set( "sim/private/controls/atmo/inscatter_gain_raleigh", 10.0 )

set( "sim/private/controls/atmo/scatter_raleigh_b", 40 )

set( "sim/private/controls/atmo/scatter_raleigh_g", 10.30 )

set( "sim/private/controls/atmo/scatter_raleigh_r", 0.010 )

set( "sim/private/controls/skyc/white_out_in_clouds", 0.5 )

set( "sim/private/controls/clouds/plot_radius", 1.20 )

set( "sim/private/controls/clouds/soft_occlude", 1.00 )

set( "sim/private/controls/skyc/mie_scattering_foggy", 25.000 )

set( "sim/private/controls/skyc/mie_scattering_ocast", 7.00 )

set( "sim/private/controls/lights/bloom_far", 3000.00 )

set( "sim/private/controls/lights/bloom_near", 120.00 )

set( "sim/private/controls/lights/mix_big", 80.000 )

set( "sim/private/controls/lights/mix_small", 25.00)

set( "sim/private/controls/lights/bloom_for_zoom", 0.60)

set( "sim/private/controls/hdr/gain_min", -4.8)

set( "sim/private/controls/clouds/ambient_gain", 4.0)

 

6. Make sure you save the file as "save all not text" and lable the extention with .lua

 

i.e scattering.lua or test.lua

 

7. make sure this file is then put into the /Resource/plugin/FlywithLua/Script folder

 

8. Start X-Plane and Enjoy it

 

 

Join the developer community!

X-Plane Scandinavia

Norway - Sweden - Finland - Iceland - Denmark

https://www.facebook.com/xpscandinavia

Like - Share - Follow us on everything

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.