• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Resample Not Working - Please Help!

Messages
111
For some reason, resample isn't working on my computer, not even with the SDK sample files. From the flicker that appears on the screen when I try to use it, it says "unable to open output file".

Any help with this matter would be greatly appreciated!
 
it's very weird, you specified DestDir="output" in the inf file, are all you folders in environment kit/terrain sdk. Make the example file work first, the image in the sourcedata. the inf file and a folder to save this (output folder). Take care, if you write something in a wrong way,it wan't work, check the inf file for some tipying error.
Don't worry it is no so difficult but if you forget a comma, this will not work.:cool:
 
move it outside of your Program files directory, to remove permissions issues.
 
Thanks for the replies!

hcornea - moving it out of the Program Files folder did the trick. Thanks! Now I just need to get my file to work properly.

I converted my GeoTIFF image to WGS84. Now I have 2 files: "04100304.tif" and "04100304_wgs84.tif"

When I alter the .inf file, I assume I am I providing, next to SourceFile and in quotations, a full file path to "04100304_wgs84.tif". Is this correct?

I am also giving DestBaseFileName the same file name as the image. Is this ok?

I assume I can name the inf folder whatever I want when I save it...
 
Full file path is not required if unless the source lives in a different folder to the .inf file.

For a project it is usually simplest to copy resample.exe to your project folder

Destnation file can be called whatever you like!
 
Worked like a charm!

A few more questions. After the BGL is compiled, do I place it in the FSX Addon Scenery/Scenery folder? What happens to the GeoTIFF image? Does it need to be converted to a normal texture file and added to the texture folder?

If I need to edit a GeoTIFF image in Photoshop, will the GeoTIFF data be preserved when I save the file?

My sincere thanks for your help!
 
Last edited:
for that, you will need this commands :listgeo yourfile.tif > yourfile.gtf and geotifcp –g yourfile.gtf LG1.tif yourfile_W.tif
The first one is for save you geographic datas, the second to recover the data again after edit in the image editor, it's so because once you open your getiff in the editor the data is lost. Yes the files can be placed anywhere in the addon scenery folders.
There is not any english tutorial for this things?
 
Thanks Tejal,

The BGL compiled, and I moved it to addon scenery/scenery, but it isn't showing up. I have no idea what the problem could be.

I have found several tutorials online, but they are mostly very vague, and don't give details for beginners.
 
For the bgl to show up ... it does not require any texture file (the texture is resampled into the bgl)

The LOD needs to be higher resolution than the underlying landclass, or the scenery won't show.

Also, the scenery area needs to be active.
 
Last edited:
Thanks hcornea!

I'm sure the scenery is active, so it must be the LOD. What can I do to make the file work?

Thanks again for your help!
 
From memory, it needs to be greater than LOD 14 to display.

(My memory is less reliable than it used to be)

As a trial ....

open your compiled bgl in tmfviewer in the SDK.
look at the list of LODs to see what the highest one is.

Try adding

LOD = Auto,15 (replaces LOD - Auto)

into your inf file.

Then try the new bgl file and see if that fixes things.
 
Thanks again, hcornea.

I opened the file in tmfviewer and clicked on "View" "Level of Detail" and then clicked on "15" - which was the highest available. I also added "LOD = Auto,15" to the INF file - no luck.

I put the BGL in the addon scenery / scenery folder, and addon scenery is already active in FSX. I didn't add any location information for the TIFF, as I though the GeoTIFF already contained all of that information. What else could I be doing wrong?

Update: While I had the file open in TmfViewer, I clicked on "Jump", "Lat Long" and it gave me coordinates in another country. Is this the location in the GeoTIFF? If so, how can I correct it to get the proper coordinates?
 
Last edited:
I guess it is possible that your GeoTiff has not reprojected correctly and the coordinates are incorrect.

I cheat with this sort of stuff, and let Globalmapper do it for me. Can't be much help there.

Sorry
 
Back
Top