Game Development Community

how can I create a new .ter data with terrain editior?

by Zhao Kun · in Torque Game Engine · 01/14/2009 (5:17 am) · 11 replies

for test reason, i need a small and simple terrain data. but i could not figure it out how to do it with terrain editor. i try some .ter files in torque's example, but they are too big for my test.

can anybody give me some suggestion?
thx a lot!

About the author

Recent Threads


#1
01/15/2009 (7:48 am)
does anybody give me a clew?
#2
01/19/2009 (4:09 am)
i just need a terrain data which is not so big. In the example, i found the flat.ter file, which is just a flat ground, is already 257kB. that's too big for my test.
#3
01/19/2009 (4:34 am)
So your seeking "BIG" as in file size? What are you trying to test?
#4
01/19/2009 (5:10 am)
yes, because of the local memory restriction.
the program is running on a cell processor. it's doing the physic simulation with bullet physic engine. I got the terrain mesh data from torque terrain object, create a bullet mesh object in the physic world, that's where i call the memory allocation function.
without spu supporting, it works fine. But after i added the spu supports, it crashed down because of the memory allocation.
so i am thinking of testing my program with all the memory allocation smaller than 256kb. that's why i need a smaller terrain data.

thx
#5
01/19/2009 (5:22 am)
You talk about programing, but your not listed as a Torque owner; so i do not feel it is morally correct for me to help, unless you post question in the PRIVATE forums. Sorry.
#6
01/19/2009 (5:31 am)
oh sorry, I am a working as a internship student, and my torque game engine is under a legal license, but of course not under my name but my adviser.
#7
01/19/2009 (6:05 am)
Ok, that is logical.


Start TGE, start the mission with the hightmap you wish to chop down in size.

Press F11, then press F6 for Terrain Editor

Goto Action menu option, and pick the SET EMPTY option

Now 'paint' on the terrain, where you wish to NOT have any hightmap information. When you save this mission out you will find the filesize of your .ter to be much smaller.

Hope this do what you need...
#8
01/19/2009 (6:14 am)
Oh no, that did not work for me the second time i try it. I must have mis-read the file size when i was experimenting...

I can not get a .ter file smaller then 257k, that must be its minimal size.

You might try deleting the terrain, and replace it with a DTS.
#9
01/19/2009 (6:16 am)
thanks a lot!

I did that early, maybe i did not delete big enough hightmap compared to the original size of flat ground.

But Now i will try it again!

#10
01/19/2009 (6:27 am)
Yes sorry, i was wrong. You must have posted right as i re-posted. Do try my second suggestion, about the DTS or even a DIF.
#11
01/19/2009 (6:33 am)
yes, you are right, i tried again, that's not working.

but thx anyway for your replies