• 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.

Aerial Image Problem - Black Edges WGS84

Messages
14
Country
brazil
Hey guys!
I'm trying to make a Photoreal scenery. As I've got the aerial images from USGS TNM I used the Resample Tool, converting the JPG2000 to WGS84 projection, but in the Simulator there is those black areas from the image after the reprojecting it.

upload_2017-1-2_17-12-56.png


How can I fix it!?
Thank you and happy 2017!
 
Hi,

Check if you inf file specifies black as no data colour. Then those lines should go away.

Although sometimes it's better to first merge all the images and then reproject to prevent black lines. Of course that only works if the area is not too big.
 
This is my INF file:

[Source]
Type = MultiSource
NumberOfSources = 3

[Source1]
Type=TIFF
Layer=Imagery
SourceDir="."
SourceFile="Reprojected2.tif"
PixelIsPoint=0
ulxMap=-88.1122739224246
ulyMap=30.2590537728668
xDim=1.46183106337402E-06
yDim=1.46183106337402E-06
Variation=Day
Channel_LandWaterMask = 2.0

[Source2]
Type = TIFF
SourceDir = "."
SourceFile = "a.tif"
PixelIsPoint=0
ulxMap=-88.1122739224246
ulyMap=30.2590537728668
xDim=1.46183106337402E-06
yDim=1.46183106337402E-06
Layer = None
SamplingMethod = Gaussian

[Source3]
Type = TIFF
SourceDir = "."
SourceFile = "Blendmask.tif"
PixelIsPoint=0
ulxMap=-88.1122739224246
ulyMap=30.2590537728668
xDim=1.46183106337402E-06
yDim=1.46183106337402E-06
Layer = None
SamplingMethod = Gaussian

[Destination]
DestDir="."
DestBaseFileName="Reprojected2"
LOD=Auto

And it's quite a big area, so I think it'll be a problem to merge it. And those black edges are also in the .TIF file
 
Try to add this line to your sources :

NullValue = 0,0,0
 
Welcome to the world of reprojected images. Those areas are red because they are covered by your blendmask. I solved this problem by carefully aligning the edge of the blendmask with the saw toothed edge of the image area. Not the edge of the canvas. I then assigned the area of the blendmask that covered the null area of the source image a null value. If someone knows a faster method I'm listening because it was tedious time consuming work.
 
Welcome to the world of reprojected images. Those areas are red because they are covered by your blendmask. I solved this problem by carefully aligning the edge of the blendmask with the saw toothed edge of the image area. Not the edge of the canvas. I then assigned the area of the blendmask that covered the null area of the source image a null value. If someone knows a faster method I'm listening because it was tedious time consuming work.

How you did that? Could you explain it better?!
 
I opened both the image and blendmask with the blendmask on top as layers in GIMP. I then set the opacity of the blendmask layer to around 50% or less. Then I used the rectangle selection tool to select along each distinct edge of the image an area ten pixels wide. In GIMP you can use the shift key to select 3 areas at a time. This selection would give me three areas that were about 30 pixels long by 10 pixels wide that were adjacent to one another. Then I would color the selected area grey. After I completed the entire edge of the image I would close the image file, reset the opacity of the blendmask to 100% and save it. Now I can modify the grey area to blend with the adjacent landclass by using a brush. What you cannot do is have any of the grey area cover any of the null area on your image. This will be shown as red in FSX. The area on my blendmask that is covering the null area on the image file is also set as a null value.
 
I opened both the image and blendmask with the blendmask on top as layers in GIMP. I then set the opacity of the blendmask layer to around 50% or less. Then I used the rectangle selection tool to select along each distinct edge of the image an area ten pixels wide. In GIMP you can use the shift key to select 3 areas at a time. This selection would give me three areas that were about 30 pixels long by 10 pixels wide that were adjacent to one another. Then I would color the selected area grey. After I completed the entire edge of the image I would close the image file, reset the opacity of the blendmask to 100% and save it. Now I can modify the grey area to blend with the adjacent landclass by using a brush. What you cannot do is have any of the grey area cover any of the null area on your image. This will be shown as red in FSX. The area on my blendmask that is covering the null area on the image file is also set as a null value.

Well, I'll try to do that. I was trying using GlobalMapper, I've made an Island Photoreal but the image is all red!! Do you know what happened?
 

Attachments

  • upload_2017-1-4_1-2-2.png
    upload_2017-1-4_1-2-2.png
    179.1 KB · Views: 502
Last edited:
Sorry, but I haven't used Global Mapper so I don't want to even speculate as to why you got the result you did.

I just put together the TIF files and then reprojected them to WGS84. Is it red because I didn't add the BlendMask?
 
http://www.fsdeveloper.com/forum/threads/aerial-image-problem-black-edges-wgs84.439074/

Hey guys!
I'm trying to make a Photoreal scenery. As I've got the aerial images from USGS TNM I used the Resample Tool, converting the JPG2000 to WGS84 projection, but in the Simulator there is those black areas from the image after the reprojecting it.

View attachment 32264

How can I fix it!?
Thank you and happy 2017!

Have you reviewed the suggested aerial imagery re-projection sequence for a work-flow using Global Mapper ...in this recent thread ? ;)

http://www.fsdeveloper.com/forum/threads/overlapping-imagery-tiles-in-a-single-bgl.439020/

GaryGB
 
Hello:

A few questions to help us to help you with more specific troubleshooting info: :scratchch


Which USGS aerial imagery did you download from The National Map (aka "TNM") web portal ?

Was this aerial imagery from the US National Aerial Imagery Program (aka "NAIP"), and if so, what year ?

What is the resolution, and does it have a Near-InfraRed (aka "NIR") band as part of the file format ?

What was the file format provided: GeoTiff ...or something else ?


If you have any Metadata files which were a part of the original downloaded ZIP file, please look at that and see if you can post info from there, to identify your particular data set and resolution. ;)


[EDITED]

We need to know this, for some of the reasons discussed in this topically-related thread: :pushpin:

http://www.fsdeveloper.com/forum/threads/satellite-images-bgls-are-showing-up-red.426792/


PS: A few more links:

https://www.google.com/#q=site:www.fsdeveloper.com+P3D+red+Resample


FYI
: TNM shows 319 aerial imagery data files available for the immediate vicinity of Dauphin Island AL, including 6-inch / 15-cm resolution (all in 'lossy-compressed' JPEG-2000 format).

dauphin_island_al_usgs_tnm_download_viewer-jpg.32285


dauphin_island_al_usgs_tnm_download_viewer_available_products-jpg.32286



NOTE: Google Earth view:

dauphin_island_al_ge-jpg.32288


[END_EDIT]

GaryGB
 

Attachments

  • Dauphin_Island_AL_USGS_TNM_Download_Viewer.jpg
    Dauphin_Island_AL_USGS_TNM_Download_Viewer.jpg
    288.7 KB · Views: 876
  • Dauphin_Island_AL_USGS_TNM_Download_Viewer_Available_Products.jpg
    Dauphin_Island_AL_USGS_TNM_Download_Viewer_Available_Products.jpg
    358.7 KB · Views: 888
  • Dauphin_Island_AL_GE.jpg
    Dauphin_Island_AL_GE.jpg
    503.6 KB · Views: 863
Last edited:
Back
Top