Game Development Community

Changing or restricting the terrain size for a level

by XxharCs · in Torque 3D Beginner · 04/27/2015 (4:47 am) · 8 replies

Hello!
I'm triing to somehow restrict or change the size of the terrain. Normally the terrain and World is based on Open World. But I wouldn't like the whole terrain, only a piece.

What I'm triing to do(so you understand me :P) is something like a room only. (for example: a tennis court)
I'm a beginner with the Torque3D and I read a lot of of it's documentation and searched in the forum but didn't find a answer related to my problem.

So how can I change or restrict the size of the world or the terrain?

Hope you can help me and give me some tips or solution to my problem :)

About the author

Recent Threads


#1
04/27/2015 (8:57 am)
not sure what you want, you can change the size of the terrain, or you can use the sketch tool to do a tennis court or what ever you need. Restrict? maybe you what to use a invisible wall as limit for a terrain or you can use scripting.
#2
04/27/2015 (9:44 am)
file-> create blank terrain -> chose size -> create new
#3
05/06/2015 (5:02 am)
Hmm, yeah that should do it.

Nah what I thought is, when you have for example that default terrain size and you just want a small piece of it(e.g for only a tennis court) then the rest of the terrain or world wouldn't be used at all and could cause perfomance problems(?).

But yeah the invisible wall for example was a good idea. I'm going to look forward it and let you know! :)

Thanks
#4
05/06/2015 (5:44 am)
Nope, the rest of the terrain won't cause performance problems. Put your tennis court in a valley and either make the walls too steep to climb or place invisible barriers around it.

The terrain is actually a series of cells that are simply not rendered if they're occluded (or if you're not facing that direction).

You're better off just building your game - see if it starts to slow down, and worry about the cause then. The engine is old and most of the really basic performance issues have been worked out already. Not to say it doesn't have its share of problems, but "premature optimization is the root of insanity."
#5
05/06/2015 (7:19 am)
The terrain that is not used will cause performance to go down, but not so much, since there is a level of detail system, that will reduce polygons in the distance.
But on the other hand you want to have a big enough terrain so that player will not notice immediately the border where they look into the nothing where the terrain ends.
As Richard said, make a valley or cliffs at the side the player cannot walk up.
#6
06/02/2015 (7:02 am)
This is how it looks like, what I mean :)
http://www.mobygames.com/images/shots/l/392241-fantasy-tennis-windows-screenshot-basic-mode-entering-the.jpg

So as you said, it should be like some invisible wall or cliffs or something like that right?

I'm currently designing a court, and will for the start add some wall, and for the rest and above the wall I will make something like a sky only etc.

I will come back if I encounter problems or have questions again :)
#7
06/02/2015 (10:56 am)
That screenshot does not have a terrain.
#8
06/02/2015 (1:25 pm)
Yeah, but I mean, this is a terrain/map/court I would like to have