![]() |
OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Options class which just stores default options for the terrain. More...
#include <OgreTerrain.h>
Public Member Functions | |
TerrainGlobalOptions () | |
virtual | ~TerrainGlobalOptions () |
void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
bool | getCastsDynamicShadows () const |
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps). | |
const ColourValue & | getCompositeMapAmbient () const |
Get the composite map ambient light to use. | |
const ColourValue & | getCompositeMapDiffuse () const |
Get the composite map iffuse light to use. | |
Real | getCompositeMapDistance () const |
Get the distance at which to start using a composite map if present. | |
uint16 | getCompositeMapSize () const |
Get the default size of the composite maps for a new terrain. | |
uint16 | getDefaultGlobalColourMapSize () const |
Get the default size of the terrain global colour map for a new terrain. | |
Real | getDefaultLayerTextureWorldSize () const |
Get the default world size for a layer 'splat' texture to cover. | |
TerrainMaterialGeneratorPtr | getDefaultMaterialGenerator () |
Get the default material generator. | |
const String & | getDefaultResourceGroup () const |
Get the default resource group to use to load / save terrains. | |
uint16 | getLayerBlendMapSize () const |
Get the default size of the blend maps for a new terrain. | |
const Vector3 & | getLightMapDirection () const |
Get the shadow map light direction to use (world space) | |
uint16 | getLightMapSize () const |
Get the default size of the lightmaps for a new terrain. | |
Real | getMaxPixelError () const |
Get the maximum screen pixel error that should be allowed when rendering. | |
uint32 | getQueryFlags (void) const |
Get the default query flags for terrains. | |
uint8 | getRenderQueueGroup (void) const |
Get the render queue group that this terrain will be rendered into. | |
Real | getSkirtSize () const |
The default size of 'skirts' used to hide terrain cracks (default 10) | |
bool | getUseRayBoxDistanceCalculation () const |
Returns whether or not to use an accurate calculation of camera distance from a terrain tile (ray / AABB intersection) or whether to use the simpler distance from the tile centre. | |
bool | getUseVertexCompressionWhenAvailable () const |
Get whether to allow vertex compression to be used when the material generator states that it supports it. | |
uint32 | getVisibilityFlags (void) const |
Get the visbility flags that terrains will be rendered with. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | removeQueryFlags (uint32 flags) |
void | setCastsDynamicShadows (bool s) |
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps). | |
void | setCompositeMapAmbient (const ColourValue &c) |
Set the composite map ambient light to use. | |
void | setCompositeMapDiffuse (const ColourValue &c) |
Set the composite map diffuse light to use. | |
void | setCompositeMapDistance (Real c) |
Set the distance at which to start using a composite map if present. | |
void | setCompositeMapSize (uint16 sz) |
Sets the default size of composite maps for a new terrain. | |
void | setDefaultGlobalColourMapSize (uint16 sz) |
Set the default size of the terrain global colour map for a new terrain. | |
void | setDefaultLayerTextureWorldSize (Real sz) |
Set the default world size for a layer 'splat' texture to cover. | |
void | setDefaultMaterialGenerator (TerrainMaterialGeneratorPtr gen) |
Set the default material generator. | |
void | setDefaultResourceGroup (const String &grp) |
Set the default resource group to use to load / save terrains. | |
void | setLayerBlendMapSize (uint16 sz) |
Sets the default size of blend maps for a new terrain. | |
void | setLightMapDirection (const Vector3 &v) |
Set the shadow map light direction to use (world space). | |
void | setLightMapSize (uint16 sz) |
Sets the default size of lightmaps for a new terrain. | |
void | setMaxPixelError (Real pixerr) |
Set the maximum screen pixel error that should be allowed when rendering. | |
void | setQueryFlags (uint32 flags) |
Set the default query flags for terrains. | |
void | setRenderQueueGroup (uint8 grp) |
Set the render queue group that terrains will be rendered into. | |
void | setSkirtSize (Real skirtSz) |
method - the default size of 'skirts' used to hide terrain cracks (default 10) | |
void | setUseRayBoxDistanceCalculation (bool rb) |
Sets whether to use an accurate ray / box intersection to determine distance from a terrain tile, or whether to use the simple distance from the tile centre. | |
void | setUseVertexCompressionWhenAvailable (bool enable) |
Set whether to allow vertex compression to be used when the material generator states that it supports it. | |
void | setVisibilityFlags (uint32 flags) |
Set the visbility flags that terrains will be rendered with. | |
Static Public Member Functions | |
static TerrainGlobalOptions & | getSingleton (void) |
Override standard Singleton retrieval. | |
static TerrainGlobalOptions * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Options class which just stores default options for the terrain.
Ogre::TerrainGlobalOptions::TerrainGlobalOptions | ( | ) |
|
inlinevirtual |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
inline |
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps).
|
inline |
Get the composite map ambient light to use.
|
inline |
Get the composite map iffuse light to use.
|
inline |
Get the distance at which to start using a composite map if present.
|
inline |
Get the default size of the composite maps for a new terrain.
|
inline |
Get the default size of the terrain global colour map for a new terrain.
|
inline |
Get the default world size for a layer 'splat' texture to cover.
TerrainMaterialGeneratorPtr Ogre::TerrainGlobalOptions::getDefaultMaterialGenerator | ( | ) |
Get the default material generator.
Get the default resource group to use to load / save terrains.
|
inline |
Get the default size of the blend maps for a new terrain.
Get the shadow map light direction to use (world space)
|
inline |
Get the default size of the lightmaps for a new terrain.
|
inline |
Get the maximum screen pixel error that should be allowed when rendering.
Get the default query flags for terrains.
Get the render queue group that this terrain will be rendered into.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
inline |
The default size of 'skirts' used to hide terrain cracks (default 10)
|
inline |
Returns whether or not to use an accurate calculation of camera distance from a terrain tile (ray / AABB intersection) or whether to use the simpler distance from the tile centre.
|
inline |
Get whether to allow vertex compression to be used when the material generator states that it supports it.
Get the visbility flags that terrains will be rendered with.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps).
This value can be set dynamically, and affects all existing terrains. It defaults to false.
|
inline |
Set the composite map ambient light to use.
|
inline |
Set the composite map diffuse light to use.
Set the distance at which to start using a composite map if present.
Sets the default size of composite maps for a new terrain.
Set the default size of the terrain global colour map for a new terrain.
Once created, this information will be stored with the terrain.
Set the default world size for a layer 'splat' texture to cover.
void Ogre::TerrainGlobalOptions::setDefaultMaterialGenerator | ( | TerrainMaterialGeneratorPtr | gen | ) |
Set the default material generator.
Set the default resource group to use to load / save terrains.
Sets the default size of blend maps for a new terrain.
This is the resolution of each blending layer for a new terrain. Once created, this information will be stored with the terrain.
Set the shadow map light direction to use (world space).
Sets the default size of lightmaps for a new terrain.
Set the maximum screen pixel error that should be allowed when rendering.
Set the default query flags for terrains.
Set the render queue group that terrains will be rendered into.
method - the default size of 'skirts' used to hide terrain cracks (default 10)
Sets whether to use an accurate ray / box intersection to determine distance from a terrain tile, or whether to use the simple distance from the tile centre.
Using ray/box intersection will result in higher detail terrain because the LOD calculation is more conservative, assuming the 'worst case scenario' of a large height difference at the edge of a tile. This is guaranteed to give you at least the max pixel error or better, but will often give you more detail than you need. Not using the ray/box method is cheaper but will only use the max pixel error as a guide, the actual error will vary above and below that. The default is not to use the ray/box approach.
Set whether to allow vertex compression to be used when the material generator states that it supports it.
Set the visbility flags that terrains will be rendered with.