ogxp_draped_poly.py

Creating X-Plane custom sceneries with ogxp_draped_poly.py

ogxp_draped_poly.py creates draped polygon sceneries.

Provides full range of image processing options provided by ogxp_tiler_def.py module.

1) Set working directory

1

2) Set scenery name

2

3) Pick orthoimage

3

4) ‘Extract overlay image centered on point?’. Default=‘Yes’.

4

Selecting ‘Yes’ will open a dialog to pick a KML, shapefile, comma-delimited text file comprising a single point.

5

Next select the radius in kilometers from the point that your draped polygon scenery should cover. ogxp_draped_poly.py will automatically extract from the source orthoimage the area defined by the point and radius for creating the draped polygon scenery.

6

Selecting ‘No’ to ‘Extract overlay image centered on point?’ will create a draped polygon scenery covering the entire selected orthoimage.

The remaining prompts and dialogs define the various image processing options provided by ogxp_draped_poly.py.

5) Prompt for ‘Set border tile alpha fade transparency?’, default=’No’

7

Selecting ‘Yes’ will create an alpha transparency fade along the edge tiles of each orthoimage so as to not have a hard edge between orthoimagery and surrounding DSF textures. ‘No’ will leave a hard edge. Non-border tiles are not turned into alpha channel .dds so as to reduce file size.

Example:

8

Note:

Custom border fade operations can be carried out via tile lists. See Selective orthoimage tile processing.

6) Prompt for ‘Transparent hard?’, default=‘No’

9
Selecting ‘Yes’ will open dialog to select a polygon shapefile. Areas under the polygons will be 100% transparent with no soft fade along the edge.

7) Prompt for ‘Transparent blur?’, default=‘No’

10
Selecting ‘Yes’ will open a dialog to select a polygon shapefile. Areas under the polygons will have transparency fade along the polygon edge. Fade direction is 100% alpha from inside the polygon to 0% or no alpha towards outside of polygon.

Example:

11

If ‘yes’ to ‘Transparent blur?’, prompt for ‘Set blur fade width in pixels’, default=’100’

blur_w

Sets the blur width in pixels along polygon boundary.

8) Prompt for ‘Make night LIT textures?’, default=’No’

12

Selecting ‘Yes’ will produce LIT textures for each image tile and add the appropriate LIT statement in the custom scenery .ter terrain files.

9) Dialog for ‘Set Brightness/Contrast’, ‘B%,C%’, initial value = ‘0%,0%’

13

Enter percent values as in the initial value string to adjust image tile brightness and/or contrast. Valid range is -100 to 100.

Example: ‘-10%,15%’

10) Dialog for ‘Tile size’, ‘4096, 2048 or 1024’, initial value = ‘2048’

4096

Enter either 4096, 2048 or 1024 to set the image tile size.

11) Prompt for ’Resize input image to even multiple of 4096, 2048 or 1024?’, default=‘No’

4096tilesize

If ‘Yes’ is selected the image will be resampled to an even row and column multiple of the selected tile size.

As this is a resampling process there will be some degradation from the source image. For islands where you have sufficient imagery to cover the island but the tiling process will crop the island, it is usually recommended to just pad the image with sufficient pixels using ogxp_pad_imagery.py.

12) If ‘inland_water’ folder in project directory, prompt for ‘Burn transparency for inland water?’, default=’no’

burn_w

Selecting yes will create an alpha transparency over inland water polygons. The effect is to mix the orthoimage with the default X-Plane water texture.

13) If ‘yes’ to ‘Burn transparency for inland water?’, prompt for ‘Percent transparency’, default=’50’

perctrans

When ogxp_draped_poly.py completes you will find your custom draped polygon scenery in the X-Plane 10 Custom Scenery directory:

Custom Scenery Directory

Example view of draped polygon scenery (Saba island) in the local map window in X-Plane 10. In this case, a point file was selected with a radius of 1.5km with the border tile alpha fade option.

Saba Island
Draped Polygon Scenery (Saba Island)