• 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.exe not compiling for me (what am I doing wrong)

Messages
32
Country
us-california
I have the resample.exe from the FSX SDK.

I was working on http://www.flightsim.com/vbfs/showthread.php?250762-How-to-create-photoreal-scenery-for-FSX
so when I arrived to the compiling part, it did not compile anything. I've tried to check on the SOURCE DIR and DES DIR (inserted the location of the Nauru folder) and still nothing.

This is my Photo.INF

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Notepad<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

[Source]
Type = BMP
Layer = Imagery
SourceDir = "C:\Nauru"
SourceFile = "Nauru.BMP"
Variation = All
NullValue = 255,255,255
SamplingMethod = Gaussian
ulyMap = -.49712511018201
ulxMap = 166.904296875
xDim = 5.36441802978516E-06
yDim = 5.36418936735518E-06

[Destination]
DestDir = "C:\Nauru"
DestBaseFileName = "Photo01"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85




>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Notepad<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

And my Nauru.INF file

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Notepad<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

[Source]
Type = MultiSource
NumberOfSources = 3

[Source1]
Type = BMP
Layer = Imagery
SourceDir = "C:\Nauru"
SourceFile = "Nauru.bmp"
Variation = January, February, March, April, May, June, July, August, September, October, November, December
Channel_BlendMask = 6.0
Channel_LandWaterMask = 3.0
ulyMap = -0.49712511018201
ulxMap = 166.905670166016
xDim = 5.36441802978516E-06
yDim = 5.36419057532689E-06


[Source2]
Type = BMP
Layer = None
SourceDir = "C:\Nauru"
SourceFile = "Nauru Blendmask.bmp"
SamplingMethod = Gaussian
ulyMap = -0.49712511018201
ulxMap = 166.905670166016
xDim = 5.36441802978516E-06
yDim = 5.36419057532689E-06

[Source3]
Type = BMP
Layer = None
SourceDir = "C:\Nauru"
SourceFile = "Nauru Watermask.bmp"
SamplingMethod = Gaussian
ulyMap = -0.49712511018201
ulxMap = 166.905670166016
xDim = 5.36441802978516E-06
yDim = 5.36419057532689E-06


[Destination]
DestDir = "C:\Nauru"
DestBaseFileName = "Nauru"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Notepad<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

It's all a matter of accomplishing the Watermasking and Blendmask, successfully.

Please help me on this one.

Thank you.
 
renumber your channel_blendmask to 02, which is the source id you gave it. Calling it blendmask = 6.0 makes no sense.
 
Hi Bob,
just tried it. The compilation happens in less then a second with no results. No info on error messages either.
 
Thanks Bob.
I have found several errors in this tutorial but I'm not sure how this gentlemen got this far with his .inf file. I've used resample.exe on other resample samples in the SDK folder and it does compile. My .inf file is wrong in some sectors of it,..
 
This was an example I copied years ago, and generally follow. It looks in general like yours, while of course I prefer Geotiff, so I reduce the complexity. My guess is that is where your mistake is. I don't understand why you don't see error messages. You do run resample.exe from the command line, correct?



; Resample INFormation file
; Variations test with land/water and blend masks pulled from multiple files.

[Source]
Type = MultiSource
NumberOfSources = 4

[Source1]
Type = GeoTIFF
Layer = Imagery
SourceDir = h:\fs_design_projects\blake_park
SourceFile = blake1a.tif

Variation = Day

; pull the blend mask from Source3, band 0
Channel_BlendMask = 3.0

// pull the land/water mask from Source4, band 0
Channel_LandWaterMask = 4.0

[Source2]
Type = GeoTIFF
Layer = Imagery
SourceDir = h:\fs_design_projects\blake_park
SourceFile = blake1a.tif

Variation = Night
Channel_BlendMask = 3.0
Channel_LandWaterMask = 4.0

[Source3]
Type = GeoTIFF
Layer = None
SourceDir = h:\fs_design_projects\blake_park
SourceFile = blake1blenda.tif

SamplingMethod=Gaussian

[Source4]
Type = GeoTIFF
Layer = None
SourceDir = h:\fs_design_projects\blake_park
SourceFile = blake1watera.tif

SamplingMethod=Gaussian


[Destination]
DestDir = h:\fs_design_projects\blake_park
DestBaseFileName = blake1
UseSourceDimensions = 1
CompressionQuality=85
 
