Log in to reply
 

[MISC] Fix the FOG level, distance & quantity



  • Fix horizon fog level please

    alt text



  • @turtlevan fix in timec



  • @turtlevan Intersting page on fog here: https://lwjglgamedev.gitbooks.io/3d-game-development-with-lwjgl/content/chapter16/chapter16.html

    With the formulas on that page, you could probably generate an accurate set of numbers to use to modify the values in the timecycle files to make it more realistic.



  • @Frazzlee @LeeC2202

    What timecycle files & which variables modify this fog distance & intensity?



  • @turtlevan There seems to be sections for fog in pretty much every file... some quite basic, some more complex.

    In w_clear.xml for instance, there is this section near the top:

      <fog_start> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_start>
      <fog_near_col_r> 0.0039 0.0961 0.4617 0.5938 0.3462 0.6763 0.4192 0.4192 0.3042 0.2405 0.1100 0.0021 0.0039</fog_near_col_r>
      <fog_near_col_g> 0.0156 0.1626 0.6973 0.5684 0.4502 0.7930 0.4939 0.4939 0.2737 0.2405 0.2063 0.0377 0.0156</fog_near_col_g>
      <fog_near_col_b> 0.0392 0.2527 0.8711 0.5059 0.6143 0.8936 0.5601 0.5601 0.2289 0.2405 0.3809 0.1049 0.0392</fog_near_col_b>
      <fog_near_col_a> 1.0020 1.0020 1.0020 1.0020 1.0020 1.0020 1.0000 1.0000 1.0020 1.0020 1.0020 1.0020 1.0020</fog_near_col_a>
      <fog_col_r> 0.0118 0.3130 0.9600 1.0000 0.9097 0.9097 0.9097 0.9097 1.0020 0.3621 0.7559 0.1902 0.0115</fog_col_r>
      <fog_col_g> 0.0510 0.4561 0.7212 0.6143 0.8726 0.8726 0.8726 0.8726 0.6602 0.1118 0.2510 0.1139 0.0503</fog_col_g>
      <fog_col_b> 0.1215 0.7769 0.5840 0.3018 0.7173 0.7173 0.7173 0.7173 0.1509 0.1118 0.1097 0.1902 0.1205</fog_col_b>
      <fog_col_a> 1.0000 1.0020 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0020 1.0020 1.0000 1.0000 1.0020</fog_col_a>
      <fog_sun_lighting_calc_pow> 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000 8.0000</fog_sun_lighting_calc_pow>
      <fog_moon_col_r> 0.1100 0.1100 0.2212 0.4617 0.2776 0.5000 0.5000 0.5000 0.5000 0.5000 0.5000 0.0066 0.0520</fog_moon_col_r>
      <fog_moon_col_g> 0.2173 0.2173 0.4070 0.5811 0.4502 0.5000 0.5000 0.5000 0.5000 0.5000 0.5000 0.0677 0.1100</fog_moon_col_g>
      <fog_moon_col_b> 0.4561 0.4561 0.8145 0.8003 0.8003 0.5000 0.5000 0.5000 0.5000 0.5000 0.5000 0.1731 0.2405</fog_moon_col_b>
      <fog_moon_col_a> 1.0020 1.0020 1.0020 1.0020 1.0020 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 1.0000 1.0020</fog_moon_col_a>
      <fog_moon_lighting_calc_pow> 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000 18.0000</fog_moon_lighting_calc_pow>
      <fog_east_col_r> 0.0039 0.0372 0.2627 0.2859 0.1780 0.7554 0.1919 0.2996 0.1000 0.1255 0.1097 0.0020 0.0039</fog_east_col_r>
      <fog_east_col_g> 0.0157 0.0724 0.2820 0.3333 0.2411 0.8550 0.2898 0.3711 0.1310 0.1526 0.2078 0.0372 0.0157</fog_east_col_g>
      <fog_east_col_b> 0.0392 0.1272 0.3804 0.5396 0.5225 1.0000 0.4705 0.4905 0.2134 0.2588 0.3804 0.1039 0.0392</fog_east_col_b>
      <fog_east_col_a> 1.0000 1.0020 1.0000 1.0000 1.0020 1.0020 1.0000 1.0020 1.0020 1.0000 1.0000 1.0020 1.0000</fog_east_col_a>
      <fog_density> 5.0000 15.0000 25.0000 20.0000 10.0000 2.0000 20.0000 20.0000 7.0000 15.0000 10.0000 10.0000 5.0000</fog_density>
      <fog_falloff> 5.0000 25.0000 22.1875 15.0000 10.0000 5.0000 20.0000 20.0000 10.0000 10.0000 10.0000 5.0000 5.0000</fog_falloff>
      <fog_base_height> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 30.0000 0.0000 0.0000 0.0000</fog_base_height>
      <fog_alpha> 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000</fog_alpha>
      <fog_horizon_tint_scale> 4.0977 10.8750 10.0000 7.0000 3.7969 1.5977 1.5977 1.5977 2.0000 5.4063 10.0000 1.8975 4.0977</fog_horizon_tint_scale>
      <fog_hdr> 0.2000 0.2000 1.0000 5.0000 15.0000 12.0000 12.0000 12.0000 35.4375 2.0000 2.0000 0.5000 0.2000</fog_hdr>
      <fog_haze_col_r> 0.0000 0.0059 0.0184 0.0784 0.0000 0.0813 0.0609 0.0609 0.0063 0.0011 0.0053 0.0000 0.0000</fog_haze_col_r>
      <fog_haze_col_g> 0.0000 0.0176 0.0707 0.1332 0.0363 0.1375 0.0975 0.0975 0.0322 0.0260 0.0271 0.0000 0.0000</fog_haze_col_g>
      <fog_haze_col_b> 0.0000 0.0529 0.1587 0.3213 0.1344 0.3130 0.1652 0.1652 0.0999 0.0835 0.0950 0.0000 0.0000</fog_haze_col_b>
      <fog_haze_density> 5.0000 4.0000 4.0000 4.0000 4.0000 4.0000 4.0000 4.0000 4.0000 4.0000 4.0000 4.0000 5.0000</fog_haze_density>
      <fog_haze_alpha> 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000</fog_haze_alpha>
      <fog_haze_hdr> 0.2000 0.2000 1.0000 4.4844 20.0000 20.0000 23.0000 23.0000 12.9844 5.8633 2.0000 0.5000 0.2000</fog_haze_hdr>
      <fog_haze_start> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_haze_start>
      <fog_shape_bottom> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_shape_bottom>
      <fog_shape_top> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_shape_top>
      <fog_shape_log_10_of_visibility> 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000</fog_shape_log_10_of_visibility>
      <fog_shape_weight_0> 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000</fog_shape_weight_0>
      <fog_shape_weight_1> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_shape_weight_1>
      <fog_shape_weight_2> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_shape_weight_2>
      <fog_shape_weight_3> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_shape_weight_3>
      <fog_shadow_amount> 0.0000 0.9893 0.8975 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.9893 0.9893 0.8975 0.0000</fog_shadow_amount>
      <fog_shadow_falloff> 1.0000 600.0000 600.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 500.0000 400.0000 800.0000 1.0000</fog_shadow_falloff>
      <fog_shadow_base_height> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_shadow_base_height>
      <fog_volume_light_range> 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000</fog_volume_light_range>
      <fog_volume_light_fade> 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000 25.0000</fog_volume_light_fade>
      <fog_volume_light_intensity> 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150 0.0150</fog_volume_light_intensity>
      <fog_volume_light_size> 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000</fog_volume_light_size>
      <fogray_contrast> 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000</fogray_contrast>
      <fogray_intensity> 0.0100 0.0100 0.5000 0.8975 0.9478 0.9478 0.9478 0.9478 0.9478 0.8975 0.7979 0.0100 0.0100</fogray_intensity>
      <fogray_density> 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000</fogray_density>
      <fogray_nearfade> 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000</fogray_nearfade>
      <fogray_farfade> 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000 200.0000</fogray_farfade>
    

    And then another section further down with similar values. Those appear in all the w_clear, w_foggy etc... xml files. Plus there is more data in the timecycle_mods_1, 3 & 4.xml files.



  • @LeeC2202

    Thank you


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.