Pascal_LSGC

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

Recommended Posts

hello friends!

 

Nice shots Pascal!

 

That´s the point why i posted my topic (and share my "findings") ! And as i said, there are so many capabilities in this engine! So we can together find out "the best settings" -> it can be also hepful for Ben or LR (or giving them helpful hints) to implement this settings in the next update (f.e)! it´s now possible to save the ART data refs (or to make such plugin?, Bens statement was "NO" ) i have no luck with my trials! You can try also sky/ or lights/ section, there are also many variables or try out /white out in clouds=0.00000" :-)!

(as a small hint f. e.) !

 

I´m happy, and for now, I´m entering always the values for my prefered datarefs (such clouds, scattering ....and when i´m sure that these values are without errors or when I find out the best settings, i will also share the values)

 

regards, Arnie !

The hint regarding the white out in clouds is fantastic! ;-) It's amazing what XPX has to offer under the hood!

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Thanks Arnie. The screenshots look just great, but with so many variables it's kind of daunting when you don't have spare time to tinker.

 

So looking forward to your ideal settings when you've settled on them!

 

BTW everyone, Arnie's hint about setting

 

skyc/white_out_in_clouds=0.000000

 

is a really good tip if you don't want the, well, you can guess...:)

 

This one got a bad side effect. Once set to 0, the visibility rendering (flight visiblit) doesn't work anymore, if a METAR reports low visibility. Seems that this ART is connected to the main visibility settings in XPlane. 

Share this post


Link to post
Share on other sites

This one got a bad side effect. Once set to 0, the visibility rendering (flight visiblit) doesn't work anymore, if a METAR reports low visibility. Seems that this ART is connected to the main visibility settings in XPlane. 

