Board index FlightGear Development Scenery

TerraGear GUI

Questions and discussion about enhancing and populating the FlightGear world.

Re: TerraGear GUI 2.0

Postby itismike » Wed Apr 06, 2011 12:25 am

Here's my first comment, as promised! The compressed folder TerraGearGUI20110405.zip for the TerraGear GUI failed to extract for me. Googling the error (extract error 0x80004005) suggested trying a different unzip utility. I like 7zip, so installed it and it then unzipped the files just fine. Not sure why the native Windows 7 folder-unzipping utility failed...

I haven't used TerraGear GUI yet, but it looks like I need FlightGear installed to use the TerraGear GUI. I'm sure for most folks this is a no-brainer, but since I usually use Linux, and when I don't I use Mac OS X (and already installed FGFS on both of those platforms,) it was kind of a pain. I'm now downloading the Windows version and will continue to post my (possibly irrelevant) experience.
itismike
 
Posts: 47
Joined: Fri Sep 10, 2010 11:05 pm
Callsign: EZSPIN

Re: TerraGear GUI 2.0

Postby itismike » Wed Apr 06, 2011 3:20 am

Got hung up trying to download the sector data for my area's scenery. It's 80MB in size, and it would download pretty quick to about 60MB then just hang. Tried this three times over about 2 hours but it never completed. Found the mirror list and am expecting it to complete in a few minutes.
itismike
 
Posts: 47
Joined: Fri Sep 10, 2010 11:05 pm
Callsign: EZSPIN

Re: TerraGear GUI 2.0

Postby itismike » Wed Apr 06, 2011 6:36 am

I consider myself to be a pretty savvy computer user, but I stumbled through filling in all the data for the TerraGear GUI thinking: "Cool - a GUI to edit the scenery for my local airport!" Apparently I misunderstood. I'm not sure what it resulted in other than a manually-compiled scenery folder on my desktop.

The OGR Decode step was particularly confusing. When I clicked "Retrieve shapefiles" it populated the following in the left-hand column:
    Airports
    cs_drycrop
    cs_urban
    SRTM-30
The instructions say: "On the right list you'll add the materials, per shapefile. Each single shapefile on the left, should have a material assigned on the right."
I have very little idea what this means. Opening up the "Material" drop-down displays various shapes/materials. By guessing, I filled in the following:
    Airport
    DryCrop
    Urban
    [nothing matches SRTM-30]
But there are multiple DryCrop entries, multiple Urban items, etc. How am I to know what to select? I double-clicked the SRTM-30 entry to make the error about 'unequal number of shapefiles and materials' go away.

[edit] Thinking through that again, there's a comment in bold on the wiki stating: Warning: *_landmass MUST be mapped onto the material Default.
I saw nothing that indicated Landmass, so guessing I retrieved the shapefiles again and mapped SRTM-30 to the first of the two "Default" entries and re-ran the 'Decode shapefiles and apply material' operation.

It appears to have completed. But there was no 'editing' of my local airport to be had.

Gijs, can you please steer me toward a method to edit/enhance my local airport and surrounding area?
itismike
 
Posts: 47
Joined: Fri Sep 10, 2010 11:05 pm
Callsign: EZSPIN

Re: TerraGear GUI 2.0

Postby Gijs » Wed Apr 06, 2011 8:30 am

Hi Mike,

thanks a lot for your feedback! It's really appreciated.

- When I clicked "Retrieve shapefiles" it populated the following in the left-hand column:
Right. The SRTM-30 one shouldn't end up there (first bug!), since elevation data doesn't need to mapped to a (single) material. You can remove it for now, by double-clicking on it.

-Opening up the "Material" drop-down displays various shapes/materials. By guessing, I filled in the following:
This is the correct way. This also gives the reason why you "must" have FlightGear installed: it takes the materials from your FlightGear's materials.xml file. If you don't set the FG root, it should be populated with a default list of materials. So, setting the FG root is really optional.

