Jump to content
Sign in to follow this  
Pascal_LSGC

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

Recommended Posts

Any of the sky colors are good. They all have the same cloud edits.

Let me know the .zip

 

TomCat357

 

 

Hmm your clouds just kill my fps. I use eyefinity 3200 x 900 and with the HD clouds i was comfortable with the frames but here I don't get above 13-14 fps. 


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

Share this post


Link to post
Share on other sites

I just checked with HDR off and it does make some difference, the colors aren't quite right, as for fps, I have a 7970 ROG and I stay around 40 to 60 in the air with clouds, sometimes 20 on the ground at a busy airport. But, I'm not at 3200x900, 1600x900 for me is all. That's lots pixels to fill.. :)

Share this post


Link to post
Share on other sites

I just checked with HDR off and it does make some difference, the colors aren't quite right, as for fps, I have a 7970 ROG and I stay around 40 to 60 in the air with clouds, sometimes 20 on the ground at a busy airport. But, I'm not at 3200x900, 1600x900 for me is all. That's lots pixels to fill.. :)

 

 

your card is very powerful, I am on a cheap 7750 2 GB DDR3 . even at 3200x900 I am pulling perfectly comfortable fps with the HD Clouds. I will try your clouds again later. I am not using HDR atm.  


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

Share this post


Link to post
Share on other sites

As we know, cloud shadows unfortunately also appear inside of the aircraft, when you are above the clouds - that's not this nice.

But don't become desperate - inspired by the post from tomcat357, I created a code to switch on and (almost) off the cloud shadows.

 

Beforehand I must say, I assigned a key to the view "cinema_verite" and always when pressing the according key, the cloud shadows are toggled. If the cloud shadow value is too high for your liking, reduce it from 1.00 to anything you like.

 

 

dataref("cloud_shadow", "sim/graphics/view/cinema_verite","readonly")

function cloud_shadow_on_off()

if cloud_shadow > 0.5 then
set( "sim/private/controls/clouds/cloud_shadow_lighten_ratio", 1.00 )
end

if cloud_shadow < 0.5 then
set( "sim/private/controls/clouds/cloud_shadow_lighten_ratio", 0.50 )
end

end

do_on_keystroke("cloud_shadow_on_off()")

 

 

I'm certain, there are more elegant ways to solve this - e.g. to determine the altitude of the cloud layers and toggling the shadows depending on whether you are above or below, but for now, it's a quick and easy solution.

Edited by uwespeed
  • Upvote 1

My sceneries (excerpt): LPMA Madeira, LGSR Santorini, the city of Fürth (Germany), ...

Share this post


Link to post
Share on other sites

I seem to be having two lighting sources when viewed at slightly different angles....  still using tomcat's original script I end up with a real bright white sunlight (which is ok maybe a bit bright) but then if I pan slightly away it drops to a darker color.  Is this just the nature of the beast?

 

p.s.  Where's the insert picture ability??  Argh


| 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

I get the light/dark issue with certain aircraft where the cockpit glass material is set to cast shadows. I think it's just an issue with shadowing. If I experience that effect with an aircraft, if I click to an outside view, the problem goes away, but it returns once I'm back in the cockpit.

Share this post


Link to post
Share on other sites

Hey guys, I've gone the other way with the raleigh_scale and increased the blue and seems the be more my liking. 


You may or may not like it better but that's what this is all about, right..


The script is


 


dataref("air_alt", "sim/cockpit2/gauges/indicators/altitude_ft_pilot","readonly")


 


set( "sim/private/controls/water/deep1_b",     0.01 )


set( "sim/private/controls/water/deep1_g",     0.20 )


set( "sim/private/controls/water/deep1_r",     0.01 )


set( "sim/private/controls/water/deep2_b",     0.35 )


set( "sim/private/controls/water/deep2_g",     0.20 )


set( "sim/private/controls/water/deep2_r",     0.10 )


 


function set_skys()


 


if air_alt < 3000 then


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


--don't seem to hinder frame rate at this value, turn clouds down if it does


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


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


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


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


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


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


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


-- set( "sim/private/controls/atmo/inscatter_gain_mie",     2.0 )


-- set( "sim/private/controls/atmo/scatter_raleigh_g",      2.80 )


end


 


if air_alt > 3010 and air_alt < 6000 then


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


end


 


if air_alt > 6010 and air_alt < 9000 then


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


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


end


 


if air_alt > 9010 and air_alt < 12000 then


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


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


end


 


if air_alt > 12010 and air_alt < 15000 then


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


end


 


if air_alt > 15010 and air_alt < 20000 then


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


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


end


 


if air_alt > 23010 and air_alt < 26000 then


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


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


end


 


if air_alt > 26010 and air_alt < 29000 then


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


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


end


 


if air_alt > 32010 and air_alt < 35000 then


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


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


end


 


if air_alt > 35010 and air_alt < 40000 then


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


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


end


 


if air_alt > 40010 and air_alt < 45000 then


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


end


 


if air_alt > 45010 then


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


end


--We use these checks so we don't get a sudden change and the plane go all crazy and the passengers cry out cause the sky is falling,,,,oh wait a minute, that's what happens when the weather updates....:-


 


end


 


 


do_sometimes("set_skys()")

Share this post


Link to post
Share on other sites

Give me a sec

 

I'm certain, there are more elegant ways to solve this

 

I'll see your script and raise you one try this :)

this ain't ideal because we have 2 cloud layers, but it works

 

 

 

--shadow on shadow off--
--but when will I learn karate--
--shadow on shadow off--
 
 
 
local cloud_tops_m0 = 0
local cloud_tops_m1 = 0
local ac_alt = 0
local view = 0
 
 
function cloud_shadow_on_off()
 
cloud_tops_m0 = get("sim/weather/cloud_tops_msl_m[0]")
cloud_tops_m1 = get("sim/weather/cloud_tops_msl_m[1]")
ac_alt = get("sim/cockpit2/gauges/indicators/radio_altimeter_height_ft_pilot")
view = get("sim/graphics/view/view_type")
 
if ac_alt > ((cloud_tops_m0 + cloud_tops_m1)/4) * 3.2 and view == 1026 then
--you can set these two to your taste
set( "sim/private/controls/clouds/cloud_shadow_lighten_ratio", 0.40 )
else
set( "sim/private/controls/clouds/cloud_shadow_lighten_ratio", 0.80 )
end
 
end
 
do_sometimes("cloud_shadow_on_off()")
Edited by tomcat357

Share this post


Link to post
Share on other sites

if ac_alt > ((cloud_tops_m0 + cloud_tops_m1)/2) * 3.2 and view == 1026 then


 


I'm playing with this line to see if I can get a happy medium but it's so weather related


the script works though


Share this post


Link to post
Share on other sites

Finally i have a new GPU, and i can try this awesome effects, but de default clouds are ugly compared to SMP. :(

Which clouds should i use?


X-Plane%20banner1.jpg

Share this post


Link to post
Share on other sites

Finally i have a new GPU, and i can try this awesome effects, but de default clouds are ugly compared to SMP. :(

Which clouds should i use?

 

 

You can either go for Skymaxx Pro or use the HD clouds from .org


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

Share this post


Link to post
Share on other sites
Guest Mik75

Will the skymax pro clouds create the shadowing?

not yet. cloud shadows work only with the default clouds right now.

The raleigh tweaks can be used with SMP.

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