thank you JakobG ! i did not notice that on my machine, by the way, that´s the reason why i proceed with caution to give this hints -> it´s not easy to know what will be also affected by this values (as I've already mentioned  -> the art data refs are not for public use and not documented, and i am also a privat person and have nothing to do with Laminar and don´t wont to have some "negative" impact on XPLANE or elements of development, and i have allready some values for mie/scattering (like pascal) with some nice results, but have some artefacts, so i do not "publish" them) ! I allways write "try out" -> and not "use them" :-), but as you can see -> with some nice results, and you also can see, which jewel is hidden in XPLANE :-) (more than now)!

And this "observations" can also be good for development! ( if possble or wanted )! 

 

kind regards!

Arnel

 

edit: you can nothing damage with art data refs, just revert the values or make a restart of XPLANE and you will have the old same values !

  • Upvote 1

Share this post


Link to post
Share on other sites

hello friends!

 

Nice shots Pascal!

 

That´s the point why i posted my topic (and share my "findings")  ! And as i said, there are so many capabilities in this engine! So we can together find out "the best settings"  -> it can be also hepful for Ben or LR (or giving them helpful hints) to implement this settings in the next update  (f.e)! it´s now possible to save the ART data refs (or to make such plugin?, Bens statement was "NO" ) i have no luck with my trials! You can try also sky/ or lights/ section, there are also many variables or try out /white out in clouds=0.00000" :-)!

(as a small hint f. e.) !

 

I´m happy, and for now, I´m entering always the values for my prefered datarefs (such clouds, scattering ....and when i´m sure that these values are without errors or when I find out the best settings, i will also share the values) 

 

regards, Arnie !

 

Hello Arnie,

First, thanks a lot for having initiated this! Your findings are absolutely essential, and I guess we are all playing with art controls now. :D

 

One way of saving and loading art controls and datarefs is to use a placeholder plane, you just copy any default plane in it's own folder, you add the SASL plugin, create en avionics.ini file in the plane's folder with the lines that I and some others indicated in this thread.

 

For now, instead of playing with too many art controls at the same time, I've tried to understand how the scattering parameters work together, and find a convincing and simple set of parameters, to give us somewhere to start. Here are my results.

 

 

Some inital tweaks

 

To have more vivid colors in the sim, I have my gamma setting in the graphic options set at 1.8. I used to push my monitor's contrast to counter the darkening, but here's much better: once again, X-Plane has everything needed in it's art controls. Just set

 

hdr/gain_min = -2.8

 

and see the result by yourself !

All the following tweaks where done with these initial settings. Different initial parameters probably require some changes to my suggested parameters thereafter. Experiment !

 

A reminder: all these tweaks only work with hdr set to on in the graphic options.

 

 

rayleigh_r (red) parameter and mie scattering

 

We can use one in place of the other. If we add some red, we can easily find the exact original effect by removing some mie and adjusting rayleigh_gain. What does this mean ? We can set red to a value near 0 and get all the effects we want with mie. In fact, mie scattering is the same as rayleigh with green = blue = red (in fact, red just a tad higher). What's the use of setting red to (nearly) 0 then? Because it simplifies a lot hue adjustment. I you use the red parameter, each time you change it you must also adjust blue and/or green to find/keep the right tint.

 

Here is a proof that rayleigh_r and mie parameter can be exchanged providing a small adjustment to rayleigh gain:

 

rayleigh-mie.jpg

 

 

 

Rayleigh green, blue and gain

 

The gain_rayleigh parameter scales the effect of a given green and blue pair. This means that if we double both blue and green, and divide the gain by 2, we get the exact same image. In a sense, the inital choice of rayleigh_gain is arbitrary, and the overall effect can be adjusted by green and blue values only.

We try to find the right proportion of green relative to blue. On the next pictures I settled on a green/blue proportion of 2.8/10. It is necessary to use some green in the color mix, many examples here suggest tweaking the _b parameter only but the result is way too violet.

 

 

Using rayleigh and mie together

 

I then looked for a set of ideal settings mixing rayleigh and mie scattering. I found this little useful trick: since rayleigh_b is arbitrary, by setting it at 10, it happens that the difference between gain_rayleigh and gain_mie is always 11 (in my set of ideal mix). You can have gain_rayleigh=11 and gain_mie=0, or gain_rayleigh=14 and gain_mie=3, etc... I am left with only one parameter to chose to my liking at a session start: gain_mie. By adding 11 to it I can adjust gain_rayleigh. All other parameters have been set once for all and should give nice results.

 

 

Finally, suggested parameters

 

Enough babbling, I know that you just want to grab one set which works and have fun in X-Plane. Here it is:

 

In graphic option screen:

 

Gamma setting = 1.8

HDR ON

 

In atmospheric options screen:

 

Visibility set at maximum 55NM

In clean condition, set the first cloud layer very high.

 

In dataref editor, art controls section:

 

hdr/gain_min=-2.8

atmo/atmo_scale_raleigh=20.000

atmo/inscatter_gain_mie=2.000

atmo/inscatter_gain_raleigh=13.000

atmo/scatter_raleigh_b=10.000

atmo/scatter_raleigh_g=2.800

atmo/scatter_raleigh_r=0.010

 

 

 

And here are my results with varying pairs of mie/rayleigh parameters:

 

 

rayleigh_11.jpg

rayleigh_12.jpgrayleigh_13.jpgrayleigh_15.jpgrayleigh_17.jpg

 

 

Enjoy!

Pascal

  • Upvote 4

Share this post


Link to post
Share on other sites

I just cannot believe the effect , talking about shots on the first page. I have never seen anything like that , not even FSX hmmm in Fsx the only effect I used was SweetFX and scenery NL2000. 

Share this post


Link to post
Share on other sites

Complementary; of Pascal's #2 settings:

 

You just got to love these settings.

 

 

Share this post


Link to post
Share on other sites

Awesome findings, Pascal! You've done the community a great service, especially if these tweaks are implemented into a future patch or otherwise made to stick with a plug-in! Trying them out right now on my tour of European capitals and I definitely like what I see:

 

yTlbv4L.jpg

  • Upvote 6

Share this post


Link to post
Share on other sites

This one got a bad side effect. Once set to 0, the visibility rendering (flight visiblit) doesn't work anymore, if a METAR reports low visibility. Seems that this ART is connected to the main visibility settings in XPlane.

That seems to be true when saved and loaded with the lua, but as I don't use real weather at the moment (until we get a decent injector) haven't seen this problem while manually inputting the ref change. Good to be aware of though so thanks for pointing it out.

 

Pascal thanks for the settings! Looks wonderful.

 

Anything you can tell us about your communication with LR on these changes?

Share this post


Link to post
Share on other sites

 

[....]

 

Enjoy!

Pascal

 

WOW!

What agreat set of screenshots and what a super informative message post here!

Amazing!

Really appreciated!

Thank Yo very much for sharing!

 

 

 

Anything you can tell us about your communication with LR on these changes?

 

+1 - would be most interesting to find out more about how things might turn out to be take care of in some of the next updates!

Share this post


Link to post
Share on other sites

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

 

Thanks,

Share this post


Link to post
Share on other sites

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)

  • Upvote 1

Share this post


Link to post
Share on other sites

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  ^_^ 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

 

 


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

Share this post


Link to post
Share on other sites

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

 

regards Jakob

Share this post


Link to post
Share on other sites

Any pics with this tweak for non-HDR?

 

Hi Tom,

atmospheric scattering doesn't work without HDR

cloud shadows works with or without HDR.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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! 

Share this post


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