-But there are multiple DryCrop entries, multiple Urban items, etc. How am I to know what to select?
That's due to the way we define landclasses. We have more classes, than materials in FlightGear. So various classes are grouped together and use the same material. A(n incomplete) list with Custom Scenery materials (that's what you downloaded; hence the cs_* shapefiles) is available at http://wiki.osgeo.org/wiki/LandcoverDB_CS_Detail

-Thinking through that again, there's a comment in bold on the wiki stating: [b]Warning: *_landmass MUST be mapped onto the material Default.
This is a little problem of TerraGear. The latest build has a option that ignores landmass (landmass defines where there is water and where there is land. Without a landmass shapefile, TerraGear will think everything is water) and just bases the land-or-water decission on the input shapefiles. Sadly this latest build seems to be broken... In order to generate scenery with an older build, you either need to download GSHHS_coasline from http://mapserver.flightgear.org/download.psp and OGR-decode that to "Default".

It appears to have completed. But there was no 'editing' of my local airport to be had.
Did you run fgfs-construct as well? OGR-decode just "prepares" the shapefiles to be generated into scenery.

It isn't easy yet, so it would be a huge step forward when the easy/quick-scenery script is finished! I'll work on the bugs/ideas mentioned in this post and update the release soon.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: TerraGear GUI 2.0

Postby itismike » Wed Apr 06, 2011 1:23 pm

Thanks for explaining that! I'm glad my critical review didn't ruffle any feathers :)

So I tried running fgfs-construct but think I need to specify the working directory:
Code: Select all
C:\Users\Michael\Desktop\terragear-cs-Win64-20101002>fgfs-construct.exe
Output directory is .
Working directory is .
Center longitude is -110.664
Center latitude is 33.3529
X distance is -1
Y distance is -1
Nudge is 0
Priorities file is default_priorities.txt
Unable to open file default_priorities.txt
Failed to load priorities file default_priorities.txt

C:\Users\Michael\Desktop\terragear-cs-Win64-20101002>
What syntax is fgfs-construct expecting?
itismike
 
Posts: 47
Joined: Fri Sep 10, 2010 11:05 pm
Callsign: EZSPIN

Re: TerraGear GUI 2.0

Postby Gijs » Wed Apr 06, 2011 7:59 pm

Eh... isn't that what the GUI is designed for? :evil:
Or take a look at our wiki http://wiki.flightgear.org/index.php/Us ... ng_scenery
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: TerraGear GUI 2.0

Postby HHS » Fri Apr 08, 2011 3:21 pm

I tried it today- but it seems I failed.

From the beginning:
Download and unzipping wasn't a problem, created a folder called "SceneryWork" as ProjectDirectory. Specifying the other roots wasn't a problem as well.

Then I inserted the wished long/lat-values and tried to download all the needed files (Shapefiles/elevation-files)- but nothing happened. After some minutes waiting and an empty log file, I decided to download the files manually- that was done fast; I decided to download the cls2000-files. Of course I unzipped it.

Then HGT-chopping: according to the log it did went well, as I used the right resolution (3arc), genapts seemd to work as well. I wonder which values I need for max rwy slope.

OGR-Decode: I got a big list of shapefiles including the SRTM30-folder, which I deleted from the list. Decoding and applying materials seemed to be done well again.

Last step: FGFS-construct
I tried to select all materials, and then only one material. Never I got any output- no scenery! :(
I wonder what went wrong.

log.txt:
Code: Select all
2011/04/08 16:10:39  -  C:/Programme/terragear-cs-Win32-20101002/hgtchop 1 C:/Programme/SceneryWork/data/SRTM30/N47E007.hgt/N47E007.hgt C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:10:39  -  C:/Programme/terragear-cs-Win32-20101002/terrafit C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:11:00  -  C:/Programme/terragear-cs-Win32-20101002/hgtchop 3 C:/Programme/SceneryWork/data/SRTM30/N47E008.hgt/N47E008.hgt C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:11:00  -  C:/Programme/terragear-cs-Win32-20101002/terrafit C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:11:17  -  C:/Programme/terragear-cs-Win32-20101002/hgtchop 3 C:/Programme/SceneryWork/data/SRTM30/N48E007.hgt/N48E007.hgt C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:11:17  -  C:/Programme/terragear-cs-Win32-20101002/terrafit C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:11:53  -  C:/Programme/terragear-cs-Win32-20101002/hgtchop 3 C:/Programme/SceneryWork/data/SRTM30/N48E008.hgt/N48E008.hgt C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:11:53  -  C:/Programme/terragear-cs-Win32-20101002/terrafit C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:12:10  -  C:/Programme/terragear-cs-Win32-20101002/hgtchop 3 C:/Programme/SceneryWork/data/SRTM30/N48E009.hgt/N48E009.hgt C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:12:10  -  C:/Programme/terragear-cs-Win32-20101002/terrafit C:/Programme/SceneryWork/work/SRTM-30
2011/04/08 16:13:09  -  C:/Programme/terragear-cs-Win32-20101002/genapts --input=C:/Programme/FlightGear/fgdata/Airports/apt.dat --work=C:/Programme/SceneryWork/work
2011/04/08 16:16:25  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Airport C:/Programme/SceneryWork/work/Airport C:/Programme/SceneryWork/data/clc_airport
2011/04/08 16:16:27  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type ComplexCrop C:/Programme/SceneryWork/work/ComplexCrop C:/Programme/SceneryWork/data/clc_complexcrop
2011/04/08 16:16:29  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type CropGrass C:/Programme/SceneryWork/work/CropGrass C:/Programme/SceneryWork/data/clc_cropgrass
2011/04/08 16:16:30  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type DeciduousForest C:/Programme/SceneryWork/work/DeciduousForest C:/Programme/SceneryWork/data/clc_deciduousforest
2011/04/08 16:16:32  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type DryCrop C:/Programme/SceneryWork/work/DryCrop C:/Programme/SceneryWork/data/clc_drycrop
2011/04/08 16:16:36  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type EvergreenForest C:/Programme/SceneryWork/work/EvergreenForest C:/Programme/SceneryWork/data/clc_evergreenforest
2011/04/08 16:16:37  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type GolfCourse C:/Programme/SceneryWork/work/GolfCourse C:/Programme/SceneryWork/data/clc_golfcourse
2011/04/08 16:16:38  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Grassland C:/Programme/SceneryWork/work/Grassland C:/Programme/SceneryWork/data/clc_grassland
2011/04/08 16:16:38  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Greenspace C:/Programme/SceneryWork/work/Greenspace C:/Programme/SceneryWork/data/clc_greenspace
2011/04/08 16:16:39  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Industrial C:/Programme/SceneryWork/work/Industrial C:/Programme/SceneryWork/data/clc_industrial
2011/04/08 16:16:40  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Lake C:/Programme/SceneryWork/work/Lake C:/Programme/SceneryWork/data/clc_lake
2011/04/08 16:16:40  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Marsh C:/Programme/SceneryWork/work/Marsh C:/Programme/SceneryWork/data/clc_marsh
2011/04/08 16:16:42  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type MixedForest C:/Programme/SceneryWork/work/MixedForest C:/Programme/SceneryWork/data/clc_mixedforest
2011/04/08 16:16:43  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type NaturalCrop C:/Programme/SceneryWork/work/NaturalCrop C:/Programme/SceneryWork/data/clc_naturalcrop
2011/04/08 16:16:44  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type OpenMining C:/Programme/SceneryWork/work/OpenMining C:/Programme/SceneryWork/data/clc_openmining
2011/04/08 16:16:45  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Orchard C:/Programme/SceneryWork/work/Orchard C:/Programme/SceneryWork/data/clc_orchard
2011/04/08 16:16:45  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type ScrubCover C:/Programme/SceneryWork/work/ScrubCover C:/Programme/SceneryWork/data/clc_scrub
2011/04/08 16:16:47  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Town C:/Programme/SceneryWork/work/Town C:/Programme/SceneryWork/data/clc_town
2011/04/08 16:16:47  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Transport C:/Programme/SceneryWork/work/Transport C:/Programme/SceneryWork/data/clc_transport
2011/04/08 16:16:50  -  C:/Programme/terragear-cs-Win32-20101002/ogr-decode --line-width 10 --continue-on-errors --area-type Watercourse C:/Programme/SceneryWork/work/Watercourse C:/Programme/SceneryWork/data/clc_watercourse
2011/04/08 16:17:48  -  C:/Programme/terragear-cs-Win32-20101002/fgfs-construct --work-dir=C:/Programme/SceneryWork/work --output-dir=C:/Programme/SceneryWork/output/Terrain --lon=8 --lat=47 --xdist=1 --ydist=1 Airport AirportArea AirportObj ComplexCrop CropGrass DeciduousForest DryCrop EvergreenForest GolfCourse Grassland Greenspace Industrial Lake Marsh MixedForest NaturalCrop OpenMining Orchard ScrubCover Town Transport Watercourse


EDIT:
output.txt: http://pastebin.com/YU5CJq4n
Up, up and away
User avatar
HHS
 
Posts: 3625
Joined: Thu Jul 19, 2007 9:09 am
Version: GIT

Re: TerraGear GUI 2.0

Postby Gijs » Fri Apr 08, 2011 4:02 pm

Hi Heiko,

thanks for your detailed report! It's stuff like this that makes developing fun :)

Then I inserted the wished long/lat-values and tried to download all the needed files (Shapefiles/elevation-files)- but nothing happened.
Hm, the created url should show up in the log; but it doesn't. What boundaries did you set? Lon=6-8, lat=46-48? Works fine here. It does take a minute or so to pack up the download, but not minutes...

I wonder which values I need for max rwy slope.
Leaving it empty is the best, if you don't know what it does :)

Never I got any output- no scenery!
Was the C:/Programme/SceneryWork/output/Terrain directory created? Anything in it?

Code: Select all
2011/04/08 16:17:48  -  C:/Programme/terragear-cs-Win32-20101002/fgfs-construct --work-dir=C:/Programme/SceneryWork/work --output-dir=C:/Programme/SceneryWork/output/Terrain --lon=8 --lat=47 --xdist=1 --ydist=1 Airport AirportArea AirportObj ComplexCrop CropGrass DeciduousForest DryCrop EvergreenForest GolfCourse Grassland Greenspace Industrial Lake Marsh MixedForest NaturalCrop OpenMining Orchard ScrubCover Town Transport Watercourse

You did not inlcude a "Default" landmass; which isn't needed with recent TerraGear, but in that case you should check the "Ignore landmass" checkbox on the FGFS Construct page.

But, as the 20101002 build is broken for me, I expect it also won't work on your machine. Please try with an older build. In order to create the "default landmass" shapefile, run OGR decode on all the shapefiles, with material set to "Default" for all of them. Like this.After that, you should see "Default" popup in the fgfs-construct list (after clicking the "Update list" button). Now, make sure you select at least "Default" when generating scenery.



Gijs
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: TerraGear GUI 2.0

Postby HHS » Fri Apr 08, 2011 5:04 pm

Gijs wrote in Fri Apr 08, 2011 4:02 pm:Hm, the created url should show up in the log; but it doesn't. What boundaries did you set? Lon=6-8, lat=46-48? Works fine here. It does take a minute or so to pack up the download, but not minutes...


After trying it again, it worked. Maybe connection issues...

Was the C:/Programme/SceneryWork/output/Terrain directory created? Anything in it?


No, wasn't created.

But, as the 20101002 build is broken for me, I expect it also won't work on your machine. Please try with an older build. In order to create the "default landmass" shapefile, run OGR decode on all the shapefiles, with material set to "Default" for all of them. Like this.After that, you should see "Default" popup in the fgfs-construct list (after clicking the "Update list" button). Now, make sure you select at least "Default" when generating scenery.
Gijs


Tried the build before (terragear-cs-Win32-20100207), selected "Default" - no success. No "output"-folder :(

Code: Select all
2011/04/08 17:50:18  -  C:/Programme/terragear-cs-Win32-20100207/fgfs-construct --work-dir=C:/Programme/SceneryWork/work --output-dir=C:/Programme/SceneryWork/output/Terrain --lon=8 --lat=47 --xdist=1 --ydist=1 --ignore-landmass Airport AirportArea AirportObj CropGrass DeciduousForest Default DryCrop EvergreenForest MixedForest SRTM-30 Town
Up, up and away
User avatar
HHS
 
Posts: 3625
Joined: Thu Jul 19, 2007 9:09 am
Version: GIT

Re: TerraGear GUI 2.0

Postby Gijs » Fri Apr 08, 2011 5:28 pm

I use TerraGear-cs-Win32-20090614 (never noticed the 20100207, due to it being placed at the end of the list because of it's non-capitilised T), maybe worth giving a try. If it still doesn't work we'll have to look further :(
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: TerraGear GUI 2.0

Postby HHS » Fri Apr 08, 2011 5:59 pm

Indeed, now it seems to work.
But something seems to be wrong with my selected coordinates, I only get ocean....
Up, up and away
User avatar
HHS
 
Posts: 3625
Joined: Thu Jul 19, 2007 9:09 am
Version: GIT

Re: TerraGear GUI 2.0

Postby Gijs » Fri Apr 08, 2011 6:05 pm

Or you did not perform the "Default" part right (for all the shapefiles). In that case, scenery is generated well, but it's just invisible...
Can you email me your project directory?
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: TerraGear GUI 2.0

Postby HHS » Fri Apr 08, 2011 6:22 pm

Currently I'm struggling with this:

Code: Select all
N47W008-N48E000

But http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/ don't show me this files.....

I guess that might be one problem behind, I mapped only the default shapefile to material "default", all others to the matching ones....
Up, up and away
User avatar
HHS
 
Posts: 3625
Joined: Thu Jul 19, 2007 9:09 am
Version: GIT

Re: TerraGear GUI 2.0

Postby Gijs » Fri Apr 08, 2011 6:32 pm

Hm, for your scenery area (Germany right?), it should show N47E007-N48E008 (or something like that)...
What boundaries did you set?

I mapped only the default shapefile to material "default", all others to the matching ones....

That's a problem. Now, only the small areas that are covered by the default shapefile will be visible. So, you load all the shapefiles with OGR-decode and map them to "Default" (TerraGear adds them up, so don't worry). When that's finished, define the per-shapefile-materials like you'd normally do. Run ogr-decode again with these (this time leaving the default shapefile out, as it is already mapped). Finally you select all the materials (including "Default") in fgfs-construct and generate the scenery.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: TerraGear GUI 2.0

Postby HHS » Fri Apr 08, 2011 6:46 pm

Thanks, Now I get at least a scenery with the landmass and town, and it seems that I even get the right elevation-file.

What's still missing is the airport.
Boundaries:

Max lat: 48
Min lat: 47

Min Lon: 8
Max long:8

So N47W008-N48W008 should I download, but don't find it.

Genapts:
min long: 8
max long: 8

Max lat: 48
Min lat: 47


Hmm... why no airport?
Up, up and away
User avatar
HHS
 
Posts: 3625
Joined: Thu Jul 19, 2007 9:09 am
Version: GIT

PreviousNext

Return to Scenery

Who is online

Users browsing this forum: No registered users and 8 guests