1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Photo-real seasonal textures problem - Resample

Discussion in 'Prepar3D' started by Bill Gr, 21 Aug 2016.

  1. Bill Gr

    Bill Gr

    Joined:
    3 Aug 2016
    Messages:
    8
    Country:
    canada
    Hello, I am having a hard time making my scenery to show up.

    Since I have added seasonal textures, my scenery do not longer show up in-sim.

    This is my .inf code for Resample:



    [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


    The .bgl is created successfully but the scenery is not longer showing up in-sim.
    If someone could help me by telling me what is wrong with this code it will be much appreciated.
     
  2. =rk=

    =rk=

    Joined:
    28 Nov 2009
    Messages:
    1,309
    Country:
    us-washington
    Water and blend masks should be GeoTIFF format and April should probably be only one variation.
     
  3. dave hoeffgen

    dave hoeffgen Resource contributor

    Joined:
    16 Sep 2014
    Messages:
    1,087
    Country:
    germany
    How large is the .bgl file? Maybe one of the bitmaps got corrupted
     
  4. HolgerSandmann

    HolgerSandmann Resource contributor

    Joined:
    10 Oct 2006
    Messages:
    337
    Country:
    ca-britishcolumbia
    Hi there,

    also, what does the resulting bgl look like in TMFViewer? It's a great diagnostic tool in the Terrain SDK but often overlooked by developers.

    Cheers, Holger
     
  5. Bill Gr

    Bill Gr

    Joined:
    3 Aug 2016
    Messages:
    8
    Country:
    canada
    @dave hoeffgen
    My file is 2.40 GB and is pretty much one complete Island of Montréal in one BGL, i have compiled it many times with minor modifications in the code, but still, nothing.
    Maybe because of high compression quality? Should I rather reduce it to 85?

    @HolgerSandmann
    In the TMFViewer it does not show anything unfortunately.
    Maybe because of high compression quality? Should I rather reduce it to 85?
     
  6. Bill Gr

    Bill Gr

    Joined:
    3 Aug 2016
    Messages:
    8
    Country:
    canada
    How do I convert to GeoTIFF? Can I do that in GIMP? A .tif is not the same?
     
  7. dave hoeffgen

    dave hoeffgen Resource contributor

    Joined:
    16 Sep 2014
    Messages:
    1,087
    Country:
    germany
    I suspected a bitmap file corruption but in that case the bgl would have 0 mb size. So that's not the case. How do water and blend masks look?
     
  8. =rk=

    =rk=

    Joined:
    28 Nov 2009
    Messages:
    1,309
    Country:
    us-washington
    You have two masks and one is in the proper format, simply convert the other to the same format and redefine the .ini file:
     
  9. Bill Gr

    Bill Gr

    Joined:
    3 Aug 2016
    Messages:
    8
    Country:
    canada
    Water and blend mask look just as intended, however after adding the seasons nothing shown.
    I did another test, i reduced Compression to 85 and everything shown up normallu.
    Now, I am completing the seasons with gimp. I will also add a Spring Imagery source and test out with the new settings.
    I have corrected the Variation values based on that was shown in the TMFViewer when I selected months.

    I will let you know if I see any farther problem, thanks for the help!
     
  10. dave hoeffgen

    dave hoeffgen Resource contributor

    Joined:
    16 Sep 2014
    Messages:
    1,087
    Country:
    germany
    So you are using gimp too?
    I always had issues as resample didn't seem to like the bitmaps exported by gimp. It always reported they were corrupted.
    So I always export to tiff and it all works.
     

Share This Page