Jump to content


* * * - - 2 votes

Photo Real Terrain Tutorial


  • Please log in to reply
98 replies to this topic

#1 Timsher

Timsher

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,406 posts
  • Location:UWYO (Go Pokes)

Posted 30 April 2004 - 02:21 AM

I thought I'd share my newfound knowledge of how to make photo scenery with you.

Setup

What you need (All freeware programs B) )-
* Indicates only needed if you do not have color satellite images

Download and Install -
*USA Photo Maps - http://jdmcox.com/   (If outside of US, must find satellite images elsewhere)
*BigJPEG - http://jdmcox.com/
*Irfanview - http://www.irfanview.com
*GNU Image Manipulation Program (Gimp) - http://www2.arnes.si...imp/stable.html

Photo Scenery Maker - http://scenerytools.sourceforge.net/
FS2000 Terrain SDK (Not current version!)  http://download.micr...Terrain_SDK.EXE

Custom Terrain Textures SDK -  http://www.microsoft...wnloads_sdk.asp

-End of Setup-

If you have color satellite images skip to step #3
If you have black and white images skip to step #2
Else, start at step #1


Step 1   Obtaining the satellite imagery

First you need to find the longitudinal and latitudinal coordinates of the area you want to make scenery for.  Since I am doing a city area in this example I will simply do a search in Google for <City Name> + “Latitude" and hopefully the answer will be in the first couple of results.  In this case I searched for Kings Mills, OH  Latitude (the home of Kings Island), and in the first result I found that the coordinates for the town were 39.357963N and 84.247288S (or -84.247288)

Open USA Photo Maps and click File: New Map, Enter the name and the coordinates and press OK and you are greeted by an empty grid.

Posted Image
Posted Image

Hit the “F" key to download the maps from Microsoft's terraserver.  You can use the arrow keys to navigate the “map" and the + and - keys to zoom in or out (note if you zoom out to 8m or more the program will only download the 8m maps, zoom in to 4m or more and you can download the higher resolution 1m maps).

Posted Image

