Can someone please explain terrain.cfg ???

Problems building or running the engine, queries about how to use features etc.

Is this an incredibly stupid question?

yup
2
14%
there is no such thing as a stupid question.
11
79%
PLease stop posting here and read the documentation more throughly. :)
1
7%
 
Total votes: 14

TwistedMatrix
Gnoblar
Posts: 20
Joined: Tue Mar 04, 2003 5:15 am

Can someone please explain terrain.cfg ???

Post by TwistedMatrix »

Hi, I was looking through the terrain demo and I cant seem to understand this terrain.cfg. Is there documentation on this? I know what the file is for, but I can't seem to find documentation. Is this a ogre script of some kind or what?

thanks. :)
~ Twisted Matrix ~
User avatar
spoke
Greenskin
Posts: 121
Joined: Sun Oct 06, 2002 11:19 pm
Location: Spain

Post by spoke »

Hi

Code: Select all

WorldTexture=terrain_texture.jpg
Texture to render over the terrain.

Code: Select all

DetailTexture=terrain_detail.jpg
Texture to give details to the terrain

Code: Select all

#number of times the detail texture will tile in a terrain tile
DetailTile=3
Self explanatory.

Code: Select all

Terrain=terrain.png
Height map file.

Code: Select all

TileSize=17
The terrain is splitted in tiles of 17 pixels width

Code: Select all

MaxPixelError=8

Code: Select all

ScaleX=1
ScaleY=.2
ScaleZ=1
Scale values

Code: Select all

MaxMipMapLevel=5
The terrain engine use it to generate LOD

Code: Select all

#VertexNormals=yes
#VertexColors=yes
To use in the light calculations. (They are disabled)
May the force be with you.
CUINL
Gnoblar
Posts: 16
Joined: Sun Oct 06, 2002 11:19 pm
Location: Quebec city, Canada

Post by CUINL »

It's certainly not a stupid question!!! I was wondering myself the meaning of some of those lines.

Thanks spoke & TwistedMatrix :wink: