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

FSX Resample.exe Not Compiling

Hi George:

IMHO, reading through a thread before posting is a 'simple' pre-requisite to keeping posts that are "off-topic" from adding to thread size. :alert:


The OP has repeatedly stated that his existing Water and Blend Masks created in Photoshop CS3 do not align with his purchased aerial imagery.

He is now using GIMP 2.8 trying to achieve proper alignment and scaling to match image size and resolution of his custom, very detailed Mask images with his purchased aerial imagery.


I have previously suggested that Caleb use GIMP 2.8 to re-configure his Mask graphic file format into 8-Bit Grayscale TIFFs during final output for SDK Resample to reduce working data set size and BGL output size.


I have noted that both you and Roby have previously stated on more than one occasion, that such 8-Bit Grayscale TIFF Masks MUST use LZW Compression during final output by GIMP for compatibility with SDK Resample.

AFAIK that LZW Compression 'requirement' for 8-Bit Grayscale TIFF Masks was subsequently reported to have been due to a "bug" in the way that GIMP 2.6 output such a TIFF graphic file format (...that is now 'fixed' in GIMP 2.8). :pushpin:


IMHO, it is not longer considered a preferred practice to use the LZW Compression with 8-Bit Grayscale TIFF Masks during final output by ex: GIMP 2.8 or later for submission to SDK Resample, as it results in approximately a 2 to 3 times longer BGL compilation time.

However, IIUC, it may prove useful for Caleb to still use (non-lossy) LZW Compression with his 24-Bit RGB color purchased aerial imagery and his 24-Bit RGB color Masks when loaded concurrently in GIMP 2.8, as this may reduce his working data set size, while still allowing for anti-aliasing to be used with the GIMP 2.8 "Transform" tools, thus enabling him to maintain more of the details in his very detailed custom Mask images. :idea:


George, considering your past experience as a FS developer, and considering the likelihood that the OP is currently working with multiple 24-Bit RGB color raster images of approximately 1 GB each loaded concurrently in GIMP 2.8, would you actually not have something pertinent and helpful to offer to this thread which may assist the OP as a relative 'newcomer' to the processes under discussion here ? :scratchch

GaryGB
 
Last edited:
So what I am doing is copying the watermasks from my watermask image to a separate layer of my geo-rectified/re-projected GeoTIFF and "transforming" them via Edit > Transform to line them up with the imagery below.

So I am to some extent following Roby's idea of drawing them on top of my GeoTIFF imagery but I am copying them on top of my GeoTIFF imagery. I don't want to draw the masks all over again because my area has lots of irrigation canals and it would be a hard and long job to draw them again.

FYI I started this copying-my-watermasks-and-blendmasks process using GIMP but I am now using Photoshop as I find GIMP is much slower than PS on my laptop and I can barely do anything more than import and export images from GIMP without my computer locking up.
 
Hi Caleb:

AFAIK, Photoshop CS3 is only 32-Bit, and GIMP 2.8 automatically installs a 64-Bit version on your 64-Bit Windows computer(s).


If Photoshop CS3 (32-Bit) works with those large images faster than GIMP 2.8 (64-Bit), that is a good thing. :)


FYI: I have discovered that Corel PhotoPaint (32-Bit) completes certain tasks faster than GIMP 2.8 (64-Bit).

However, I do also use Corel PhotoPaint (64-Bit) for certain functions involving larger images. ;)

GaryGB
 
Last edited:
Hi Caleb:

AFAIK, Photoshop CS3 is only 32-Bit, and GIMP 2.8 installers automatically install a 64-Bit version on your 64-Bit Windows computer(s).


If Photoshop CS3 (32-Bit) works with those large images faster than GIMP 2.8 (64-Bit), that is a good thing. :)


FYI: I have discovered that Corel PhotoPaint (32-Bit) completes certain tasks faster than GIMP 2.8 (64-Bit).

However, I do also use Corel PhotoPaint (64-Bit) for certain functions involving larger images. ;)

GaryGB
Ok thanks for the info. :)
 
https://www.fsdeveloper.com/forum/threads/resample-exe-not-compiling.442820/post-800759

FYI: I started this copying-my-watermasks-and-blendmasks process using GIMP but I am now using Photoshop as I find GIMP is much slower than PS on my laptop and I can barely do anything more than import and export images from GIMP without my computer locking up.

If you have not already done so, I recommend doing work with large images, on your above cited desktop computer: :idea:

"Flying PC: HP Envy 750, Intel Core i7 6700 @ 3.4 GHz (max 4.0 GHz), 24GB RAM, Nvidia GeForce GTX 745 with 4GB Memory, 2TB SSHD, Windows 10 Home 64 bit."

Also, you can set your CPU priority for Photoshop CS3 in Windows task manager to "Above Normal", "High", or "Realtime".

GaryGB
 
Last edited:
If you have not already done so, I recommend doing work with large images, on your above cited desktop computer: :idea:

"Flying PC: HP Envy 750, Intel Core i7 6700 @ 3.4 GHz (max 4.0 GHz), 24GB RAM, Nvidia GeForce GTX 745 with 4GB Memory, 2TB SSHD, Windows 10 Home 64 bit."
I'm sure it's a good idea but photoshop runs fine on my laptop and all my files are on the laptop too. Plus I'm also leaving the sim PC as you've probably read in the other thread.

I also like keeping my Flying PC clean with not too many things on it.

If it is very necessary I will use my Flying PC for the images though.

Also, you can set your CPU priority for Photoshop CS3 in Windows task manager to "Above Normal" or "Realtime".

Did not know about this... Will try. Thanks for letting me know. :)
 
If you use your LapTop a lot for production, some time when you are ready, I can show you how to set up a Windows ReadyBoost cache system, if the following is not easy enough to comprehend. :idea:

I use a 256 GB ReadyBoost cache system with my LapTop that has pitiful system RAM and a slow 5400 RPM hard drive.

The performance boost with most functions makes it worthwhile using that LapTop now. ;)


BTW: The Windows 7 64-Bit maximum ReadyBoost cache size is 256 GB.

But, even a ReadyBoost cache system as small as 32 GB conveys a measure of perceptible benefit (...more is better).


FYI: Here's an excerpt from one of my prior posts on 'boosting' LapTop performance:

To dramatically "speed up" large projects in Sketchup, and to more quickly launch other applications such as one's graphics application ex: Photoshop, GIMP, Corel PhotoPaint / PaintShop Pro etc. (texture Editor linked to Sketchup) via:

{ selected texture face } > Right-click > Texture > Edit Texture Image...


...Use 1 or more fast flash drive (ex: at least 150 or 100 MB/sec) on a USB 3.0 / 2.0 port as ReadyBoost cache memory.

I use (16) "SanDisk Ultra - Dual USB Drive 3.0" (32-GB capacity) flash drives ...on (4) USB 3.0 4-port 'Hubs' at the office / (2) 4-port 'Hubs' when traveling.

This essentially becomes a hybrid flash memory hardware / software RAID 0 Windows 'dynamic drive' expanded PageFile with super fast I/O. :wizard:


BTW: SanDisk was recently 'acquired' by Intel; these actually are quality flash drives with a peak speed of 133 mbps, and are available from ex: WalMart.;)


NOTE: For faster I/O:

1.) Format flash drive(s) as ExFAT (not NTFS) file system

a.) Use larger Cluster sizes for faster I/O

NOTE: When using 'Quick Format' on a flash drive, I purposely use the maximum Allocation Unit Size of:

* 32768 KB

...in favor of faster flash drive access speed (this requires a small drive 'slack' overhead of ~11% of drive capacity)



Per MS Windows KB docs for ReadyBoost on ExFAT drive (these figures are for maximum storage size, not fast I/O):

"Default cluster sizes for exFAT

The following table describes the default cluster sizes for exFAT.

Volume size in Windows 7, Windows Server 2008 R2, Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Code:
Drive size   -   Cluster size

7 MB–256 MB      4 KB

256 MB–32 GB     32 KB

32 GB–256 TB     128 KB

> 256 TB         Not supported

https://support.microsoft.com/en-us/kb/140365


2.) In Windows Explorer, right-click drive letter > Properties > {ReadyBoost) Tab:

a.) 'Tick' radio button: "Dedicate this device to ReadyBoost"

b.) Set "Space to reserve for system speed" slider to maximum size allowed by Windows on ExFAT drives


3.) Click [Apply], [OK] buttons; ReadyBoost drive is now activated (system gains speed steadily after initial file I/O)



PS: ReadyBoost also dramatically speeds up Windows Explorer file display / search of folders with 'MANY' (> 5,000) files on local and networked drives, in addition to speeding up web browsers ex: FireFox.


"Windows 7 allows up to eight devices for a maximum of 256 GB of additional memory,[8] with up to 32 GB on a single storage device.[9]

https://en.wikipedia.org/wiki/ReadyBoost


Hope this info helps a bit more ! :)

GaryGB
 
Last edited:
I hate to interrupt again:p!
But...(and I do understand Caleb's hesitance in doing the masks all over again), if you have a geo tiff or bmp of a huge format and convert it to a black and white image (that is the one you need for the masks), I can hardly believe that once this conversion has been done in Gimp, it would lead to memory exhaustion.
If you go from there you will forego the troubles of anewed alignment/ projection.
Gary, your reply to George skips the crux of what George (and me) have been trying to convey, i.e. make your blend and water mask from the already geolocated TIF/BMP!
I appreciate the efforts you put in to learn Caleb a lot of things but maybe that would better be left until he gets some more grip on his tools?
PS and Fyi: I have both Gimp 2.6 and Gimp 2.8 but I use 2.6 mostly because that one is easier to use with DXTBMP (2.6: do some changes in a texture, save in 2.6, reload after edit and done).
PS2: you could indeed move this to PM's as this all this does not help to explain the easiest way to reply to the initial OP's question any longer. You may want once more to refer to links that explain those things, something you are better at than anyone.
 
I hate to interrupt again:p!
But...(and I do understand Caleb's hesitance in doing the masks all over again), if you have a geo tiff or bmp of a huge format and convert it to a black and white image (that is the one you need for the masks), I can hardly believe that once this conversion has been done in Gimp, it would lead to memory exhaustion.
If you go from there you will forego the troubles of anewed alignment/ projection.
Gary, your reply to George skips the crux of what George (and me) have been trying to convey, i.e. make your blend and water mask from the already geolocated TIF/BMP!
I appreciate the efforts you put in to learn Caleb a lot of things but maybe that would better be left until he gets some more grip on his tools?
PS and Fyi: I have both Gimp 2.6 and Gimp 2.8 but I use 2.6 mostly because that one is easier to use with DXTBMP (2.6: do some changes in a texture, save in 2.6, reload after edit and done).
PS2: you could indeed move this to PM's as this all this does not help to explain the easiest way to reply to the initial OP's question any longer. You may want once more to refer to links that explain those things, something you are better at than anyone.
I have decided that I am going to use Photoshop with my color imagery file (re-projected) and I am copying my masks to the imagery file onto a separate layer. They are mis aligned in the image editing software, so I am "transforming" them to line them up with the bottom layer. I am very happy with the way I am doing things right now, I believe it is going to work out well.

I am sure that this issue is nearly resolved (Gary has told me what I need to know to fix it) I just need to do a bit more work to get the masks looking right, and then this issue will be resolved, so to some extent, this issue has been resolved.

Thanks for your help everyone, without you I would have never figured this out.

Thanks.
 
Hi Roby:

Please note that Caleb has repeatedly indicated that his existing Masks do not align properly with his purchased aerial imagery, even when 'projected' correctly.

Also please note that Caleb has AFAIK, purposely not yet converted his Masks to 8-Bit Grayscale with- or without- LZW compression while using the Transform tools in GIMP in order to maintain highest fidelity of his 24-Bit Water body edges and shapes via anti-aliasing (which in 24-Bit color images will maintain greater fidelity to the original water body shapes he created with his Color Selection / Path procedures ...than can otherwise be achieved with a 8-Bit Grayscale image.


So, IIUC, at this time, Caleb:

* does not wish to re-create his Masks ...while transforming them to align with his 24-Bit color aerial imagery

* does not wish to convert his Masks to 8-Bit Grayscale (with- or without- LZW compression) ...while transforming them to align with his 24-Bit color aerial imagery

Please respect and abide by the stated intentions Caleb has for his work-flow. :alert:

GaryGB
 
Please note that Caleb has repeatedly indicated that his existing Masks do not align properly with his purchased aerial imagery, even when 'projected' correctly.
This is partially correct. After being projected properly the masks are not aligned, but they are in the places that I set them to be in the image editing software, so I just need to align them slightly within the image editing software. So they are aligned as I told them to, I just didn't align them properly.
Also please note that Caleb has AFAIK, purposely not yet converted his Masks to 8-Bit Grayscale with- or without- LZW compression while using the Transform tools in GIMP in order to maintain highest fidelity of his 24-Bit Water body edges and shapes via anti-aliasing (which in 24-Bit color images will maintain greater fidelity to the original water body shapes he created with his Color Selection / Path procedures ...than can otherwise be achieved with a 8-Bit Grayscale image.
The only reson I am not exporting them as an 8-bit greyscale image is because I have had some problems doing that and the scenery looks ok when using them as a 24 bit BMP.
What is "ani-aliasing"?
does not wish to re-create his Masks ...while transforming them to align with his 24-Bit color aerial imagery
Correct, it would take too much time to do that.
does not wish to convert his Masks to 8-Bit Grayscale (with- or without- LZW compression) ...while transforming them to align with his 24-Bit color aerial imagery
Correct, for now. Maybe later I will worry about converting them to 8-bit greyscale.
 

https://www.google.com/search?source=hp&ei=pM4WW_vDNczl5gKMvK6YDA&q="ani-aliasing"&oq="ani-aliasing"&gs_l=psy-ab.12..0i13k1l10.4311.4311.0.9868.1.1.0.0.0.0.154.154.0j1.1.0....0...1c.2.64.psy-ab..0.1.153....0.LX_E3Wkt720

Anti-aliasing fidelity of original shape for edges of a raster image area is maintained better in a 24-Bit- than it is in a 8-Bit Grayscale- graphic file format.


After you have finished your "Transform" procedures, you can indeed benefit from converting your final graphic file format to 8-Bit Grayscale TIFF intended only for use with SDK Resample, as it will reduce your source file to ~1/3 of its original size, and small BGL files make for smaller scenery package download sizes. ;)

GaryGB
 
Last edited:
Good luck then, I will no longer interfere with your/his workflow.
Just wanted to point out the easy way:).

Cheers,

Roby
 
https://www.google.com/search?source=hp&ei=pM4WW_vDNczl5gKMvK6YDA&q="ani-aliasing"&oq="ani-aliasing"&gs_l=psy-ab.12..0i13k1l10.4311.4311.0.9868.1.1.0.0.0.0.154.154.0j1.1.0....0...1c.2.64.psy-ab..0.1.153....0.LX_E3Wkt720

Anti-aliasing fidelity of original shape for edges of a raster image area is maintained better in a 24-Bit- than it is in a 8-Bit Grayscale- graphic file format.


After you have finished your "Transform" procedures, you can indeed benefit from converting your final graphic file format to 8-Bit Grayscale TIFF intended only for use with SDK Resample, as it will reduce your source file to ~1/3 of its original size, and small BGL files make for smaller scenery package download sizes. ;)

GaryGB
Ok, once I have it working as a 24 bit image then I will worry about converting it as a 8-bit greyscale. ;)
Thanks
 
Back
Top