Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.TerrainInfo


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
class TerrainInfo extends Info
    noexport
    showcategories(Movement,Collision,Lighting,LightColor,Karma,Force)
    native
    placeable;

#exec Texture Import File=Textures\Terrain_info.pcx Name=S_TerrainInfo Mips=Off MASKED=1
#exec Texture Import File=Textures\S_WhiteCircle.pcx Name=S_WhiteCircle Mips=Off MASKED=1
#exec Texture Import File=Textures\Bad.pcx Name=TerrainBad Mips=Off
#exec Texture Import File=Textures\DecoPaint.pcx Name=DecoPaint Mips=Off

struct NormalPair
{
    var vector Normal1;
    var vector Normal2;
};

enum ETexMapAxis
{
    TEXMAPAXIS_XY,
    TEXMAPAXIS_XZ,
    TEXMAPAXIS_YZ,
};

enum ESortOrder
{
    SORT_NoSort,
    SORT_BackToFront,
    SORT_FrontToBack
};

struct TerrainLayer
{
    var() Material  Texture;
    var() Texture   AlphaMap;
    var() float     UScale;
    var() float     VScale;
    var() float     UPan;
    var() float     VPan;
    var() ETexMapAxis TextureMapAxis;
    var() float     TextureRotation;
    var() Rotator   LayerRotation;
    var   Matrix    TerrainMatrix;
    var() float     KFriction;
    var() float     KRestitution;
    var   transient Texture LayerWeightMap;
};

struct DecorationLayer
{
    var() int           ShowOnTerrain;
    var() Texture       ScaleMap;
    var() Texture       DensityMap;
    var() Texture       ColorMap;
    var() StaticMesh    StaticMesh;
    var() rangevector   ScaleMultiplier;
    var() range         FadeoutRadius;
    var() range         DensityMultiplier;
    var() int           MaxPerQuad;
    var() int           Seed;
    var() int           AlignToTerrain;
    var() ESortOrder    DrawOrder;
    var() int           ShowOnInvisibleTerrain;
    var() int           LitDirectional;
    var() int           DisregardTerrainLighting;
    var() int           RandomYaw;
    var() EDetailMode   DetailMode;
};


struct DecoInfo
{
    var vector  Location;
    var rotator Rotation;
    var vector  Scale;
    var vector  TempScale;
    var color   Color;
    var int     Distance;
}; 

struct DecoSectorInfo
{
    var array<DecoInfo> DecoInfo;
    var vector          Location;
    var float           Radius;
};

struct DecorationLayerData
{
    var array<DecoSectorInfo> Sectors;
};

var() int                       TerrainSectorSize;
var() Texture                   TerrainMap;
var() Texture                   VertexLightMap; // sjs
var() vector                    TerrainScale;
var() TerrainLayer              Layers[32];
var() array<DecorationLayer>    DecoLayers;
var() float                     DecoLayerOffset;
var() bool                      Inverted;

// This option means use half the graphics res for Karma collision.
// Note - Karma ignores per-quad info (eg. 'invisible' and 'edge-turned') with this set to true.
var() bool                      bKCollisionHalfRes;

//
// Internal data
//
var transient int                           JustLoaded;
var native const array<DecorationLayerData> DecoLayerData;
var native const array<TerrainSector>   Sectors;
var native const array<vector> Vertices;
var native const int HeightmapX;
var native const int HeightmapY;
var native const int SectorsX;
var native const int SectorsY;
var native const TerrainPrimitive Primitive;
var native const array<NormalPair> FaceNormals;
var native const vector ToWorld[4];
var native const vector ToHeightmap[4];
var native const array<int> SelectedVertices;
var native const int ShowGrid;
var const array<int> QuadVisibilityBitmap;
var const array<int> EdgeTurnBitmap;
var const array<material> QuadDomMaterialBitmap;
var native const array<int>                 RenderCombinations;
var native const array<int>                 VertexStreams;
var native const array<color>               VertexColors;
var native const array<color>               PaintedColor;       // editor only
var native const Texture CollapsedLayers;

// OLD
var native const Texture OldTerrainMap;
var native const array<byte> OldHeightmap;

// Heightmap manipulation functions
native final function PokeTerrain( vector WorldLocation, int Radius, int MaxDepth );

defaultproperties
{
     TerrainSectorSize=16
     TerrainScale=(X=64.000000,Y=64.000000,Z=64.000000)
     bUseDynamicLights=Wahr
     bStatic=Wahr
     bWorldGeometry=Wahr
     Texture=Texture'Engine.S_TerrainInfo'
     bStaticLighting=Wahr
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:36.000 - Creation time: Mo 16.4.2007 11:20:54.906 - Created with UnCodeX