Procedural texturing: Difference between revisions

Jump to navigation Jump to search
Line 219: Line 219:


The default value is 0.5 and the parameter range is 0 (completely transparent) to 1 (completely opaque).
The default value is 0.5 and the parameter range is 0 (completely transparent) to 1 (completely opaque).
=== The dot texture ===
The dot overlay uses sparse dot noise to create detail in the scene. Sparse dot noise textured with a rock texture can give the appearance of boulders scattered across the terrain, the same noise textured with a grass texture can be used to create round vegetation patches.
[[File:hires_terrain03.jpg|300px|center|The dot overlay texture creating grass patches]]
Both the dot size and the dot density can be controlled by the user. The range out to which the dots are visible is automatically adjusted based on the dot size scale. By default, the dot texture is set to void.png, which means that no dot texture is used.
* declaration:
<texture-set>
  <texture>base_texture.png</texture>
  <texture n="11">hires_texture.png</texture>
  <texture n="12">overlay_texture.png</texture>
  <texture n="13">gradient_texture.png</texture>
  <texture n="14">grain_texture.png</texture>
  <texture n="15">dot_texture.png</texture>
</texture-set>
* parameters:
<parameters>
  <dot_density> 1.0</dot_density>
  <dot_size> 1.0</dot_size>
</parameters>
The default value for <dot_density> is 1.0, the parameter can be set in the range from 0.0 to 1.0 (values above 1.0 do not increase the dot density further). The default value for <dot_size> is also 1.0, which creates dots at size scales varying between 10 cm and few m. The parameter is a multiplier for these default values, i.e. at a value of 10 dots of ~10-20 m size are created.


==== An example ====
==== An example ====
1,360

edits

Navigation menu