Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 General
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10.02.2006, 21:28   #1
SilverCloud
Архивный участник
 
Join Date: Feb 2006
Posts: 19
Default 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
SilverCloud is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 23:27.