FSXA Resample for photoreal with monthly variations

#1
Hey guys,

I want to add three variations to my photoreal: 1 for January, February, September, October, November and December, one for March, April, May, June, July, August and the last as the night.

But, what happens: My first source is used in the Fsx in all the months, the second source is totally ignored and, when night, the image doesn't show and what i see is the default terrain of Fsx.

Can someone say what is wrong?
Thank you

Here is my code to the .inf file:
Code:
[Source]
Type = MultiSource
NumberOfSources = 5

[Source1]
Type                = BMP
Layer               = Imagery
SourceDir           = "."
SourceFile          = "Nanuque.bmp"
Variation       = January,February,September,October,November,December
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Source2]
Type                = BMP
Layer               = Imagery
SourceDir           = "."
SourceFile          = "Nanuque Fall.bmp"
Variation       = March,April,May,June,July,August
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Source3]
Type                = BMP
Layer               = None
SourceDir           = "."
SourceFile          = "Nanuque Watermask.bmp"
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
SamplingMethod       =  Gaussian

[Source4]
Type                = BMP
Layer               = None
SourceDir           = "."
SourceFile          = "Nanuque Blendmask.bmp"
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
SamplingMethod       =  Gaussian

[Source5]
Type                = BMP
Layer               = Imagery
SourceDir           = "."
SourceFile          = "Nanuque Night.bmp"
Variation       = Night
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Destination]
DestDir             = "."
DestBaseFileName    = "Nanuque_Season"
DestFileType        = BGL
LOD                 = Auto
UseSourceDimensions = 1
CompressionQuality  = 85
 
#5
You forgot:
Season = .....
I wonder if it expects a continuous block as in:
Variation = September,October,November,December,January,February
Thanks for the replies. I tested with both the informations, but the sim continues always showing only the first image, like if it is for all the seasons. The second image is ignored like if doesn't exists in the code.

I Tryed to separe all the seasons too, the result was the same as described above.

Now the summary of my results are: I see the "Nanuque.bmp" all the time, in all the seasons/months, the "Nanuque Fall.bmp" is ignored and doesn't show up in the sim in any time, and the night works well.

My code:
Code:
[Source]
Type=MultiSource
NumberOfSources=7

[Source1]
Type=BMP
SourceDir="."
SourceFile="Nanuque.bmp"
Season=Summer
Layer=Imagery
Variation=November,December,January,February
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Channel_LandWaterMask=4.0
Channel_BlendMask=5.0

[Source2]
Type=BMP
SourceDir="."
SourceFile="Nanuque Fall.bmp"
Season=Fall
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Layer=Imagery
Variation=March,April,May
Channel_LandWaterMask=4.0
Channel_BlendMask=5.0

[Source3]
Type=BMP
SourceDir="."
SourceFile="Nanuque Fall.bmp"
Seasons=Winter
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Layer=Imagery
Variation=June,July,August
Channel_LandWaterMask=4.0
Channel_BlendMask=5.0

[Source4]
Type=BMP
SourceDir="."
SourceFile="Nanuque Watermask.bmp"
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Layer=None
SamplingMethod=Gaussian

[Source5]
Type=BMP
SourceDir="."
SourceFile="Nanuque Blendmask.bmp"
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Layer=None
SamplingMethod=Gaussian

[Source6]
Type=BMP
SourceDir="."
SourceFile="Nanuque.bmp"
Season=Spring
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Layer=Imagery
Variation=September,October
Channel_LandWaterMask=4.0
Channel_BlendMask=5.0

[Source7]
Type=BMP
SourceDir="."
SourceFile="Nanuque Night.bmp"
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Layer=Imagery
Variation=Night
SamplingMethod=Gaussian
Channel_LandWaterMask=4.0
Channel_BlendMask=5.0

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

rhumbaflappy

Moderator
Staff member
Resource contributor
#6
Hi Felipe.

Your LandWater mask and your Blend mask must be 8-bit, gray scale, TIFF.

Then this works:
Code:
[Source]
Type = MultiSource
NumberOfSources = 5

