environment Element Reference

An environment map roughly models distant illumination surrounding a scene by conceptually surrounding the scene with a spherical emitter that emits light inwards according to a distribution defined by a 2D 'environment' texture map that is projected onto the surface of the sphere. Note the term HDR environment map is thrown around a lot; the only difference is that the underlying environment texture is stored in some type of high dynamic range format, such as OpenEXR or HDR. More...

Inheritance diagram for environment:

emitter

List of all members.

Attributes

clampedSpectrum power
 Wavelength-dependent distribution of emitted power.
string path
 Path to environment map image.
string coords
 Type of coordinates this environment map is stored in; specifies the type of 3D -> 2D projection (and vice-versa) to be used for sampling the environment map image.


Detailed Description

An environment map roughly models distant illumination surrounding a scene by conceptually surrounding the scene with a spherical emitter that emits light inwards according to a distribution defined by a 2D 'environment' texture map that is projected onto the surface of the sphere. Note the term HDR environment map is thrown around a lot; the only difference is that the underlying environment texture is stored in some type of high dynamic range format, such as OpenEXR or HDR.

Note:
environment corresponds to the underlying Milton class 'EnvironmentMap.'

Example usage:

"scene" : {
// specify a background HDR environment map
"background" : {
"type" : "environment",
"coords" : "spherical",
"path" : "data/env/grace_probe.hdr",
},
},

// ...
},

Attribute Documentation

Wavelength-dependent distribution of emitted power.

typeclampedSpectrum
optionaltrue
default0
unitsWatts

Path to environment map image.

typestring
optionalfalse

Type of coordinates this environment map is stored in; specifies the type of 3D -> 2D projection (and vice-versa) to be used for sampling the environment map image.

Note:
Projections supported are "sphereical" or "latLong".
typestring
optionaltrue
defaultspherical


Generated on 28 Feb 2009 for MiltonScenefileFormat by doxygen 1.5.6