changing the landscape size
by Neil Marshall · in Torque Game Engine · 10/06/2001 (12:21 pm) · 8 replies
Currently the Tribes2 landscape is a lot larger than I need it and it doesn't have enough detail. How would I go about scaling it down? I still want to use a 256x256 image, but make the height map points closer together.
#2
Unless you are planning on some major re-coding of the engine, I wouldn't mess with the terrain size.
You will most likely end up with terrain holes, water problems, collision problems, etc.
The engine was designed with the current size in mind, and those who have tried changing it have ran into numerous problems.
If you absolutely have to change it, expect some major re-working of the code.
David
10/06/2001 (2:02 pm)
Hi,Unless you are planning on some major re-coding of the engine, I wouldn't mess with the terrain size.
You will most likely end up with terrain holes, water problems, collision problems, etc.
The engine was designed with the current size in mind, and those who have tried changing it have ran into numerous problems.
If you absolutely have to change it, expect some major re-working of the code.
David
#3
10/06/2001 (3:43 pm)
Actually, I think most things (including collision) deal correctly with different size terrains squares. I believe the exception is the water, which has has a hard-coded 8m terrain square assumption.
#4
10/07/2001 (9:11 am)
how do you increase the ceiling in the mission files. . I always play levels in t2 wich made ceilings I wasnted to do the same with my torque levels . . .which part of the mission file is that? Anthony
#5
it could look something like this:
------------------------------------
new MissionArea(MissionArea) {
area = "-512 -512 1024 1024";
flightCeiling = "300";
flightCeilingRange = "20";
locked = "true";
};
------------------------------------
Change the line in bold to change the flightceiling.
;P
// Clocks out
10/07/2001 (9:18 am)
Open a mission and near the top is the missionarea block,it could look something like this:
------------------------------------
new MissionArea(MissionArea) {
area = "-512 -512 1024 1024";
flightCeiling = "300";
flightCeilingRange = "20";
locked = "true";
};
------------------------------------
Change the line in bold to change the flightceiling.
;P
// Clocks out
#6
10/07/2001 (11:02 am)
thanks
#7
Is the 256x256 hard coded or can that be easily changed?
10/08/2001 (4:36 pm)
With a size of 4 it still takes me 1:15 to walk across the level. Cool!Is the 256x256 hard coded or can that be easily changed?
#8
10/10/2001 (9:57 pm)
The 256x256 size is hardcoded, and will be much harder to change. What may be easier is to allow the terrain to support multiple blocks of 256x256 "tiles". Hmm, well that won't be that easy either :)
Torque Owner Karsten "Clocks" Viese
Look for this:
---------------------------------------------
new TerrainBlock(Terrain) {
rotation = "1 0 0 0";
scale = "1 1 1";
detailTexture = "~/terrains/details/detail1";
terrainFile = "~/terrains/scorched/scorchedPlanet.ter";
squareSize = "8";
emptySquares = "99744 443522 443778 444034";
position = "-1024 -1024 0";
locked = "true";
};
---------------------------------------------
Change the 8 to 4 or even 2.
That should do the trick.
But I have heard somewhere that this might screw up the water block later on. Since it expect it to be 8, but try it out.
// Clocks out