Jump to content
  • catty-cb
    catty-cb

    Generating terrain from USGS DEM files in SimCity 3000

    Contributor/author(s): Marcus Weddle, Joey Hancharik (edited by Wren Weburg)

    The following article has not been tested by SC3000.COM for accuracy. This article was submitted by a third party and SC3000.COM can not provide any additional support pertaining to this article.

    Here's more specific info on getting a DEM file from USGS to a .bmp:

    1. Get the file from the Web site
      http://edcwww.cr.usgs.gov/glis/hyper/guide/1_dgr_demfig/index1m.html (this help is for these maps only--the 7minute ones won't convert using the utility I mention later).

      After choosing which area you want, go to the download page. You are going to click on the compressed version of whichever map you want. But before you click:

      You will probably need to add a GZ mime type to your browser in order to download the compressed file (these directions are for Netscape 4), or you will have problems uncompressing the file. In Netscape 4+, go to edit > preferences, drop down "Navigator" and choose "Applications". Choose "New Type..." and enter:
      Description: Gzip
      Extension: GZ
      MIME: application\x-compressed
      Application to use: -leave blank-
      Uncheck checkbox at bottom
      Hit OK, and then click "Edit" on the new listing (Gzip). Choose the save to disk radio button, and click OK out of the preferences. Now you can click on the link to download the DEM to a directory of your choice.

       

    2. Uncompress the file
      Open the file in WinZip or some other uncompressing program that can handle gzip files. It will ask you the name of the file that is contained within--just hit OK. Extract the file to a directory of your choice.

       

    3. Convert to a .tga
      Download dem2tga.zip from http://www.alltel.net/~jonl/dem.html. Extract the two files from that zip to the directory you saved the DEM to. Now open up a DOS prompt and navigate to the directory you saved to. Type dem2tga <filefromwebsite> <yourterrain.tga>. <filefromwebsite> will be the file you extracted earlier, and <yourterrain.tga> is the target file. You may have to rename the dem file to something shorter if you are having problems with the 8.3 filenames. There shouldn't be any extension on the dem file unless you put one on and you do need to put the .tga on your terrain output file the program will make.

       

    4. Resize/crop tga
      Open the .tga in you graphics editor

      If it won't open (Photoshop 5 won't open the ones I tried), download and install ACDSee (http://www.acdsystems.com/pages/acdsee32.htm) and open the file using this program, then choose edit > copy image. Then go into your graphics program, make an empty 1201x1201 file and paste.

      Now, with great effort, you have the greyscale file, which needs to be resized or cropped to the right size for the map you want to make.

      Joey Hancharik offers this alternate advice for resizing/cropping tga files: I have found that with Paintshop Pro, you can open the .tga file, convert it into a .bmp, and open it in Photoshop 5, if that is your preferred editor.

      See also
      bullet_2pnt_text.gifGenerating custom terrain from bitmaps
      bullet_2pnt_text.gifReal terrain importation Part I: Get & convert terrain
      bullet_2pnt_text.gifReal terrain importation Part II: Prepare & import terrain
      bullet_2pnt_text.gifTerrain generation with Photoshop 4.0
      bullet_2pnt_text.gifReal terrain importation & file edit tips (Macintosh only)
      bullet_2pnt_text.gifReal terrain creation supplement
      bullet_2pnt_text.gifRealistic space terrain with Unlimited
      bullet_2pnt_text.gifTerrain importing utilities and resources
      bullet_2pnt_text.gifNotes on scale



    User Feedback


    There are no comments to display.



    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


  • Recently Browsing   0 members

    No registered users viewing this page.

×

Thank You for the Continued Support!

Simtropolis depends on donations to fund site maintenance costs.
Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

Make a Donation, Get a Gift!

Expand your city with the best from the Simtropolis Exchange.
Make a Donation and get one or all three discs today!

STEX Collections

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections