Game Development Community

fail to load a heightmap

by Justin Campbell · in Torque Game Engine · 08/04/2009 (10:22 pm) · 1 replies

Hello I was trying to write a step by step report to figure out what was my problem, it starts like this :


outside of torque :

i created a heightmap from datas from google earth using microdem.

Inside of Torque :

Step 1 : click on new project in Torque Toolbox
Step 2 : Name it Mountain
Step 3 : open the project
Step 4 : delete the existing terrain
Step 5 : Click on File
Step 6 : Click on import heightmap
Step 7 : Browse the correct file
Step 8 : Name it newMountain
Step 9 : Click on import (my heightmap is on my desktop)

then is shown "failed to import terrain! Heightmap failed to load!"

I remember somewhere that I had to enter a line in the command prompt to allow torque to read external files, I think. Is it the problem ? What is this command line ?

Thank you.

#1
08/05/2009 (6:20 am)
I could be wrong but I think TGE can only access files relative to the executable.

Which means that the file must be the folder or sub-folder of where the executable is located.

I think this is by design.