How can I get a flat terrain like TGE in TGEA
by ChenJian · in Torque Game Engine Advanced · 06/06/2007 (12:26 am) · 8 replies
I noticed that there is a flat.mis file in TGE. I have copied flat.mis file into TGEA, but there seems no floor and my player falls all the time :( . So how can I get a equal result in TGEA as in TGE?
#2
06/06/2007 (6:22 am)
Dont forget to copy the flat.ter also :)
#3
You do this by hitting F11, then hit F7. Make a 256x256 PNG in MS Paint or any other program you like. Make the PNG a light grey and add one small spot either darker(which works best) or lighter and then import it as a bitmap. This gives you a completely flat mission, with one low or high area, depending on if the spot you made was lighter or darker. Then just use the brush to flatten out the area.
*Note* This only seems to work in the way I described. If you simply import a light grey PNG you wan't be able to terraform like I described above.
06/06/2007 (7:07 am)
I don't own TGEA yet, I do own TGE and TGB Pro. As I understand it, all the existing functions of TGE are in TGEA. I've found that the easiest way for me to get a completely flat mission and have the ability to dig out terrain for rivers, valleys, and add hills and mountains is to simply use the 'terraform' tool and import a PNG.You do this by hitting F11, then hit F7. Make a 256x256 PNG in MS Paint or any other program you like. Make the PNG a light grey and add one small spot either darker(which works best) or lighter and then import it as a bitmap. This gives you a completely flat mission, with one low or high area, depending on if the spot you made was lighter or darker. Then just use the brush to flatten out the area.
*Note* This only seems to work in the way I described. If you simply import a light grey PNG you wan't be able to terraform like I described above.
#4
If you, for example, imported in a pure black PNG you wouldn't be able to lower the terrain, only raise it. The opposite would result if you imported a pure white PNG.
Also, your texture should be grayscale mode.
06/06/2007 (7:22 am)
You need to have at least one pure white pixel (RGB 255 255 255) and one pure black pixel (RGB 0 0 0) in order for the engine to be able to determine height range. Black being the lowest and white the highest. If you, for example, imported in a pure black PNG you wouldn't be able to lower the terrain, only raise it. The opposite would result if you imported a pure white PNG.
Also, your texture should be grayscale mode.
#5
06/06/2007 (7:43 am)
@Tim: I didn't need to have one pure white and one pure black pixel, I just used on black and it works fine. Is this something for TGEA only?
#6
06/06/2007 (8:03 am)
All black doesn't work fine. Try lowering the terrain (without first raising it).
#7
I did not have to have one dark and one light spot on the PNG, just one dark and yes it works fine. If need be I can FRAPS me placing the PNG into Torque and showing you it works.
06/06/2007 (5:02 pm)
As I explained, and I guess I need to clarify. I used a light grey with one black spot. I can dig out the terrain and add with out doing one to the other first quite easily.I did not have to have one dark and one light spot on the PNG, just one dark and yes it works fine. If need be I can FRAPS me placing the PNG into Torque and showing you it works.
#8
06/07/2007 (1:32 am)
Thanks for you all. I have fixed the problem with Adrian's advice :)
Employee Michael Perry
GarageGames
2. Click file->new mission
3. Use the terrain editor, flattening tool to level the terrain
Or, you can generate a completely flat heightmap and generate it using Atlas commands and use that.