L3DT documentation
Large 3D terrain generator

Differences

This shows you the differences between two versions of the page.

l3dt:userguide:ops:lm [2017/08/31 05:36] (current)
Line 1: Line 1:
 +====== Light map operations ======
  
 +===== Generating the light map =====
 +
 +The [[l3dt:reference:maps:lm|light map]] is made by selecting the '//Operations→Light map→Generate map//' option in the menu. This option will open the [[#the light mapping wizard|light mapping wizard]] (discussed next).
 +
 +For more info on how the light mapping algorithm works, see the [[l3dt:algorithms:lm|algorithms page]].
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +===== The 'Light mapping' wizard =====
 +
 +The //Light mapping// wizard consists of 3 panes, the first of which is:
 +
 +{{ l3dt:userguide:wizards:lightmap.png }}
 +
 +The controls should, hopefully, be quite intuitive. A few things of note:
 +
 +  * //Brightness// - if the light map is too bright, turn this down. If it's not bright enough, turn this up. Values larger than 1 are permitted, but may cause saturation.
 +  * //Sun / Ambient ratio// defines how bright the sun (direct) light is to the ambient (diffuse) light. This effectively sets how dark shadows will be.
 +  * The //Sun// direction angle is in the clockwise direction.
 +
 +Here is some example output, using two different //sun-directions//:
 +
 +<html><div align="center"></html>
 +| {{ l3dt:userguide:ops:lm:lm1.jpg?300x300 }} | {{ l3dt:userguide:ops:lm:lm2.jpg?300x300 }} |
 +^  Sun direction-angle of -45 degrees  ^  Sun direction-angle of +135 degrees  ^
 +<html></div></html>
 +
 +When you click on the '//Next >>//' button, you will be taken to the 2<sup>nd</sup> lightmapping pane:
 +
 +{{ l3dt:userguide:wizards:lightmap2.png }}
 +
 +Things to note here are:
 +
 +    * The //Use shadow map// checkbox determines whether the terrain will shadow itself. This is not required when the sun elevation is high in the sky, but looks cool when it is low in the sky.
 +    * The //Apply bump-mapping// check box enables [[l3dt:algorithms:lm#bump-mapping|land-type bump-mapping]], which provides additional detail in the light map (only available in L3DT Professional). This works best with high-resolution light-maps of 8<html>&times;</html> size or greater((Note bump-mapping the light map is unnecessary if you have already bump-mapped the normals map.)).
 +    * If you select the //Water effects// check box, the underwater parts of the lightmap will be affected by absorption and refraction, which is controlled in the next pane of this wizard (see [[#light absorption by water]], below).
 +    * The //Make high-resolution light map// option, which is also only available in //[[http://www.bundysoft.com/L3DT/downloads/professional.php|L3DT Professional]]//, allows you to make more detailed lightmaps ([[l3dt:algorithms:lm#high-resolution_light-mapping|discussed here]]).
 +    * The //Split map into tiles (mosaic map)// checkbox lets you split the map into a set of smaller tiled images. This is probably a good idea if you're making a large high-res lightmap, as it won't hog so much RAM.
 +
 +
 +===== Light absorption by water =====
 +
 +L3DT can calculate the colour and intensity of the light that reaches the bottom of lakes / seas using some good-ol' undergraduate physics (see [[l3dt:algorithms:lm#light_absorption_by_water|algorithms page]]). Using the //light/water effects// wizard (below), you can set the absorption half-depths for red, green and blue light respectively. You can also enable (or disable) use of the Fresnel transmission coefficients, which give true elevation angle dependency. A 'generic transmission coefficient' is provided to allow for surface scattering losses.
 +
 +<html><div align="center"></html>
 +|  {{l3dt:userguide:wizards:lm_water.png}}  |
 +|  //Note that the depth sliders are logarithmic.//  |
 +<html></div></html>
 
l3dt/userguide/ops/lm.txt · Last modified: 2017/08/31 05:36 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki