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

That looks amazing. Can anyone do a tutorial as to where and how to tweak these settings?

 

Thanks,

Zicheng Cai

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

What two threads ? damn did post in the wrong thread .

Ryzen 5 1600x - 16GB DDR4 - RTX 3050 8GB - MSI Gaming Plus

That looks amazing. Can anyone do a tutorial as to where and how to tweak these settings?

 

Thanks,

 

All the information you need is in the first post of this thread and the thread that it links to. If you want to save the settings into the avionics.lua file of a Carenado (if you have one) you can use this template: (these are Pascal's settings and they're bloody marvellous).

 

defineProperty("CloudShadowLightenRatio", globalPropertyf("sim/private/controls/clouds/cloud_shadow_lighten_ratio")) set(CloudShadowLightenRatio, 0.80)

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

defineProperty("AtmoInscatterGainMie", globalPropertyf("sim/private/controls/atmo/atmo/inscatter_gain_mie")) set(AtmoInscatterGainMie, 2.0)

defineProperty("AtmoInscatterGainRaleigh", globalPropertyf("sim/private/controls/atmo/inscatter_gain_raleigh")) set(AtmoInscatterGainRaleigh, 13.0)

defineProperty("AtmoScatterRaleighb", globalPropertyf("sim/private/controls/atmo/atmo/scatter_raleigh_b")) set(AtmoScatterRaleighb, 10.00)

defineProperty("AtmoScatterRaleighg", globalPropertyf("sim/private/controls/atmo/atmo/scatter_raleigh_g")) set(AtmoScatterRaleighg, 2.800)

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

defineProperty("HDRGainMin", globalPropertyf("sim/private/controls/hdr/gain_min")) set(HDRGainMin, -2.8)

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

Yep scotchegg, and for those of us (me) using skymaxx you can use those parameters in your avionics.lua file aswell EXCEPT CloudShadowLightenRatio,

 

so copy from defineProperty("AtmoScaleRaleigh", line and below and your good to go with raleigh tweaks  ^_^ 

  • Author

All the information you need is in the first post of this thread and the thread that it links to. If you want to save the settings into the avionics.lua file of a Carenado (if you have one) you can use this template: (these are Pascal's settings and they're bloody marvellous).

 

Thanks Scotchegg, this is fantastic to see many people test these settings in different situations !

 

FYI, it is not necessary to use a Carenado plane. It's even simpler to copy-paste the default C172, add SASL inside a created "plugins" folder, and create the avionics.lua file inside the plane's folder with just the parameters exactly as you wrote them.

 

Pascal

I added some of my latest preview X-Plane 10 Tree Lines and Farms V2 screenshots to the AVSIM screenshot folder:

http://forum.avsim.net/topic/434922-more-x-plane-10-shots-with-tweaked-atmosphere/

Andras Fabian / Alpilotx

Visit www.alpilotx.net, a site about X-plane scenery

You can see some landscape and other photographs from me here:

http://www.flickr.co...s/weathermaker/

A simple Fly with Lua script does the trick quite nicely.

 

set( "sim/private/controls/clouds/cloud_shadow_lighten_ratio",       0.8 )
set( "sim/private/controls/atmo/atmo_scale_raleigh",        20.0 )
set( "sim/private/controls/atmo/inscatter_gain_mie",     2.0 )
set( "sim/private/controls/atmo/inscatter_gain_raleigh",        13.0 )
set( "sim/private/controls/atmo/scatter_raleigh_b",         10.0 )
set( "sim/private/controls/atmo/scatter_raleigh_g",      2.80 )
set( "sim/private/controls/atmo/scatter_raleigh_r",    0.010 )
set( "sim/private/controls/skyc/white_out_in_clouds",     0.5 )
 
 
tomcat357
  • Author

 

 


A simple Fly with Lua script does the trick quite nicely.

 

Excellent tip, Tomcat!

FlyWithLua is installed in the main plugins folder, the datarefs and art controls will be applied at X-Plane's start.

 

Pascal

Could you guys share such a script? I know FlyWithLua but haven't worked with it by now.

 

regards Jakob

  • Author

Any pics with this tweak for non-HDR?

 

Hi Tom,

atmospheric scattering doesn't work without HDR

cloud shadows works with or without HDR.

Could you guys share such a script? I know FlyWithLua but haven't worked with it by now.

 

regards Jakob

 

It right in the post. Just copy and paste

 

tomcat357

It right in the post. Just copy and paste

 

tomcat357

Wilco. Will try that tomorrow... Just thought it needs a special format besides the scripts orders...

  • Author

Wilco. Will try that tomorrow... Just thought it needs a special format besides the scripts orders...

 

Create a file named as you like, for example:

 

myatmospherictweaks.lua

 

inside the scripts folder of FlyWithLua.

Open it in a text editor and copy paste the code Tomcat357 suggested.

 

Pascal

Wilco. Will try that tomorrow... Just thought it needs a special format besides the scripts orders...

just put the whole flywithlua plugin in your  "\X-Plane 10\Resources\plugins" folder. in this flywihtlua plugin folder you have a folder named "scripts"!

 

Copy and paste tomcat´s357 setting in a notepad or notepad++ and save this file as f.e. "datarefs.lua" (you must use lua as file extension) and put this file in "\X-Plane 10\Resources\plugins\FlyWithLua\Scripts". at start you will have dataref settings, as filed, activated! 

AMD Ryzen 9 9950X3D , watercooled, GeForce RTX 4090, RAM 64GB Kingston Fury 6000Mhz , Fractal Design 7 XL, MSI X670 Carbon, all SSD

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.