This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
mapping:cawe:lighting [2007-10-28 23:36] Carsten Augmented the text |
mapping:cawe:lighting [2007-10-29 20:58] Carsten Augmented the text |
||
---|---|---|---|
Line 32: | Line 32: | ||
Here is an overview of the available Radiosity light sources and how they are created in a map: | Here is an overview of the available Radiosity light sources and how they are created in a map: | ||
+ | |||
==== Area Light Sources ==== | ==== Area Light Sources ==== | ||
Any primitive (brush or Bezier patch) surface that you place in a Ca3DE map can be turned into an //area light source//. The key point here is that a surfaces characteristic of being an area light source is //not// :!: directly set in the Ca3DE World Editor CaWE. Rather, being an area light source is a //material// property. | Any primitive (brush or Bezier patch) surface that you place in a Ca3DE map can be turned into an //area light source//. The key point here is that a surfaces characteristic of being an area light source is //not// :!: directly set in the Ca3DE World Editor CaWE. Rather, being an area light source is a //material// property. | ||
- | |||
That means that a surface becomes an area light source when it has a material applied to it which in turn is defined to emit Radiosity light. | That means that a surface becomes an area light source when it has a material applied to it which in turn is defined to emit Radiosity light. | ||
- | As a mapper, if you want to find out if a material emits area light, its intensity and color, FIXME | + | * In order to place an area light source, use the [[mapping:cawe:editingtools:editfaceprops|Edit Face Properties]] tool to apply an appropriately defined material to the desired brush or Bezier patch surface. You can learn which materials cast Radiosity area light by clicking on them once in the [[mapping:cawe:materialbrowser|Material Browser]]. The bar at the bottom will show "Radiant Exitance" information on the selected material, if any.\\ Tip: Filter for materials with the string "light" in their name. This heightens the chance to find a relevant material quickly. |
+ | * In order to change the definition of a new or existing material to emit light, make sure that the ''meta_radiantExitance'' keyword is employed. Please refer to the Material Systems [[matsys:cmat_manual:keywordreference]] for more details.\\ Note that the effect of changing the definition of an //existing// material is //global//. That is, if the material is used elsewhere (in another map), also the other map will be affected when CaLight is run next. | ||
==== Point light sources ==== | ==== Point light sources ==== | ||
- | Radiosity light can also be emitted from point light sources. | + | You can also place //point light sources// to participate in the Radiosity lighting process. |
+ | This is easily achieved with the [[mapping:cawe:editingtools:newlight|New Light tool]], whose documentation explains the placement and parameter setup in detail. | ||
==== Sky Light ==== | ==== Sky Light ==== | ||
- | [ FIXME TODO: Screenshots!, link to my thesis in See Also section, link to DK project] | + | Adding sun- or moonlight to a map works analogously to adding an area light source: Just apply a "sky" material to any surface, and if the material is defined to emit skylight, everything else will happen automatically: |
+ | |||
+ | * The [[mapping:cawe:materialbrowser|Material Browser]] browser informs you whenever a material with "Irradiance" values is selected. | ||
+ | * The material definition can be changed according to the Material Systems [[matsys:cmat_manual:keywordreference]], see the ''meta_sunlight'' keyword. | ||
+ | * You may refer to the [[mapping:cawe:yourfirstmap]] tutorial to see an example. It's actually that easy! | ||