Game Development Community

PNG file for terraformer!

by Earl Li · in Artist Corner · 11/19/2001 (11:39 pm) · 6 replies

I have no idea where to put my PNG file that will be used to generate the terrain. I have tried almost every directory and I just don't see my PNG file!

The PNG file is 256x256 grayscale.

please help!!!!!!! :)

The directory structure is:

c:/torquesdk/example/(where do I put it?)

thanx for your time.

#1
11/20/2001 (9:03 am)
Put it in example\common\editor\heightscripts
#2
11/20/2001 (10:23 pm)
thanx alot! it worked, but one more problem! :(

I made my map with the PNG file (which is a flat map), and I saved everything in the World Editor window, but everytime I load the map again, it generates a new map? (the mission is no longer flat). So basically, I cannot save what I changed to the terrain! The objects that were deleted or imported stays the same and saved properly. But the terrain kept morhping back, which is not right because my PNG file is only one colour!

HELP! :D

oh and one more problem, How do I rename the mission name? :D For example, I edited the TEST1 (quickload) map and saved as a different file. However, there are two TEST1 (quickload) maps right now in my map selection.

thanx for your time
#3
12/19/2001 (10:53 am)
in the mission editor you can flatten it out.
you might be having problems saving though
I don't know if torque generates .dso's for the mission and terrain files but you might want to look into that
#4
03/23/2002 (6:29 pm)
thanks for that info--it was driving me amd, didn't know should be in common and needed to make the heightscript folder

next question my terrain based on my local area is too exagerrated.

how do you scale it down, i kept trying changing the 1 1 1 in scale under terrain to 1 1 0.5 etc but nothing happens, clicked apply did saves, tried altering that min max terrain bit--i dont think it saved either

quinny
#5
04/01/2002 (11:19 am)
Look under the terrain section at this link:
holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/

I think it might explain what your asking about. If not, we'll give it another go :)
#6
04/01/2002 (3:05 pm)
Thanks Desmond, I managed it in the end



new TerrainBlock(Terrain) {
rotation = "1 0 0 0";
scale = "1 1 1";
detailTexture = "~/data/terrains/details/detail1";
terrainFile = "./test_terrain3.ter";
squareSize = "8";
locked = "true";
position = "-1024 -1024 0";
};

see the scale ="1 1 1";

I was trying to alter the z value to 0.5 and tried .5 and lots of other numbers but it never affected the terrain scale. But could scale the terrain when i put min terrain 100 and max 150 (damn I forget the exact heights and I would have to turn off the net to check). Ah well mucking around with min and max; scales the terrain but the proper bit of script does nothing!!!! And by the way I don't think position changes did anything either.
Your tutes are great btw--cept couln't open fog bit. I would like to dump the fog in RWars--could clear most of it but there is some left.