No Terrains?
by Alexander Loren · in Torque Game Engine · 10/30/2003 (5:59 pm) · 14 replies
I picked up Torque not to long ago and am planning on making a space flight game, but I can't seem to find a way to get rid of the terrain... I have looked through the .mis file I'm using and didn't find anything there that I deleate, I'm not much of a programmer so looking through the C++ source doesn't help me much. Can anyone please lend a hand on this?
About the author
#2
I just tried it with TGE 1.2.0 and it works without any problems I can see. Have fun man! :)
10/30/2003 (6:07 pm)
Alex, you can remove the terrain simply deleting the terrain entry in the mission file that looks something like this:Quote:
new TerrainBlock(Terrain) {
rotation = "1 0 0 0";
scale = "1 1 1";
detailTexture = "~/data/terrains/details/detail1";
terrainFile = "./test1.ter";
squareSize = "8";
emptySquares = "99744 443522 443778 444034";
bumpScale = "1";
bumpOffset = "0.01";
zeroBumpScale = "8";
position = "-1024 -1024 0";
locked = "true";
};
I just tried it with TGE 1.2.0 and it works without any problems I can see. Have fun man! :)
#3
edit: awww what that hell, I searched for you, check this out: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3007
10/30/2003 (7:00 pm)
No, you cannot just remove it from the mission file. Terrain is pretty integrated and just removing it from the mission will cause problems. Search for it, I know it's been covered.edit: awww what that hell, I searched for you, check this out: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3007
#4
10/30/2003 (7:34 pm)
Nathan thanks for showing me that, I must have looked it over in the mis file. Ben thanks for pointing out that resource, I'll take a closer look at it once I can get MinGW to compile Torque for me.
#5
Actually Ben, you're wrong. It does work perfectly fine when you just remove it. I've done by tests with 1.2.0 and HEAD, and it works perfectly fine. There are no problem or anything I have noticed. Yes the Terrain engine is pretty well integrated, but removing the entry in mission file will not cause problems. Only problems I could possibly see is if you attempt to deploy a object on the map then who knows where it will end up. :)
10/30/2003 (10:16 pm)
"No, you cannot just remove it from the mission file. Terrain is pretty integrated and just removing it from the mission will cause problems."Actually Ben, you're wrong. It does work perfectly fine when you just remove it. I've done by tests with 1.2.0 and HEAD, and it works perfectly fine. There are no problem or anything I have noticed. Yes the Terrain engine is pretty well integrated, but removing the entry in mission file will not cause problems. Only problems I could possibly see is if you attempt to deploy a object on the map then who knows where it will end up. :)
#6
I've come to respect Bens opinion on these forums as he's well-informed about most TGE related matters so I tend to assume he's correct, therefore I'm certainly interested if there are potential problems I may encounter that I've not so far.
- Melv.
10/30/2003 (11:51 pm)
I'd be interested to know about any problems removing the terrain because for 'Strategem' I simply removed the entry from the mission file. The difference for me is that I'm not using the standard player or camera objects and most other stuff is customised.I've come to respect Bens opinion on these forums as he's well-informed about most TGE related matters so I tend to assume he's correct, therefore I'm certainly interested if there are potential problems I may encounter that I've not so far.
- Melv.
#7
The problem of deploying an object on the map. I put a static shape like a huge plane with grid texture. So you can be sure the new object will be on the plane. With a touch of a key the texture changes to transparent and u can't see it. Then u touch the same key again, the grid shows up.
Kevin
10/31/2003 (2:46 am)
I removed the terrain in my space game and i have no problem so far. The only thing i get is an error message in the debug window and nothing else. The problem of deploying an object on the map. I put a static shape like a huge plane with grid texture. So you can be sure the new object will be on the plane. With a touch of a key the texture changes to transparent and u can't see it. Then u touch the same key again, the grid shows up.
Kevin
#8
Of course there is also still that old gravity thing unless you follow the space mod instructions or change the gravity for the player, etc.
11/04/2003 (3:40 pm)
You can remove the terrain. You will get some console errors when loading the editor however because it is expecting a terrain. We have changed some of those scripts to account for missing terrainBlocks. Of course there is also still that old gravity thing unless you follow the space mod instructions or change the gravity for the player, etc.
#9
11/04/2003 (4:16 pm)
Best thing is to remove the terrain code from the engine which will require you to remove all the code that refers to TerrainBlock. It can be removed from the .mis file without problems, though, as Desmond said, the editor will complain about not being able to find the terrain.
#10
It was VERY satisfying to rip out the umpteen million different rendering functions in interior and 3space for the various combinations of fog and multipass...
11/04/2003 (6:26 pm)
I did that in an evening once... Also got rid of fog.It was VERY satisfying to rip out the umpteen million different rendering functions in interior and 3space for the various combinations of fog and multipass...
#11
11/04/2003 (6:50 pm)
Hehe, I've done it too. For a torque based "application", not a game, I removed everything game related, and I mean it... everything ;)
#12
11/04/2003 (7:26 pm)
I stand corrected. I have problems if I just remove the datablock from the mission file, but then again I have made some serious modifications to the rendering code that probably have something to do with this. Not sure why my stuff is causing this though... hmmm... probably something I'll regret not checking into if I ever do a game where I remove the terrain, heh. Anyways, I shoulda checked on a fresh checkout before I posted to make sure. Sorry for the misinformation.
#13
11/05/2003 (2:23 am)
I haven't tried this yet, but would it be possible to shrink the terrain block so that its so tiny that its not noticable?
#14
11/05/2003 (8:06 am)
That would work; you'd be better off just getting rid of it, though...
Torque Owner Ben Swanson