Game Development Community

Questions about the Red and Green barriers in TGE

by Zakrey Higgins · in Hardware Issues · 11/08/2008 (12:40 pm) · 2 replies

Okay I really have 3 questions.

1. I have noticed and by reading one of the Torque Books, that the default engine scale is at 8, and has to be in mutliples of 2. I switched it to 2 and noticed that my textures looked WAY better than at 8, obviously because it pulls the terrain in closer. However I have notice that the red barrier is not in the editor when editing the shape of the barrier, the only way i can edit it is switching it back to 8 and decrease the barrier size to as small as possible. Then go back and it pops up where I can see usually the corner of it when the engine is set to 2. The thing I notice is that the green outer barrier is no longer around the red barrier, its actually somewhere horizontal to the red barrier, I have to edit and edit and edit to get the barriers aligned again, and the mission area has to be tiny for me to do so. Is there any way around this to get the engine set at 2 and these barriers in order the way the should be and be able to edit them?

2. Please explain the red and green barriers in the engine, I am aware the red barrier is the .mis area but if there is more to it, I would like to know, and I have no clue what the green barrier does, I have tried looking everwhere for it.

3. How do I fix holes in the terrain, missing faces, the only appear in the .mis area, I check that same spot in a repeated terrain area outside of the .mis area and its fine, but the hole is in the .mis area? How does that get fixed and/or how is this avoided.

#1
11/08/2008 (5:27 pm)
I'm colorblind so they both look like the same color to me, but if I remember correctly the red one is indeed the mission area. The green one would be the terrain area - the point beyond which it repeats itself. There is some code that deals with doing things to the player if you go outside the mission area - it's like a giant trigger already placed in the game for you.

To get both of them to rescale and center on your smaller terrain simply save and reload the mission.

To fix the holes in the terrain: while in the editor with terrain editor functions available go to Action -> clearEmpty.
#2
11/09/2008 (1:08 am)
Thanks man I really appreciate this a lot.