iTerrainObjectState Struct Reference
[Mesh plugins, Mesh plugins]
This will override the settings for material in the parent.
More...
#include <imesh/terrain.h>
Inheritance diagram for iTerrainObjectState:

Public Member Functions | |
virtual int | CollisionDetect (iMovable *m, csTransform *p)=0 |
Detects collision with a specific transform. | |
virtual bool | GetCastShadows ()=0 |
Retrieve whether shadow casting is enabled. | |
virtual float | GetLODValue (const char *parameter) const =0 |
Get a LOD parameter. | |
virtual bool | GetStaticLighting ()=0 |
Retrieve whether static lighting is enabled. | |
virtual bool | SaveState (const char *filename)=0 |
Save/Restore preprocessing information, the algorithm will do some preprocessing based on the material and height information this allows the process to be saved out to a file and cached for later reuse (maybe this should be the caching system) In some cases it may actually memorymap this file. | |
virtual void | SetCastShadows (bool enable)=0 |
Enable or disable shadow casting by this terrain mesh. | |
virtual bool | SetLODValue (const char *parameter, float value)=0 |
Set a LOD parameter. | |
virtual bool | SetMaterialAlphaMaps (const csArray< csArray< char > > &data, int x, int y)=0 |
In short, the materialmap paints the palette onto the terrain like an indexed image format paints a color palette onto the screen It sets the materials per pixel in the material map. | |
virtual bool | SetMaterialMap (const csArray< char > &data, int x, int y)=0 |
In short, the materialmap paints the palette onto the terrain like an indexed image format paints a color palette onto the screen It sets the materials per pixel in the material map. | |
virtual bool | SetMaterialPalette (const csArray< iMaterialWrapper * > &pal)=0 |
Set/Get the material palette, this is used to specify materials on a bytemap representing the material makeup of the terrain. | |
virtual void | SetStaticLighting (bool enable)=0 |
Enable or disable the use of static lighting. |
Detailed Description
This will override the settings for material in the parent.
Definition at line 46 of file terrain.h.
Member Function Documentation
|
Detects collision with a specific transform.
|
|
Retrieve whether shadow casting is enabled.
|
|
Get a LOD parameter.
|
|
Retrieve whether static lighting is enabled.
|
|
Save/Restore preprocessing information, the algorithm will do some preprocessing based on the material and height information this allows the process to be saved out to a file and cached for later reuse (maybe this should be the caching system) In some cases it may actually memorymap this file.
|
|
Enable or disable shadow casting by this terrain mesh.
|
|
Set a LOD parameter. The following parameters can be used:
|
|
In short, the materialmap paints the palette onto the terrain like an indexed image format paints a color palette onto the screen It sets the materials per pixel in the material map. If x and y are not equal to the heightmap the materialmap will scale accordingly. If they are equal than the material map will map a single material to a single high level quad in the final terrain. Note x and y must be 2^n and usually they must be equal This version expects an array of alpha maps (typically gray scale images). For every material in the palette except for the last one(!) there will be an alpha map so this array should have one element less compared to the palette. The alpha map for the last palette entry will be calculated so that the alpha values add up to 100%. |
|
In short, the materialmap paints the palette onto the terrain like an indexed image format paints a color palette onto the screen It sets the materials per pixel in the material map. If x and y are not equal to the heightmap the materialmap will scale accordingly. If they are equal than the material map will map a single material to a single high level quad in the final terrain. Note x and y must be 2^n and usually they must be equal |
|
Set/Get the material palette, this is used to specify materials on a bytemap representing the material makeup of the terrain.
|
|
Enable or disable the use of static lighting.
|
The documentation for this struct was generated from the following file:
- imesh/terrain.h
Generated for Crystal Space by doxygen 1.4.6