ALS technical notes: Difference between revisions

Jump to navigation Jump to search
Line 1,137: Line 1,137:


=== Parameters ===
=== Parameters ===
The effect can be configured with all the parameters of the model interior effect, most useful of those is likely the opacity map.
As specifically new parameters, the following set is used:
<syntaxhighlight lang="xml">
  <texture n="5">
<type>2d</type>
<filter>linear-mipmap-linear</filter>
<wrap-s>clamp</wrap-s>
<wrap-t>clamp</wrap-t>
<internal-format>normalized</internal-format>
<image>Aircraft/Generic/Effects/dust-effect-overlay.png</image>
</texture>
<sample-res>0.0007</sample-res>
<dirt-factor>3.0</dirt-factor>
<contrast>1.0</contrast>
</syntaxhighlight>
The supplied texture is the image of the dust layer that is shown. The default image is reasonable to show a dirty screen, but it can be changed into a user-supplied image.
The first parameter is the sampling scale of the blur kernel (see the HUD effect). It describes how blurry the display will appear when overbright in a dark scene. For too large values, the finite number of samples will become very apparent, so this needs to be adjusted with care.
The second parameter describes how pronounced the dirt layer appears - it is a multiplier to the alpha value of the dust texture. For the default texture, values in the range [0:3] are appropriate.
The contrast parameter finally needs to be set by a model of the current mean light level in the cockpit (this is not just the ambient scene light, as there may be cockpit lights, instrument lights etc.) A contrast value of 0 means that the display is on the dim side with respect to the overall light level, a value of 2 means that it is set much to bright and will appear blurry and discolored.
Conversely, a very low contrast value leads to display content extinction if direct light falls onto the display (this needs an opacity map for best effect and queries the texel color values, so the screen brightness should be set up by changing the surface emissivity for this to work correctly).
Dependent on how the lighting inside the cockpit is modeled, it's the aircraft maintainer's responsibility to determine a good contrast value, FG does not have a good model of light inside a cockpit and eye adaption level.


== The ALS interior model effect  ==
== The ALS interior model effect  ==
1,360

edits

Navigation menu