Terrain (Chapter 12)
by Axiom · in Torque Game Engine · 10/31/2005 (6:33 am) · 5 replies
Ok I purchased this book and it is really fantastic...
But I hit a snag.
So I made my layered terrain in Photoshop, and it imported ok... but I thought the white area would be HUGE mountains.. and the area is still basically flat.
Is there any way to make mountains and cliffs with the grey map? or am I going to have to go in and sculpt it all out with the editor?
But I hit a snag.
So I made my layered terrain in Photoshop, and it imported ok... but I thought the white area would be HUGE mountains.. and the area is still basically flat.
Is there any way to make mountains and cliffs with the grey map? or am I going to have to go in and sculpt it all out with the editor?
#2
Plus the book doesnt say what those two numbers mean (min terrain height and Height range) does a higher number mean more of a range (bigger mountains?)
Thanks for your reply
10/31/2005 (10:54 am)
I saw that but when I changed the numbers around I log into the game and I immedeately fall through the "Earths" crust. Plus the book doesnt say what those two numbers mean (min terrain height and Height range) does a higher number mean more of a range (bigger mountains?)
Thanks for your reply
#3
holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/terrain/heightfields.shtml
Find the section about halfway down that says:
I followed this page a while back and got my terrain map working very well. I think that the height range is probably the setting that is causing your problem. Try setting it to a value around 50. Also ensure that there is sufficient contrast between the darkest and lightest shades on your terrain map.
11/01/2005 (1:34 am)
Have a look at the excellent article about creating torque terrains at:holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/terrain/heightfields.shtml
Find the section about halfway down that says:
Quote:On the right side of the screen in the General Settings area, set the Minimum Terrain Height and the Height Range in meters.
Now, this will cause a bit of confusion, but due to a code issue (as of 1/23/02), the maximum elevation should be used for the Minimum Terrain Height. The highest elevation is 485 feet; this translates to a Minimum Terrain Height setting of approximately 148 meters.
485 feet / 3.281 feet per meter = 147.8208 (148) meters
The Height Range represents the distance from our lowest to highest elevation. The greyscale color values of our heightfield image will be interpolated between these values. Simply calculate the difference, multiply times the ratio of highest color number divided by total greyscale colors (256) and convert to meters:
485 feet - 410 feet = 75 feet
240/256 x 75 feet = 70.3 feet (240 is our highest color in the table above)
70.3 feet / 3.281 feet per meter = 21.4 (21) meters
I followed this page a while back and got my terrain map working very well. I think that the height range is probably the setting that is causing your problem. Try setting it to a value around 50. Also ensure that there is sufficient contrast between the darkest and lightest shades on your terrain map.
#4
The book is very good on general help, but when it comes to things like this (or my other problem how to reSIZE a map. hint hint :D )
it doesnt offer much in the way of help.
Is there any place do get detailed help on making maps in Torque? Or just keep using this forum and hope for helpful peeps to stop by :D
11/02/2005 (6:52 am)
Thanks for the help.The book is very good on general help, but when it comes to things like this (or my other problem how to reSIZE a map. hint hint :D )
it doesnt offer much in the way of help.
Is there any place do get detailed help on making maps in Torque? Or just keep using this forum and hope for helpful peeps to stop by :D
#5
11/02/2005 (7:53 am)
You fall through the ground because your spawnsphere is located below the terrain. When you open up the mission hit ALT+C , F11 and move the spawning point up above the terrain. Save the mission, reload and you'll be set.
Torque Owner Steve L