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:

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" : {
"emitter" : {
"type" : "environment",
"coords" : "spherical",
"path" : "data/env/grace_probe.hdr",
},
},
// ...
},
Attribute Documentation
Wavelength-dependent distribution of emitted power.
| type | clampedSpectrum |
| optional | true |
| default | 0 |
| units | Watts |
| string environment::path |
| string environment::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.
- Note:
- Projections supported are "sphereical" or "latLong".
| type | string |
| optional | true |
| default | spherical |
Generated on 28 Feb 2009 for MiltonScenefileFormat by
1.5.6