image_of_error_message.jpg
I just ran resample from the command line on the sample inf. of course I got an error file, as the tif files are in different paths now. Perfect for illustration purpose. If you don't see this screen, perhaps you aren't running resample.exe from within cmd.exe.
 
I've been successful with the sample folder in the FSX SDK on compiling with resample.exe. And those files are BMP files.
 

Attachments

  • 2014-07-26 15-20-54 Screenshot.png
    2014-07-26 15-20-54 Screenshot.png
    366.8 KB · Views: 577
Assuming your paths are correct, the inf should be:

[Source]
Type = MultiSource
NumberOfSources = 3

[Source1]
Type = BMP
Layer = Imagery
SourceDir = "C:\Nauru"
SourceFile = "Nauru.bmp"
Variation = January, February, March, April, May, June, July, August, September, October, November, December
Channel_BlendMask = 2.0
Channel_LandWaterMask = 3.0
ulyMap = -0.49712511018201
ulxMap = 166.905670166016
xDim = 5.36441802978516E-06
yDim = 5.36419057532689E-06


[Source2]
Type = BMP
Layer = None
SourceDir = "C:\Nauru"
SourceFile = "Nauru Blendmask.bmp"
SamplingMethod = Gaussian
ulyMap = -0.49712511018201
ulxMap = 166.905670166016
xDim = 5.36441802978516E-06
yDim = 5.36419057532689E-06

[Source3]
Type = BMP
Layer = None
SourceDir = "C:\Nauru"
SourceFile = "Nauru Watermask.bmp"
SamplingMethod = Gaussian
ulyMap = -0.49712511018201
ulxMap = 166.905670166016
xDim = 5.36441802978516E-06
yDim = 5.36419057532689E-06


[Destination]
DestDir = "C:\Nauru"
DestBaseFileName = "Nauru"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85

I normally use greyscale tiffs for the blend and water-masks.
 
GHD, I tried this first>
[Source]
Type = MultiSource
NumberOfSources = 3

[Source1]
Type = BMP
Layer = None
SourceDir = "."
SourceFile = "Nauru.bmp"
Variation = All
Channel_BlendMask = 2.0
Channel_LandWaterMask = 3.0
ulyMap = -.49712511018201
ulxMap = 166.904296875
xDim = 5.36441802978516E-06
yDim = 5.36418936735518E-06

[Source2]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "Nauru_Blendmask.bmp"
SamplingMethod = Gaussian
ulyMap = -.49712511018201
ulxMap = 166.904296875
xDim = 5.36441802978516E-06
yDim = 5.36418936735518E-06

[Source3]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "Nauru_Watermask.bmp"
SamplingMethod = Gaussian
ulyMap = -.49712511018201
ulxMap = 166.904296875
xDim = 5.36441802978516E-06
yDim = 5.36418936735518E-06


[Destination]
DestDir = "."
DestBaseFileName = "Nauru"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85

nothing. I believe the bmp's can not have a space between them and so I renamed them.
Still nothing. I'm considering geoTiffs.


GHD,
I tried your recommendation and still nothing. Let me keep at it. Aint giving up.
 
You need to use the command line so you can see the error message resample is giving. Simply 'trying things' will not help you. The solution to resample problems is usually simple, but no one can give you any useful advice without the error message and the INF.

Dick
 
yes, OP, I KNOW that's what you do. And that's the reason we can't help you. Instead of doing what you do, DO what I told you to do. Then we'll see the error message...then we can help you.
 
Perhaps you don't know how to run something from the command line?

If your on windows 7, go to start, and then type cmd into the "search programs and files" area. CMD.EXE will be found, double click it and you'll see command.exe, the windows Dos emulator. Then change its directory to the folkder in which you have your resample.exe file, by typing CD <path>. Now type: resample yourfilename.inf. The path is where your resample.exe file is located. Something like C:\fsx_scenerydesign\yourfile.inf.....of course using exactly your path, I jsut made that up as an example.
 
ok guys....I'm amused by windows 7. Ok, given that cmd.exe in windows 7 seems to not recognize CD command, go into your windows folder and then into "system32" fubfolder. Then copy and past cmd.exe into whatever folder your resample.exe is. Then it should take the command "resample yourfilename.inf".
 
Back
Top