Terrain manipulation
by KevinG · in Torque Game Engine · 07/27/2004 (3:55 pm) · 5 replies
Continuing from this thread:
http://www.garagegames.com/mg/forums/result.thread.php?qt=18900
we are going over options on how best to build the levels of our game...
i have one team building test levels in QuArK, and may try to seek help in developing a new method using the terrain engine. the job is a complex network of tunnels as the game level. the quark angle is going well, levels look good....but i cant help licking my chops at being able to get a level as pretty as the terrains from tge.
i need to be able to rotate a second terrain block 180degrees on its y or x, making in inward facing pair of duplicate terrains, spaced apart a bit.
I can load a new terrain block into the mission file, but i dont see any where i can change a rotation/facing or normals direction.
we have found a line under the terrain block: rotation = 1 0 0 0, cant seem to
change this(?).
simply flipping one terrain chunk over another is all i need, with some crafty elevation control and and even trickier hieght map....beatiful, organic cave networks would be as easy to make as a 5 minute trip to your image editor.
where do i go to make changes so this could be possible?
being an additional terrain object, im speculating that it would also get lit and have collision, true?
Please help guys! thx
http://www.garagegames.com/mg/forums/result.thread.php?qt=18900
we are going over options on how best to build the levels of our game...
i have one team building test levels in QuArK, and may try to seek help in developing a new method using the terrain engine. the job is a complex network of tunnels as the game level. the quark angle is going well, levels look good....but i cant help licking my chops at being able to get a level as pretty as the terrains from tge.
i need to be able to rotate a second terrain block 180degrees on its y or x, making in inward facing pair of duplicate terrains, spaced apart a bit.
I can load a new terrain block into the mission file, but i dont see any where i can change a rotation/facing or normals direction.
we have found a line under the terrain block: rotation = 1 0 0 0, cant seem to
change this(?).
simply flipping one terrain chunk over another is all i need, with some crafty elevation control and and even trickier hieght map....beatiful, organic cave networks would be as easy to make as a 5 minute trip to your image editor.
where do i go to make changes so this could be possible?
being an additional terrain object, im speculating that it would also get lit and have collision, true?
Please help guys! thx
About the author
#2
After this project is done, i may consider TSE.
thanks for the hlp(<----oops, sorry some of the help was missing there :P )
07/31/2004 (10:02 am)
We'll talk about boosting sales and the art of closing next GDC in person (as i see where your sales plans are headed, and i'm glad to help). Untill then I will continue to mess with the terrRender.cc and others. May also abort this, as our game levels can be made cool in many different ways, this method just had more to offer TGE community. Thanks for the help. Feel free to maybe refer me to anyone you know who likes to help people with code. I could use some deeper guidance, and have little time.After this project is done, i may consider TSE.
thanks for the hlp(<----oops, sorry some of the help was missing there :P )
#3
All the tutorials I've seen so far talk about managing the edges of your terrain block so it can repeat indefinitely. What if I don't want to repeat it indefinitely?
I'm modeling a mountainous region. On the south and east edges of my terrain block are valleys, and on the north and west edges are steep slopes. My skybox will have panoramic views on the south and east sides, and the player will be artificially restricted from going over the slopes on the north and south. I don't want my player to look across the valley and see the backside of one of those steep slopes, as the terrain box repeats itself indefinitely in every direction.
This may be an RTFM question, but I'll ask anyway. How do I restrict the game to only one terrainBlock? Is there a flag or switch in the .mis file that controls tiling?
09/17/2004 (5:24 am)
On a related question:All the tutorials I've seen so far talk about managing the edges of your terrain block so it can repeat indefinitely. What if I don't want to repeat it indefinitely?
I'm modeling a mountainous region. On the south and east edges of my terrain block are valleys, and on the north and west edges are steep slopes. My skybox will have panoramic views on the south and east sides, and the player will be artificially restricted from going over the slopes on the north and south. I don't want my player to look across the valley and see the backside of one of those steep slopes, as the terrain box repeats itself indefinitely in every direction.
This may be an RTFM question, but I'll ask anyway. How do I restrict the game to only one terrainBlock? Is there a flag or switch in the .mis file that controls tiling?
#5
09/22/2004 (7:02 pm)
Thanks for the pointer. My first mess-with-the-source-code project! (@Ben: is this already in TSE or in TGE 1.3?)
Associate Kyle Carter
TSE's new terrain code will have better support for this sort of situation, since the code is much cleaner and easier to work with.