Terrain Question!
by Jackie Hayes · in Torque Game Engine · 04/22/2003 (1:44 pm) · 5 replies
I am only working in a small terrain area. I do not really need a massive area. I was looking around for info about terrain tiling to get more terrain detail and came across Desmond Fletcher's web site. Very helpfull web site I might say. He mentioned this in the Terrains in Torque area.
************************************************************
Changing the terrain squareSize in the mission file also affects the control in the terrain editor and terrain material painter; you will have more control at smaller sizes. Be sure to change the position values of the terrain to correspond to the worldSize also. For example, if we want more control of the terrain editing, set the squareSize = 4 and the position to "-512 -512 0":
new TerrainBlock(Terrain) {
rotation = "1 0 0 0";
scale = "1 1 1";
detailTexture = "~/data/terrains/details/detail1";
terrainFile = "./test_terrain3.ter";
squareSize = "4";
locked = "true";
position = "-512 -512 0";
};
Note: The waterBlock entity may not work properly at sizes other than terrain squareSize = 8 (as of 1/21/2002) because of some hard-coded values in the engine. It has been reported that there are also some issues with the AI in this regard.
************************************************************
Does anyone know if this is still a problem or has it been taken care of?
Thanks.
MJ....
************************************************************
Changing the terrain squareSize in the mission file also affects the control in the terrain editor and terrain material painter; you will have more control at smaller sizes. Be sure to change the position values of the terrain to correspond to the worldSize also. For example, if we want more control of the terrain editing, set the squareSize = 4 and the position to "-512 -512 0":
new TerrainBlock(Terrain) {
rotation = "1 0 0 0";
scale = "1 1 1";
detailTexture = "~/data/terrains/details/detail1";
terrainFile = "./test_terrain3.ter";
squareSize = "4";
locked = "true";
position = "-512 -512 0";
};
Note: The waterBlock entity may not work properly at sizes other than terrain squareSize = 8 (as of 1/21/2002) because of some hard-coded values in the engine. It has been reported that there are also some issues with the AI in this regard.
************************************************************
Does anyone know if this is still a problem or has it been taken care of?
Thanks.
MJ....
#2
[edit: I can't spell]
04/24/2003 (10:20 am)
The water engine is hardcoded for terrain square sizes of 8. It uses this to tesselate itself and to do square occlusion as to not render a water square that is completely hidden from view. Getting it to work with something other than 8 would require a massive water engine refit.[edit: I can't spell]
#3
MJ....
04/24/2003 (12:05 pm)
Thanks Chris. I am glad you let me know this before I sunk alot of time in it. Some of my levels will not require any water anyway. I guess on the levels I need water I will leave the square size at 8. I am also testing out the AI. When I get some time I will take a look into the water section.MJ....
#4
04/24/2003 (2:57 pm)
It would appear that you could simply modify rebuildSquares and change the value of SquaresPerBlock and ShiftPerBlock. Mayber make it use the blocksize from the terrain blocks...
Torque 3D Owner Jackie Hayes
Thanks.
MJ....