Terrain / Object questions
by Frank Bignone · in Torque Game Engine · 09/19/2001 (5:27 pm) · 7 replies
I have some questions regarding terrains and objects in V12, mainly related to scale of the different objects. I know that 1 unit is equal to 1 meters in V12, but :
a) What is the scale of a terrain ? What is the V12 size of a terrain in V12 unit ?
b) By analogy, what is the correspondence of the pixel size of a png map used as a dem to create a terrain and V12 unit ?
c) Is there any way to set the scale of a terrain in a mission file (it may be a dummy question, but I did not look at the mission file for the moment) ?
thx
a) What is the scale of a terrain ? What is the V12 size of a terrain in V12 unit ?
b) By analogy, what is the correspondence of the pixel size of a png map used as a dem to create a terrain and V12 unit ?
c) Is there any way to set the scale of a terrain in a mission file (it may be a dummy question, but I did not look at the mission file for the moment) ?
thx
About the author
Real programmers don't waste time recompiling; they patch the binary files... ... Real programmers don't waste time patching binary files; they patch memory.
#2
09/20/2001 (6:56 am)
The textures are 256x256 and stretched over an 8x8 grid of squares, so each terrain square (8mx8m) is covered by 32x32 texels. This makes the terrain about 4 texels per meter, as compared to the interiors which usually have 32 texels per meter. Much lower resolution, but then the interiors don't need to cover as much visible area :)
#3
09/20/2001 (11:43 pm)
As stated in the replies, is it possible to change the scale of the terrain in the mission file to something different than 8 ?
#4
Water areas may end up with 'holes' in them - areas where there is water, but it is not visible. This is because the engine visually removes areas of water that are under terrain, but it assumes a square size of 8, so other values result in the water being mis-sized and the missing areas can be exposed. Someone did post a way to fix this by preventing the square-removal process - don't remember where it was, but it was here on GG.
The second risk is with the AI routines, which did not account for unusual square sizes in T2. This will hopefully be fixed when the AI is re-written for the V12 (it IS being re-written isn't it?).
In any case, if the above is not a problem for you, look at the terrain object in the .mis file. You will find a setting for squareSize. Change it to something besides 8...
09/21/2001 (12:42 am)
Yes, but there are risks.Water areas may end up with 'holes' in them - areas where there is water, but it is not visible. This is because the engine visually removes areas of water that are under terrain, but it assumes a square size of 8, so other values result in the water being mis-sized and the missing areas can be exposed. Someone did post a way to fix this by preventing the square-removal process - don't remember where it was, but it was here on GG.
The second risk is with the AI routines, which did not account for unusual square sizes in T2. This will hopefully be fixed when the AI is re-written for the V12 (it IS being re-written isn't it?).
In any case, if the above is not a problem for you, look at the terrain object in the .mis file. You will find a setting for squareSize. Change it to something besides 8...
#5
09/22/2001 (2:58 am)
The AI stuff that we're working on is not going to care about terrain square size.
#6
09/22/2001 (8:10 am)
Excellent! Looking forward to that.
#7
www.garagegames.com/index.php?sec=mg&mod=resource&page=result&qtm=Terrain%20LOD
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=258
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=321
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3319
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3414
(shameless self-promotion)
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=482
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=445
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=1821
(no GG stuff, but usefull)
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=4029
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3312
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=2471
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=2341
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=1670
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=1100
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=2293
--Bryan
03/31/2002 (8:00 pm)
Stitching together a 'fabric' of terrain posts... These are posts which contain significant responses from the GG crew:www.garagegames.com/index.php?sec=mg&mod=resource&page=result&qtm=Terrain%20LOD
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=258
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=321
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3319
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3414
(shameless self-promotion)
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=482
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=445
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=1821
(no GG stuff, but usefull)
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=4029
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3312
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=2471
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=2341
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=1670
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=1100
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=2293
--Bryan
Torque Owner nohbdy
and the terrain textures are stretched and blended to fit onto a tile, so that's also defined per mission
-nohbdy