Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Source layout under `src/OrthoStreamXP/`. Sub-folders are for navigation only: *
- `Configuration/` — `SettingsOptions`/`SettingsSchema` (the known settings and the ini reader), `SettingValues` (typed access), `SettingsException`; `MountSettings` turns the values into a mount's settings.
- `Mounting/` — `MountSession`: each scenery package gets its own `PackageMount` (overlay + build scheduler + load-ahead), sharing one downloader/encoder and the aircraft-position listener. `MountStatus` is the live snapshot for the UI.
- `Infrastructure/` — `Log`, `AtomicFile`.
- `Gui/` — `App`, `MainWindow`, `GuiHost`, `MountController` (drives a `MountSession` from the window) at the root; `Views/` (XAML + code-behind: Home, Setup, Settings, Cache, Log, About), `ViewModels/`, `Settings/` and `Home/` (the types those pages show), `Mvvm/` (`ObservableObject`, `RelayCommand`, converters), `Map/` (cities, flight charts).
- `Gui/` — `App`, `MainWindow`, `GuiHost`, `MountController` (drives a `MountSession` from the window) at the root; `Views/` (XAML + code-behind: Home, Setup, Settings, Cache, Airports, Log, About), `ViewModels/`, `Settings/`, `Home/` and `Airports/` (the types those pages show), `Mvvm/` (`ObservableObject`, `RelayCommand`, converters), `Map/` (cities, flight charts).
- `Scenery/` — the runtime streaming pipeline:
- `FileSystem/`: `SceneryFileSystem` (WinFsp `FileSystemBase`) → `SceneryOverlay` (resolves a path to a backing file, a streamed photo texture, or an in-memory terrain definition); `SceneryPacks`, `TerrainDefinitions`.
- `Streaming/`: `TextureStreamer` and its read/stand-in/build types, `TextureScheduler`, `TextureCatalog`, `ReadLog`.
Expand All @@ -44,7 +44,7 @@ Source layout under `src/OrthoStreamXP/`. Sub-folders are for navigation only: *
- `Aircraft/`: `AircraftPositionListener` (X-Plane UDP), `ViewTracker`, `SceneryLoads`.
- `Colour/`: `SeasonClock` (seasonal tint by simulated date/location), `ObservedSeasons` (loads the satellite record per ~500 km tile for `season = satellite`).
- `Textures/` — imagery to DDS: `TextureBuilder` (fetch → stitch → resize → sharpen → mipmaps → BC1 encode → atomic write; SkiaSharp is decode-only), `TextureQuality`, `Images`, `Sharpening` (unsharp mask on brightness, not a setting: 100 % for the areas' textures below ZL18, 60 % for the airports' ZL18 and finer) at the root; `Tiles/` (`TileSource`/`TileStore`: download + cache; the low-zoom base is zoom 13 and coarser because Bing's zoom 12 is other, lighter imagery; a tile every provider definitively lacks throws `TileNotAvailableException`, and `TextureBuilder` then makes it from a parent at hand, never coarser than 13), `Dds/` (`Dds` layout/encode/decode; mip levels by `MipFilter` = 2x2 averages in linear light; BC1 by `IspcBc1` = Intel's ISPC `ispc_texcomp.dll` from `native/ispc_texcomp/` (checked in, rebuilt by its `build.ps1`), loaded from the exe's folder, with one-colour blocks and four-colour mode fixed after it and every other block's colours refined by least squares (`Bc1Refinement`); `Dds.EncodeRangeFit` is the fallback without the DLL), `Scheduling/` (priority gates), `Seasons/` (`SeasonModel` calendar, `ObservedSeason` + `GreennessYear`: grass and fields by a place's yearly NDVI against its greenest month, trees by the calendar), `Vegetation/` (`VegetationSource`: NASA GIBS monthly VIIRS NDVI, downloaded and kept under the low-zoom base; `VegetationTile`, `NdviPalette`), `Colour/` (`Exposure`, `Contrast` (fixed 60 % S-curve, always on, not a setting), `ColourTable` = the shared BC1 lookup-table recolouring, `PhotoColours` = season → contrast → exposure as one table (rounded to 565 once) applied as X-Plane reads, also used by the Settings preview).
- `Setup/` — `Settings/` (`SettingsDocument`, ini under `%LOCALAPPDATA%\OrthoStreamXP`, `QualityPreset`, `ConnectionTest`), `Cache/` (inventory, areas, eviction), `Packages/` (downloads AutoOrtho's mesh regions from GitHub into the packages folder as `OrthoStream_*` packages: `MeshCatalog`, `AssetDownload`, `ZipUnpacker`, `OverlayPackage`, `RegionInstaller`; the tiles AutoOrtho lacks come from `flysimdev/orthostreamxp-scenery`'s latest-release `supplements.json` (`SupplementCatalog`, `RegionSupplement`) and are merged into their region without replacing any file, at install or, for regions installed before, by `Gui/Packages/SupplementUpdater` at each window start), `Installation/` (`AppPaths`, `AppUpdates`, `LegacyNames` migrating older settings/cache locations, `SystemCheck`, Velopack hooks).
- `Setup/` — `Settings/` (`SettingsDocument`, ini under `%LOCALAPPDATA%\OrthoStreamXP`, `QualityPreset`, `ConnectionTest`), `Cache/` (inventory, areas, eviction), `Packages/` (downloads AutoOrtho's mesh regions from GitHub into the packages folder as `OrthoStream_*` packages: `MeshCatalog`, `AssetDownload`, `ZipUnpacker`, `OverlayPackage`, `RegionInstaller`; the tiles AutoOrtho lacks come from `flysimdev/orthostreamxp-scenery`'s latest-release `supplements.json` (`SupplementCatalog`, `RegionSupplement`) and are merged into their region without replacing any file, at install or, for regions installed before, by `Gui/Packages/SupplementUpdater` at each window start), `Airports/` (the Airports page's flattening, one airport at a time: `AptDatReader` lists the airports of an apt.dat, `AirportSources` + `AirportCatalog` pick each ident from the highest enabled package in scenery_packs.ini (`*GLOBAL_AIRPORTS*` = Global Scenery\Global Airports), `FlattenedAirports` keeps a copy of each flattened airport with `1302 flatten 1` in its own `Custom Scenery\OrthoStreamXP Flattened Airports` package listed above the airport's source; the source files are never changed, Undo removes the copy and the last one removes the package), `Installation/` (`AppPaths`, `AppUpdates`, `LegacyNames` migrating older settings/cache locations, `SystemCheck`, Velopack hooks).
- `Tuning/` — flight reports, facts and the preset/setting recommendations.
- Logs go to `%LOCALAPPDATA%\OrthoStreamXP\logs`.

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Traditional photo scenery often requires downloading and building large areas be
- **Exposure and a live preview** — tone down photos that look too bright next to X-Plane's own scenery, and see any colour change on a photo from your cache before you fly.
- **See what happened during your flight** — review download performance, scenery loading, and your flight route.
- **Your scenery list, without Notepad** — switch X-Plane's scenery packages on or off and drag them into order on the X-Plane Custom Scenery page, and leave any of your photo scenery packages out of a flight with one switch on the Home page.
- **Level airports** — an airport that sits on a bump or in a hollow of the photo scenery's ground can be flattened on the Airports page, one at a time, without changing the airport's own files. Undo puts it back.

### Designed for everyday flying

Expand Down
2 changes: 1 addition & 1 deletion build-user-guide.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (-not $browser) { throw 'Google Chrome or Microsoft Edge is needed to print t

# The order of the guide's contents (docs\README.md). The pages keep their names so that pandoc's --file-scope
# turns the links between them (settings.md#quality) into links inside the PDF.
$pages = 'README', 'installation', 'first-setup', 'flying', 'settings', 'cache', 'packages', 'custom-scenery', 'troubleshooting', 'faq'
$pages = 'README', 'installation', 'first-setup', 'flying', 'settings', 'cache', 'packages', 'custom-scenery', 'airports', 'troubleshooting', 'faq'
$work = 'artifacts\user-guide'
if (Test-Path $work) { Remove-Item $work -Recurse -Force }
New-Item -ItemType Directory $work | Out-Null
Expand Down
Binary file modified docs/OrthoStreamXP-UserGuide.pdf
Binary file not shown.
5 changes: 3 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ OrthoStreamXP adds real-world aerial photos to your X-Plane 12 scenery while you
5. [Cache](cache.md): how much disk space the scenery uses and how to free it.
6. [Packages](packages.md): downloading the ground mesh of a whole region, the quickest way to get scenery packages.
7. [X-Plane Custom Scenery](custom-scenery.md): switching X-Plane's scenery packages on or off and changing their order.
8. [Troubleshooting](troubleshooting.md): common problems, the log, updates, uninstalling and reporting a bug.
9. [Questions and answers](faq.md): what OrthoStreamXP does and does not do, choosing the packages folder, switching from AutoOrtho.
8. [Airports](airports.md): levelling the ground under an airport that sits on a bump or in a hollow, and undoing it.
9. [Troubleshooting](troubleshooting.md): common problems, the log, updates, uninstalling and reporting a bug.
10. [Questions and answers](faq.md): what OrthoStreamXP does and does not do, choosing the packages folder, switching from AutoOrtho.

## The short version

Expand Down
42 changes: 42 additions & 0 deletions docs/airports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Airports

[User guide](README.md) › Airports

Photo scenery packages bring their own, more detailed ground. Some airports then sit on a bump or in a hollow of it: the runway slopes, the terminal stands on a hill, parked aircraft lean. The **Airports** page in the sidebar fixes that one airport at a time: **Flatten** asks X-Plane to level the ground under the airport.

## Finding an airport

- Type in the search box: an **ICAO code** (or its start), or part of the airport's **name or city**. An exact code comes first, then codes that start with it, then names and cities. The page shows the first 50 matches; type more to narrow them.
- With the search box empty, the page lists **the airports you flattened**.
- Under each airport's name is its place and where X-Plane takes the airport from, for example *from Global Airports* (X-Plane's own airports) or the name of a custom scenery package.
- The page needs the **X-Plane folder** to be set in [Settings › Folders](settings.md#folders); until then it says *Choose your X-Plane folder first*. It reads the airports of the scenery packages switched on in X-Plane's scenery list each time you open it. **Refresh** reads them again, for example after you installed an airport while the page was open.

## Flattening and undoing

- **Flatten** levels the ground under the airport. The row then says **Flattened by OrthoStreamXP**.
- **Undo** takes the flattening out: X-Plane uses the airport as its scenery has it again.
- One airport is changed at a time. While it is being changed, the row says *Working…*.
- **Already flattened by its own scenery** means the airport's scenery levels the ground already: there is nothing to do, and the row has no button.

> **Custom airports:** use **Flatten** for X-Plane's own airports, not for custom airport scenery. A custom airport loses its buildings and other scenery when the flattened copy is above it. The page reminds you of this at the top: in X-Plane's scenery list, keep **OrthoStreamXP Flattened Airports** below your custom airports (see [X-Plane Custom Scenery](custom-scenery.md)).

## When changes apply

- X-Plane reads the airports when it starts, so a change shows from **X-Plane's next start**.
- You can flatten or undo while OrthoStreamXP is stopped or while it runs, but not while it is starting or stopping. OrthoStreamXP does not need to be restarted.

## How it works

OrthoStreamXP never changes an airport's own files. It puts a copy of the airport, marked to be flattened, in a scenery package of its own: **OrthoStreamXP Flattened Airports** in X-Plane's `Custom Scenery` folder. It lists that package in X-Plane's scenery list just above the scenery the airport comes from, because X-Plane uses an airport from the highest package in the list that has it. **Open the folder** opens the package in Explorer.

**Undo** takes the airport's copy out of the package. Undoing the last one removes the package and its line in the scenery list.

## When a row shows a warning

| The row says | What to do |
|---|---|
| **Flattened, but its scenery changed since** | The airport's layout changed after you flattened it, for example after an X-Plane update, and the copy still has the old one. Click **Flatten again** to take the new layout. |
| **Flattened, but X-Plane uses** *(package)***'s copy** | **OrthoStreamXP Flattened Airports** is below that package in the scenery list, or switched off. Click **Flatten again** to switch it on and move it just above. |
| *Its scenery package is no longer in the scenery list* | The package the airport came from is gone or switched off, and only the flattened copy is left. Click **Undo** if you no longer want it. |

Next: [Troubleshooting](troubleshooting.md)
4 changes: 3 additions & 1 deletion docs/custom-scenery.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Leave the photo scenery near the end, below airports and overlays. With **Keep t

When you click **Start**, OrthoStreamXP adds its packages to the end of the list. When you click **Stop**, it takes out again the ones it added, because their folders are gone from `Custom Scenery` until the next start. A package that was already in the list before the start (for example from an earlier version of OrthoStreamXP) stays where it is.

**OrthoStreamXP Flattened Airports** is different: the [Airports](airports.md) page adds it when you flatten an airport, and it stays in the list whether OrthoStreamXP runs or not, until you undo the last flattened airport. Keep it below your custom airports.

To leave one of your own scenery packages out of OrthoStreamXP's photo scenery, use its switch under **Scenery packages** on the Home page instead (see [Flying › Leaving a package out](flying.md#leaving-a-package-out)).

Next: [Troubleshooting](troubleshooting.md)
Next: [Airports](airports.md)
4 changes: 4 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ It does not change it. The water, the coastlines and the sea and inland water co

Yes. Install SimHeaven the way its instructions say, and OrthoStreamXP as this guide describes. OrthoStreamXP puts its packages at the end of `scenery_packs.ini`, below SimHeaven, airports and other overlays, so they stay on top of the photos.

### An airport sits on a hill or in a dip. Can I fix it?

Yes, for X-Plane's own airports. The ground comes from your scenery packages, and it is more detailed than X-Plane's, so a few airports no longer sit level on it. Find the airport on the [Airports](airports.md) page and click **Flatten**: X-Plane levels the ground under it from its next start. **Undo** puts it back. Custom airport scenery should not be flattened this way: it loses its buildings.

### Is there a Mac or Linux version?

No, OrthoStreamXP runs on Windows 10 and 11 only. There are no plans for a Mac version at the moment; that may change if enough people ask for it.
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ nav:
- cache.md
- packages.md
- custom-scenery.md
- airports.md
- troubleshooting.md
- Questions and answers: faq.md
- User guide (PDF): OrthoStreamXP-UserGuide.pdf
Expand Down
19 changes: 19 additions & 0 deletions release-notes/v1.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## What's new

- **Airports page: flatten an airport.** Photo scenery comes with its own, more detailed ground, and some airports end up on a bump or in a hollow of it: a sloping runway, a terminal on a hill, aircraft parked in a dip. A new **Airports** page in the sidebar fixes that one airport at a time. Search by ICAO code, name or city, and click **Flatten**: X-Plane then levels the ground under that airport. **Undo** puts it back as it was.
- Without a search, the page lists the airports you have flattened. Each one says where its layout comes from, for example *from Global Airports*, and whether the flattening is in effect.

## How flattening works

OrthoStreamXP does not change any airport's own files. It puts a copy of the airport, marked to be flattened, in a scenery package of its own, **OrthoStreamXP Flattened Airports** in X-Plane's `Custom Scenery` folder, and lists it just above the airport's own scenery so X-Plane uses the copy. **Undo** takes the copy out again, and undoing the last airport removes the package. **Open the folder** shows the package in Explorer.

## Good to know

- **X-Plane reads the airports when it starts**, so a flattened airport shows level from X-Plane's next start.
- You can flatten an airport while OrthoStreamXP is stopped or while it runs, but not while it is starting or stopping. You do not need to restart OrthoStreamXP.
- **Use it for X-Plane's own airports, not for custom airport scenery.** A custom airport loses its buildings and other scenery when the flattened copy is above it. In X-Plane's scenery list, keep **OrthoStreamXP Flattened Airports** below your custom airports. You can check its place on the **X-Plane Custom Scenery** page.
- **Already flattened by its own scenery** means the airport is level already: there is nothing to do.
- If an airport's layout changes later, for example after an X-Plane update, the page says **Flattened, but its scenery changed since**. Click **Flatten again** to take the new layout.
- If the page says X-Plane uses another package's copy, the flattened package is lower in the scenery list or switched off. **Flatten again** puts it back in place.
- Nothing is downloaded, and none of your settings change with the update.
- **Reporting a problem?** The GitHub issue page now has forms: **Bug report**, **Scenery looks wrong** and **Feature request**. They ask for what helps most, such as the log and the exact place.
Loading
Loading