Once you download the area you want and have it in view, click File: Boundaries for BigJPEG.  Click and drag from one corner to the opposite corner and release the mouse button. It will make a file in the default directory (for me it's C:\Program Files\USAPhotoMaps\USAPhotoMapsData).  BigJPEG.exe and a file named ijl15.dll should already be in there.  Make sure that the txt file that was just made when you set the boundaries is the only txt file in the directory then run BigJpeg.exe.  It will ask you if you want to create a jpeg, click ok and wait a little box will pop up saying that the JPEG has been created.  If you look in the current folder you will see a new JPEG; you now have your satellite scenery!


Step 2  Colorizing your Satellite imagery.

Open up your B&W satellite JPEG in Irfanview and click image, resize.  Reduce the file size to 25% (equivalent to 4m, the max FS9 can handle).  

Posted Image

After the program is done resizing, click image - Decrease color depth, change to 16 colors (use 256 when you get more advanced).  After that click File - Save As and save it as a bmp.

Posted Image

Open up the image in gimp, immediately after opening right click on the picture and select Image: Mode: RGB.  This allows you to add color to the picture.  

Posted Image

In order to keep water from turning an ugly green when painting (which would be appropriate for the Ohio River :o ) you need to paint it first.  Click the paint fill tool (it's the bucket with the paint falling out).  Change the paint mode to overlay and select the affected area to “fill similar colors" and pick a nice rich blue color (I use 148db5). then start clicking on gray water area, filling them with blue.  If the color is not right use CTRL+Z to undo the last step, and try again.  If the water did not change colors, make sure that the image is in RGB mode.  If the water turned all the same color with no variance at all check to make sure that the paint mode is set to “overlay."  

Posted Image

The next step is to paint the trees.  Click on the select by color tool and set the threshold to 1 or 2 (15 if using 256 colors).  
Posted Image

Then find some medium brightness trees and click on them (this will REALLY tax your machine).  The select by color tool will then select every pixel with the same shade of gray (+ or - the variance).  If it looks like almost all the trees are selected and nothing else (except for a couple fields) then you have the threshold set correctly, if not setting the threshold higher will increase the selection and setting it lower will decrease the selection (After you use the tool again).

Posted Image

Now that you have all the trees selected pick the dump paint tool.  Set the mode to “overlay," and the affected area to “Fill whole selection."  Double click on the main color and select a dark, rich green color (I use 059702)

Posted Image

and click anywhere a tree is selected.  This should paint every selected tree a green color that varies with the amount of shade originally on the image.  

Posted Image

After finishing with the trees, start painting the fields using the same method you did to color the forest.  If you want you can individually paint each field by setting the paint bucket's affected area to “fill similar colors" and clicking on each and every field.  

Posted Image

I only use three colors when coloring scenery, Dark Green (059702) for forest and most fields, Dark Brown (695d19) for lighter fields, and Light Blue (148db5) for the Water.
Make sure you save every time you make a change that your happy with, gimp will occasionally crash when running in the windows environment.

Once there are no more gray areas (save for houses and roadways) just save the file and your finished!  Congratulations, this is the hardest part of the whole process, once you've passed this step your almost home free :P


Step 3   Inserting color satellite photos into FS9

Install FS2000 Terrain SDK and Custom Terrain Textures SDK into their default locations and run Photo Scenery Maker.  It should display an options box asking where the required files are (the ones you just installed), browse around until you find them and click OK.

Click File: New and beside “summer" click the three “." and select the .BMP file you colorized.  

Posted Image

Click the next tab labeled “coordinates" and enter in the coordinates of the north and west boundaries (sides) of your BMP file.  If you unsure what these are, open up USAPhotoMaps and move your mouse cursor over to the upper left-hand corner of the area you selected and use those coordinates (Important, for the US all west/east coordinates are negative, eg -84.34251 make sure you enter them that way or your scenery will be placed on the other side of the world.) Do not enter coordinates for east or south but rather click on the next tab labeled “output."  Select your output directory and base file name and click ok.  

Posted Image

Click File: Project Properties and you'll be greeted by the same window you just left, click on the coordinates tab.  Click next to where it reads “CellXDimensionDeg" and enter in a fraction, your goal is to get the X Resolution (m/pixels) to equal 4 as close as possible (assuming your using the 1m satellite imagery reduced to 25% as we did at the start of step 2, if your using other imagery change the 4 to whatever resolution your satellite imagery is at).

Posted Image

  Once you've done that setup the “CellYDimensionDeg" the same way then click ok.

Posted Image

If you do not see gridlines on your map you will get a “resolution to HIGH" error (which is why you have to manually set CellXDimensionDeg) to solve problem, go back and reenter the CellX and CellY data.

Click scenery generation and click “run whole process" and it will generate .bgl and texture files for you in the folder you selected before.  Just copy said files to the “Flight Simulator 9\Addon Scenery" in their respective folders, and you're completely done!  Go enjoy some nice looking scenery!

Edited by Timsher, 30 April 2004 - 08:47 PM.


#2 Jon

Jon

    Administrator

  • Admin
  • PipPipPipPipPipPip
  • 3,140 posts
  • Location:South Carolina, USA

Posted 30 April 2004 - 04:52 PM

Excellent work and good info Timsher!  I have a feeling this will find its way into the Articles database. :o

#3 Timsher

Timsher

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,406 posts
  • Location:UWYO (Go Pokes)

Posted 30 April 2004 - 08:19 PM

Glad you like it, I'm going to add two small screenshots that I forgot to add tonight :o

EDIT: Have added missing screenshots.

Edited by Timsher, 30 April 2004 - 08:51 PM.


#4 sammyboy

sammyboy

    Private Pilot - IFR

  • Members
  • PipPipPipPip
  • 609 posts
  • Location:England

Posted 02 May 2004 - 08:05 AM

Good find and great tutorial

#5 Hornet

Hornet

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 4,764 posts

Posted 09 May 2004 - 01:51 AM

I'll have to try that sometime.

#6 B737

B737

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,902 posts

Posted 09 May 2004 - 02:49 AM

Great Tutorial!!!!! :o

#7 ADSimpson

ADSimpson

    Orville Reincarnate

  • Members
  • PipPipPipPipPipPipPip
  • 5,926 posts
  • Location:KDTW

Posted 21 May 2004 - 03:21 PM

I'm DEFENETELY going to make a scenery for the Detroit area!

#8 Tom.D

Tom.D

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,251 posts

Posted 22 May 2004 - 12:37 PM

Greta tutorial! I like it!

#9 Hornet

Hornet

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 4,764 posts

Posted 22 May 2004 - 01:50 PM

I'm going to attempt to create one for the Las Vegas area.

#10 Timsher

Timsher

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,406 posts
  • Location:UWYO (Go Pokes)

Posted 22 May 2004 - 03:14 PM

I take it you saw the pictures in the screenshot section :o  If you have any questions when your trying this don't hesitate to PM or AIM me

Edited by Timsher, 22 May 2004 - 03:16 PM.


#11 ViperMan

ViperMan

    Student Pilot

  • Members
  • PipPip
  • 77 posts

Posted 24 May 2004 - 12:35 PM

Excellent tutorial.  Really great stuff.

One question for you.  How do I make the water textures show through in the right parts?  I.e. lakes and coastlines??

#12 Timsher

Timsher

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,406 posts
  • Location:UWYO (Go Pokes)

Posted 24 May 2004 - 04:05 PM

That would involve using a water mask which I will explain when I put up my photoshop addendum.

#13 ViperMan

ViperMan

    Student Pilot

  • Members
  • PipPip
  • 77 posts

Posted 24 May 2004 - 04:21 PM

I'll look forward to it.  Thanks.

Any eta?

#14 Timsher

Timsher

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,406 posts
  • Location:UWYO (Go Pokes)

Posted 24 May 2004 - 07:06 PM

I'll post it tommorrow (Good to see a fellow Battlestar: Galactica fan)

#15 ViperMan

ViperMan

    Student Pilot

  • Members
  • PipPip
  • 77 posts

Posted 25 May 2004 - 07:08 AM

Ok, another question for you.

I'm trying to build VFR scenery for the Isle of Wight (UK).  I've got the terrain done, and am starting work on placing autogen and other scenery on the tiles.

The only problem I have is that I have used one BMP for the island, and as such the north west tip of the BMP covers the coastline of the mainland as shown below.  Is there any easy way to get the default coastline to show?  Or am I just going to have to chop up my BMP into smaller bits?

Posted Image


Thanks again :o

#16 norwegian_hawk

norwegian_hawk

    Commercial Pilot

  • Members
  • PipPipPipPipPip
  • 1,069 posts
  • Location:Leknes, Lofoten, Norway

Posted 21 July 2004 - 07:31 AM

If you lot are looking for Photo scenery of the world, check out www.digitalglobe.com, www.eurimage.com, and www.infoterra-global.com. You can get Quickbird satellite imagery from there, preview here:

(original image was 3000 odd pixels square and better quality)


Posted Image

Amazing stuff. You can tell whether a car door is open or not its that good!

#17 sammyboy

sammyboy

    Private Pilot - IFR

  • Members
  • PipPipPipPip
  • 609 posts
  • Location:England

Posted 22 July 2004 - 09:16 AM

Out of the three sites what one is that screenshot from?

#18 norwegian_hawk

norwegian_hawk

    Commercial Pilot

  • Members
  • PipPipPipPipPip
  • 1,069 posts
  • Location:Leknes, Lofoten, Norway

Posted 22 July 2004 - 04:14 PM

digitalglobe.com own QuickBird. Eurimage.com sell the imagery (supposedly). Infoterra-global.com sell the imagery for sure. I ordered some recently  :o  :o . Expect Photo-real Norway soon!

#19 Timsher

Timsher

    Airline Transport Pilot

  • Members
  • PipPipPipPipPipPip
  • 3,406 posts
  • Location:UWYO (Go Pokes)

Posted 22 July 2004 - 04:16 PM

How much did you pay for it? (per Square mile or Squared KM)

#20 norwegian_hawk

norwegian_hawk

    Commercial Pilot

  • Members
  • PipPipPipPipPip
  • 1,069 posts
  • Location:Leknes, Lofoten, Norway

Posted 23 July 2004 - 04:04 AM

I haven't actually bought it yet but I believe the price varies from about $24 per square km to about $0.50, depending on the resolution and cloud cover (obviously none is acceptable for FS), whether it is true colour, DEM or panchromatic, etc. Your best bet is to go to www.infoterra-global.com and ask.  :o