Changes

Jump to: navigation, search

Procedural Texturing

465 bytes added, 07:40, 4 February 2018
The dirt runway effect
(i.e. setting a parameter to 100 means that the texture sheet is supposed to represent a 100 m x 100 m patch of runway). This is different from the way the default renderer treats dirt runways by stretching the assigned texture over the whole runway (i.e. texture magnification depends on runway size). The strength of the grain overlay can be controlled by
<syntaxhighlight lang="xml">
<grain_strength>0.3</grain_strength>
</syntaxhighlight>
where a value of zero implies no grain texture and a value of 1 the full grain effect as on the texture.
If
<syntaxhighlight lang="xml">
<bias_center>1</bias_center>
</syntaxhighlight>  
is set to 1, the noise distribution will tend to favor the base layer in the center of the runway. <b>This requires a specific uv-mapping and will not work for custom-generated runways.</b> The strength of that bias is set by
<syntaxhighlight lang="xml">
<bias_center_strength>0.6</bias_center_strength>
</syntaxhighlight>
which is between 0 (no bias) and 1 (don't draw overlay layer in runway center no matter what).
In addition, the effect uses a normal map (since it is used in a non-standard way, touch at your own risk) - the visual 'bumpiness' of the runway can be adjusted using
<syntaxhighlight lang="xml">
<relief_strength>0.35</relief_strength>
</syntaxhighlight>
Using different mixtures of textures and parameters, a wide variety of visuals can be achieved, a few examples in the following.
A lakebed texture overlaid with sand gives proper visuals for e.g. the Rogers Dry Lake runways at Edwards AFB:
<syntaxhighlight lang="xml">
<texture-set>
<texture>Runway/lakebed_taxiway.png</texture>
<grain_strength>0.3</grain_strength>
</parameters>
</syntaxhighlight>
 |[[File:Dirt rwy01.jpg|500px|center|Dirt runway example 1]]
Using a largely grass-textured surface and allowing some gravel to show in the runway center gives the appearance of a worn grass runway:
<syntaxhighlight lang="xml">
<texture-set>
<texture>Runway/dirt_rwy.png</texture>
<grain_strength>0.8</grain_strength>
</parameters>
</syntaxhighlight>
|[[File:Dirt rwy02.jpg|500px|center|Dirt runway example 2]]
Using the effect 'as is', i.e. without any additional parameters, reproduces the old appearance of the dirt runway effect in ALS:
|[[File:Dirt rwy03.jpg|500px|center|Dirt runway example 3]]
With the original dirt runway texture mapped to a small size and framed by less structured dirt, also a compelling result can be achieved:
<syntaxhighlight lang="xml">
<texture-set>
<texture>Runway/dirt_rwy.png</texture>
<grain_strength>0.4</grain_strength>
</parameters>
</syntaxhighlight>
|[[File:Dirt rwy04.jpg|500px|center|Dirt runway example 4]]
Using grass as the overlay material blends the runway outline nicely into the airport keep:
<syntaxhighlight lang="xml">
<texture-set>
<texture>Runway/dirt_rwy.png</texture>
<grain_strength>0.6</grain_strength>
</parameters>
</syntaxhighlight>
|[[File:Dirt rwy05.jpg|500px|center|Dirt runway example 5]]
Finally an example of diffuse sand patches blended into each other by low frequency noise and a large value of the transition in the filter:
<syntaxhighlight lang="xml">
<texture-set>
<texture>Runway/dirt_rwy.png</texture>
<grain_strength>0.2</grain_strength>
</parameters>
</syntaxhighlight>
|[[File:Dirt rwy06.jpg|500px|center|Dirt runway example 6]]
=== Overlay layers ===
1,360
edits

Navigation menu