Game Development Community

Torque 3D crashes then I apply Smooth heightmap

by Awakened · in Torque 3D Beginner · 09/07/2013 (7:09 am) · 9 replies

So, Torque 3D crashes then I apply Smooth heightmap. Sometimes I succede to Smooth ones, but I need to do this not less that one more time and then it crashes. And even more, it crashes after smoothing then I try to save my level. :(
Need help. Thank you in advance.

http://www.pixshock.net/16fb5f14961a2281d0d4330bdf4248bc.html

#1
09/07/2013 (8:15 am)
First of all, that seems like an issue with your heightmap being in an incorrect format. You want your heightmap to be in a 16bit format I got a tool which does that for you if you'd like it I can post it here.
Secondly, I have no chance of figuring out what the issue is without more information, can you post your console log file here? (Ofc the log file from after a crash)
#2
09/07/2013 (11:30 am)
It would be very kind of you if you share your tool.
I don`t know there I can find a console log file after crash. May be you can tell me?
In addition I share my heightmap so you can try to smooth it by youself:
http://download178.files.attachmail.ru/A4D4A261665C44728169ED029E316883/22c181093580332767db629139609180/SANGIN8192M_164M_Modified.png

So I imported my heightmap,set a 2 metres per pixel (becouse realy it is 8196x8196 metres long), height is 164 meters and then tried to smooth it.
#3
09/07/2013 (11:56 am)
I'm sorry but T3D only supports heightmaps of size up to 2048, that might very well give you some issues.

I converted your image to a 16 bit png and resized it to 2048*2048 (I also compressed it properly reducing the file size to 900kB) try to import it and see if that removes your issues.
Find the converted png here
#4
09/07/2013 (12:36 pm)
Yes, you are right, thank you! Now there is no problem with smoothing and saving.
It looks like your supersoft smooths heightmap too.
#5
09/07/2013 (12:41 pm)
Okay great!
This is the set of tools I use for my terrain pipeline. The one you would be looking for for this specific issue is the one called "heightmap.bat" and "convert.exe" just make sure they are in the same folder and drag and drop your height map on top of the bat file (only works for windows).
It uses ImageMagick so recreating the bat file in Linux or Mac shouldn't be any issue. If you don't want the bat file to resize your image, just edit it with notepad and remove the part that says:
-resize 2048x2048
#6
09/07/2013 (1:10 pm)
Thank you for sharing, I will try it!

Yes, I see that heightmap.bat makes my image 2048x2048 size, but the size of the file is stil at about 7 mb. How did you compressed it till 0,9 mb?
#7
09/07/2013 (1:59 pm)
I opened the image in Gimp and re-exported it as a png. This procedure should work with just about any image manipulation program and will not hurt the quality of the image.
#8
09/08/2013 (1:34 am)
Lukas, thanks a lot for your help!
#9
09/08/2013 (2:33 am)
more or less I`m moving forward
http://s1.ipicture.ru/uploads/20130908/0hOYfGGV.jpg