[Source1]
Type                = BMP
Layer               = Imagery
SourceDir           = "."
SourceFile          = "Nanuque.bmp"
Variation       = January,February,September,October,November,December
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Source2]
Type                = BMP
Layer               = Imagery
SourceDir           = "."
SourceFile          = "Nanuque Fall.bmp"
Variation       = March,April,May,June,July,August
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Source3]
Type                = TIFF
Layer               = None
SourceDir           = "."
SourceFile          = "Nanuque Watermask.tif"
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
SamplingMethod       =  Gaussian

[Source4]
Type                = TIFF
Layer               = None
SourceDir           = "."
SourceFile          = "Nanuque Blendmask.tif"
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
SamplingMethod       =  Gaussian

[Source5]
Type                = BMP
Layer               = Imagery
SourceDir           = "."
SourceFile          = "Nanuque Night.bmp"
Variation       = Night
ulxMap           = -17.8127635505468
ulyMap              = -40.341796875
xDim           = 5.36441802978842E-06
yDim                  = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Destination]
DestDir             = "."
DestBaseFileName    = "Nanuque_Season"
DestFileType        = BGL
LOD                 = Auto
UseSourceDimensions = 1
CompressionQuality  = 85
 
#8
Hi,

Sorry for being late. I keep having the same problems. I think that have something wrong with my files. I'm starting a new project now, so i will try with all the information obtained here. Thank you so much for the help!

Regards
 
#9
I think, haven't read the SDK in awhile re seasons, but I thought the options were summer only or all the seasons. So I think you need to add a Spring and Winter but they could be duplicates of your other images. I would try that.
 
#10
AFAIK, if you add seasons then you have to define them. If you only define summer and set the variation to June, July, August and no other seasons, it could be that you do not have any photoreal in the other months of the year.But you do not need Spring or Fall as long as you define Winter season with the variation of the months left out.
But I have never been that dumb so I am not sure if this is true;).
But logic (my own, mind you:)) makes me assume that that would be the case.
Suppose for a moment that you have a photoreal of an arctic region where summer is indeed just 3 months and the others would be winter, then it would suffice to add
season=summer
variation = June, July, August
and another one:
season = winter
variation = September, October, November, December, January, February, March, April, May
where you use the winter modified photoreal.

PS (so that you know it is me): I might add that in the case of my example of an arctic region and depending on your photoreal, it might be wise to define Season = Spring for the summer months.
 
Last edited:

rhumbaflappy

Moderator
Staff member
Resource contributor
#11
The above example I gave is the solution.
From the SDK:

Variation
January

February

March

April

May

June

July

August

September

October

November

December

Day (all months)

LightMap or Night

All (day and night)

Temporal variation (month or time of day) associated with Imagery data sources. LightMap images are used at night during all months. To associate a single image with more than one temporal variation, use multiple values separated by commas. For example, to use a single image in both January and February, type "Variation = January,February"
There is no variation of season.
 
#12
Hello,

Can somebody tell me what am I doing wrong?
This is my .inf code for seasons:


[Source]
Type = MultiSource
NumberOfSources = 6

[Source1]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "ile-des-soeurs-summer.bmp"
Season = 3
Variation = June, July, August
Channel_BlendMask = 5.0
Channel_LandWaterMask = 6.0
ulyMap = 45.4760217547587
ulxMap = -73.5630798339844
xDim = 2.68220901489258E-06
yDim = 1.88131591742887E-06

[Source2]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "ile-des-soeurs-mild-winter.bmp"
Season = 0
Variation = April, May, October
Channel_BlendMask = 5.0
Channel_LandWaterMask = 6.0
ulyMap = 45.4760217547587
ulxMap = -73.5630798339844
xDim = 2.68220901489258E-06
yDim = 1.88131591742887E-06

[Source3]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "ile-des-soeurs-hard-winter.bmp"
Season = 1
Variation = January, February, March, April, November, December
Channel_BlendMask = 5.0
Channel_LandWaterMask = 6.0
ulyMap = 45.4760217547587
ulxMap = -73.5630798339844
xDim = 2.68220901489258E-06
yDim = 1.88131591742887E-06

[Source4]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "ile-des-soeurs-fall.bmp"
Season = 4
Variation = September
Channel_BlendMask = 5.0
Channel_LandWaterMask = 6.0
ulyMap = 45.4760217547587
ulxMap = -73.5630798339844
xDim = 2.68220901489258E-06
yDim = 1.88131591742887E-06

