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

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

Can someone write a lua script that disables the glare at night (because of the sometimes extreme and ugly moon glare) but enables it for the daytime/sunrise/sunset (because otherwise you have no sun at all)? This could be using the sun pitch dataref (kill glare if sun pitch is less than - 8.0 degrees)...

 

This would be the art control

 

set( "sim/private/controls/dome/kill_glares", 1.00)

 

Thanks in advance

Flo

Flo B.

dataref ("sonnenwinkel", "sim/graphics/scenery/sun_pitch_degrees", "readonly")

 

function glare ()

 

if sonnenwinkel <= -8.00 then

set( "sim/private/controls/dome/kill_glares", 1.00)

end 

if sonnenwinkel >= -8.01 then

set( "sim/private/controls/dome/kill_glares", 0.00)

end

end

 

do_sometimes ("glare()")

 

it´s some simple function, but for this Dataref should be enough!

cheers!

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

Thanks a lot AUA, I will try it right away tomorrow. Will report back.

 

Flo


Works like a charm :) I changed the degree setting to 5/5.01, the transition is better then.

Thanks for your help!!!

 

Flo

Flo B.

Picture before and after please :)

 

@AUA425 Would this be better of in a single .lua or could one combine it?

X-Plane Scandinavia

Norway - Sweden - Finland - Iceland - Denmark

https://www.facebook.com/xpscandinavia

Like - Share - Follow us on everything

 

He guys we need to get organized. Could someone post an up to date tuned lua script on this forum? We need to have a hub for this project. Perhaps GitHub?

.....Or downloads at xplane org?

.....Or downloads at xplane org?

 

Someone at the org made some Lua scripts that already that utilize some of these atmospheric changes here:

 

http://forums.x-plane.org/index.php?app=downloads&showfile=22387

 

It's called "Real Terra Haze" by Spas79

 

You can download and take a look at those scripts.

Someone at the org made some Lua scripts already that utilize some of these atmospheric changes here:

 

http://forums.x-plane.org/index.php?app=downloads&showfile=22387

 

It's called "Real Terra Haze" by Spas79

 

You can download and take a look at those scripts.

Ok thanks! I was also wondering if we could have a community hub open to those active in this development so we could streamline this process.

Oops never-mind I wasn't aware of this. Did someone resolve the sky max pro issue?

hello friends!

 

As Tom suggested  -> i would upload this "tweaks" to xp-developer.com, it´s more manageable!

 

@Tom  as you like, you can ad this string to your current lua script, or write a single lua. file ( i have all my tweaks in one single file), there is no influence on performance !

 

cheers!

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

The string cloud_shadow_lighten_ratio is too high. Set max to 0.9

 

I adjusted this value down to .6 and still am getting the black/dark line in external view?  What are others using to get rid of it?

My Liveries | FAA ZMP | PPL ASEL |
| Windows 11 | MSI Z690 Tomahawk | 12700K 4.7GHz | MSI RTX 4080 | 64GB 6000 MHz DDR5 | 500GB Samsung 860 Evo SSD | 2x 2TB Samsung 970 Evo M.2 | EVGA 850W Gold | Corsair 5000X | HP G2 (VR) / LG 27" 1440p |

 

 

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.