stackTom / FSEarthTiles

14 stars 2 forks source link

Black zones after KML use #15

Closed Sgambe33 closed 11 months ago

Sgambe33 commented 1 year ago

I tried selecting a zone with Google Earth like this: image Once the scenery has been compiled the result is a jagged scenery with black spots: image Now, I probably did something wrong while testing, but I can't find a way to exclude those black areas and have a smoother area. Have any idea of what I am missing? Thanks for the help

stackTom commented 1 year ago

I haven't touched the code for KML files, so I will have to look into this. The code is the original code that HB-100 created.

However, any particular reason you are using KML files? The program now supports water masking automatically, without the use of kml files.

Sgambe33 commented 1 year ago

I managed to remove the black squares and have a smooth area. I use KML files because I need a specific area that cannot be contained in a rectangle otherwise it would be sorrounded by white squares

stackTom commented 1 year ago

Oh, I see. I didn't even know FSET had this feature with kml files.

Sgambe33 commented 1 year ago

Yeah, it's pretty neat but I need to do the same area twice to use automatic water masking

stackTom commented 1 year ago

Yes, this is because I made the program use automatic water masking OR the KML file. This is because I thought KML files could only be used to define water masks. I didn't know KML files had this feature of creating custom shaped areas, so I'll have to make it such that both KML files and automatic water masking can be used.

stackTom commented 1 year ago

How did you fix the black areas by the way? I would like to expand on this feature and make it compatible with the automatic water masking.

Sgambe33 commented 1 year ago

In the AreaKML you Need to have 3 polygons: Area, LandPool and Water pool.

It basically applies a watermask everywhere where there is no LandPool.

stackTom commented 11 months ago

By the way, I have added support for custom borders/shaped areas. Will be released soon. It works seamlessly with automatic water masking now and doesn't require any workarounds.

stackTom commented 11 months ago

Custom borders are now officially supported while using automatic water masking. Download the latest version. Instructions are found in the quickstart included in the zip, or here : https://github.com/stackTom/FSEarthTiles/blob/main/FSEarthTiles/Docs/Quick%20start%20-%20README%20first%20(FS2004%2C%20FSX%2C%20P3D).docx