Jump to content
Sign in to follow this  
Pascal_LSGC

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

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 7950X3D , watercooled, GeForce RTX 4090, RAM 64GB Kingston Fury 6000Mhz , Fractal Design 7 XL, MSI X670 Carbon, all SSD

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 7950X3D , watercooled, GeForce RTX 4090, RAM 64GB Kingston Fury 6000Mhz , Fractal Design 7 XL, MSI X670 Carbon, all SSD

Share this post


Link to post
Share on other sites

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?


| FAA ZMP |
| PPL ASEL |
| Windows 11 | MSI Z690 Tomahawk | 12700K 4.7GHz | MSI RTX 4080 | 32GB 5600 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 |

 

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...