Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   My view on Geodata (https://postpacific.loc-online.com/showthread.php?t=3310)

SilverCloud 10.02.2006 21:28

My view on Geodata
 
Okay, I'm not that great in english, and i'm even more worse explaining something, so I'm going to make it a short story.

maps/xx_yy.unr -> TerrainInfo -> TerrainSector[0-255]
In this file are a lot of hex codes ect., I think those codes match the code below, it's a bit of the UnrealEngine2 Source. And since I'm not common with Geodata and C# / C++. You guys should look at it. :roll:

[ Object -> Actor -> Info -> TerrainInfo (Engine.TerrainInfo) ]
Code:

// Row 92 to 142


var() int                      TerrainSectorSize;
var() Texture                  TerrainMap;
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;

defaultproperties
{
    TerrainSectorSize=16
    TerrainScale=(X=xx.xx0000,Y=xx.xx0000,Z=xx.xx0000)
    bStatic=True
    bWorldGeometry=True
    Texture=Texture'Engine.S_TerrainInfo'
    bStaticLighting=True
}

Source: http://unreal.student.utwente.nl/unc...rraininfo.html

Ah well, you guys should try it out, if it doesn't work too bad. :(

Cheers,
SilverCloud


All times are GMT. The time now is 16:19.