Game Development Community

A question about terrain rendering

by Kyle Cretsinger · in Torque Game Engine · 04/25/2003 (12:53 pm) · 2 replies

Ok first off I am an extreme newbie so go easy, speak slowly and don't use those big words. Just kidding, but I am a newbie.

Anyway on to the question. The idea I have for a game centers around a terrain that consists of a series of craters that players will be able to fly back and forth through a series of interconnecting tunnels. When messing atound with the terrain editor in the TGE I noticed that the terrain "wraps around" after a fashion on either side. I was able to create the proper depth of crater I needed and through the usage of altitude keep players from toppping out over the crater walls. However, when it came to getting more than one crater on the terrain the "playing field" was not large enough to accomodate all of the craters. It seems that the TGE causes terrain to "wrap around". The question I have is, does anyone know if it is possible to tell the TGE, "I need to setup a 'playing field' of say 10 kilometers by 5 kilometers" and have the TGE use that size so I can go in and begin "terraforming" the craters. I guess I am essentially asking if the "terrain size" can be hard-coded in and use a static size so I can fit everything in. The crater walls and tunnels themselves would be the limiting factors to keep players from straying to the "edge" as it were.

Thank you for your response.

Kyle C.

About the author

Recent Threads


#1
04/25/2003 (1:33 pm)
To create addition terrain blocks (in stock form, Torque only supports one per mission) you'll need to include the Terrain Manager code. It should in the resources and the forums also.
#2
04/25/2003 (1:39 pm)
Terrain in Torque has it's size limited to a 256x256 hieghtmap that gets repeated in all directions. You can play around with the square size on the terrain to make that 256x256 strech farther but that's about it with the stock Torque engine.

If you're willing to work with bleeding edge stuff (read that as not 100% complete and stable) you can visit gorpe.com and download the TerrainManager patch. This will allow you to build your missions out of multiple terrain blocks. I'm running 512x512 currently as my standard size and have run 1024x1024 as a test.