[Source5]
Type = TIFF
Layer = None
SourceDir = "."
SourceFile = "ile-des-soeurs-blendmask.tif"
SamplingMethod = Gaussian
ulyMap = 45.4760217547587
ulxMap = -73.5630798339844
xDim = 2.68220901489258E-06
yDim = 1.88131591742887E-06

[Source6]
Type = BMP
Layer = None
SourceDir = "."
SourceFile = "ile-des-soeurs-watermask-no-contours.bmp"
SamplingMethod = Gaussian
ulyMap = 45.4760217547587
ulxMap = -73.5630798339844
xDim = 2.68220901489258E-06
yDim = 1.88131591742887E-06

[Destination]
Destdir = "."
DestBaseFileName = "ile-des-soeurs"
DestType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 100
 

rhumbaflappy

Moderator
Staff member
Resource contributor
#15
Resample won't use 8-bit bitmaps... just 24-bit. The SDK provides a multichannel_multisource.inf that uses 24-bit bitmaps for the imagery layers, and 8-bit tifs for the blendmask and watermask.
 
#16
I haven't seen anyone mention this:
Seasonal textures must have the following extensions: Fall "_Fa", Hard Winter "_Wi", Spring "_Sp", Night Maps "_N". . .for example, in your initial post it should read like this:

[Source]
Type = MultiSource
NumberOfSources = 5

[Source1]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "Nanuque.bmp"
Variation = January,February,September,October,November,December
ulxMap = -17.8127635505468
ulyMap = -40.341796875
xDim = 5.36441802978842E-06
yDim = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Source2]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "Nanuque Fall_Fa.bmp"
Variation = March,April,May,June,July,August
ulxMap = -17.8127635505468
ulyMap = -40.341796875
xDim = 5.36441802978842E-06
yDim = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

[Source3]
Type = TIFF
Layer = None
SourceDir = "."
SourceFile = "Nanuque Watermask_W.tif"
ulxMap = -17.8127635505468
ulyMap = -40.341796875
xDim = 5.36441802978842E-06
yDim = 5.10701117259162E-06
SamplingMethod = Gaussian

[Source4]
Type = TIFF
Layer = None
SourceDir = "."
SourceFile = "Nanuque Blendmask_B.tif"
ulxMap = -17.8127635505468
ulyMap = -40.341796875
xDim = 5.36441802978842E-06
yDim = 5.10701117259162E-06
SamplingMethod = Gaussian

[Source5]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "Nanuque Night_N.bmp"
Variation = Night
ulxMap = -17.8127635505468
ulyMap = -40.341796875
xDim = 5.36441802978842E-06
yDim = 5.10701117259162E-06
Channel_LandWaterMask = 3.0
Channel_Blendmask = 4.0

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

rhumbaflappy

Moderator
Staff member
Resource contributor
#17
The bitmaps and tifs can have any name. I think only SBuilderX requires those naming conventions. Resample doesn't care what the names are.
 
#18
I converted both masks to TIF with GIMP.
Still, the scenery is not showing up.
However, it worked perfectly as it was before I add season Imageries.
Adding seasons made my scenery invisible and all I see is the default.

I am lost...
 
Last edited:
#19
When you say it worked without variations, have you tried it with just one variation at a time? This could narrow down any issues with the images.
Only things I can see which probably don't affect it -- as pointed out, there's no such thing as 'season =', and you currently have April twice...
 

rhumbaflappy

Moderator
Staff member
Resource contributor
#20
I didn't see the April duplicate, but it still compiled for me using 8-bit greyscale tifs for the masks. (It shows mild-winter for me in TMFViewer).

Bill,

In your original INF file you are using a blendmask tif and a watermask bmp. Maybe that was the original problem? As far as GIMP... I don't know what is being saved, but I recommended 8-bit greyscale TIF. You could zip the images or if too big put them on a One drive or some other source for us to download and look at them.

Resample stops if you use a bitmap with 8-bits. Bitmaps need to be 24-bit (I think 32-bit might also work). It's hard to get a greyscale with a 24-bit palette.
 
Top