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
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`), `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), `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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Traditional photo scenery often requires downloading and building large areas be
- **Sharp, crisp textures** — up to 8192 px, keeping all the detail of the imagery, sharpened a little and given a touch of contrast, as aerial photos are often hazy.
- **Settings that adapt to your setup** — test your connection before the first flight to get a recommended preset, and after a sufficiently long flight, get recommendations based on how the scenery performed on your PC and internet connection. You decide whether to apply them.
- **Seasonal colours** — optionally give summer imagery a more autumnal or winter appearance, based on the simulated date and location, with grass and fields optionally coloured by NASA's satellite record of how green each place really was.
- **Clean photos up close** — X-Plane's procedural grass and dirt speckles are kept off the aerial photos by default, or faded to the strength you like, without changing your scenery packages.
- **Clean photos up close** — X-Plane's procedural grass and dirt speckles are kept faint on the aerial photos by default, or set to the strength you like, without changing your scenery packages.
- **Towns lit at night** — optionally give the photo scenery street lamps and the light of the houses along X-Plane's roads, so towns glow after dark as on X-Plane's own scenery. You can also skip the detailed photos at night to save downloads, keeping the lights.
- **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.
Expand Down Expand Up @@ -61,7 +61,7 @@ The installer also installs the .NET 10 desktop runtime if it is missing.

**Important:** OrthoStreamXP streams imagery onto scenery packages; it does not create terrain meshes itself. There are two ways to get them:

1. **Download a region from within OrthoStreamXP:** a whole region's mesh (Europe, North America, ...), during setup or later from the **Packages** page.
1. **Download a region from within OrthoStreamXP:** a whole region's mesh (Europe, North America, ...), during setup or later from the **Packages** page. The few tiles AutoOrtho's collection lacks (around Portland, Oregon, and in Tonga) are added to their region from [OrthoStreamXP's own collection](https://github.com/flysimdev/orthostreamxp-scenery).
2. **Use your own packages:** compatible packages can come from tools such as Ortho4XP, OrthoStudio XP, AutoOrtho, and XPME. You can select an existing package folder during setup.

## Installation
Expand Down
Binary file modified docs/OrthoStreamXP-UserGuide.pdf
Binary file not shown.
22 changes: 20 additions & 2 deletions docs/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ The meshes are downloaded from a public collection on [GitHub](https://github.co

The page shows the exact sizes of the current release.

## Tiles AutoOrtho lacks

AutoOrtho's collection is missing a few tiles, for example 9 in Oregon, around Portland and along the coast (North America) and one in Tonga
(Australia and the Pacific). OrthoStreamXP keeps these tiles in [its own collection](https://github.com/flysimdev/orthostreamxp-scenery).
It adds them to the region they belong to, so there is no extra package:

- **Installing a region** adds its missing tiles as part of the install.
- **A region you installed before** gets them when OrthoStreamXP starts, for example the first start after an update.
Home shows the progress in the notice **Adding the tiles AutoOrtho lacks**, then **Tiles AutoOrtho lacks were added**.
You can stream meanwhile; X-Plane then sees the new tiles from OrthoStreamXP's next start.
- **Until they are added**, the region shows **Update available** with the number of tiles, and **Update** downloads
only those (about 225 MB for North America, about 2 MB for Australia and the Pacific), even while OrthoStreamXP runs.

The region's details on the **Packages** page list these tiles, for example *+ 9 tiles AutoOrtho lacks, from OrthoStreamXP*.

These tiles never replace a file of AutoOrtho's. If they cannot be downloaded, the region is installed without them, and
they are added at a later start.

## Where they go

Each region is installed as a package of its own in the **scenery packages folder** chosen in [Settings › Folders](settings.md#folders). If you download one during the setup and have not chosen a folder yet, it goes to `OrthoStreamXP\Base Packages` in your user folder, and that folder becomes your scenery packages folder.
Expand Down Expand Up @@ -56,10 +74,10 @@ A square of a downloaded mesh no longer shows X-Plane's own roads, forests and b
- **Install** starts the download. While one region downloads, the others wait: one install runs at a time. The progress and speed show under the region.
- **Stop** stops it. What was downloaded is kept: **Resume** continues from there, even after OrthoStreamXP was closed.
- A region is used from OrthoStreamXP's next start, and never half-installed: it appears in your packages folder only when all of it is there.
- When a newer release comes out, the region says **Update available**. Updating downloads it again in full.
- When a newer release comes out, the region says **Update available**. Updating downloads it again in full. (An update that only adds the [tiles AutoOrtho lacks](#tiles-autoortho-lacks) downloads just those.)
- **Delete** removes the region and its roads, forests and buildings. Another region's stay.
- To fly without a region for a while, without deleting it, switch it off under **Scenery packages** on the Home page (see [Flying › Leaving a package out](flying.md#leaving-a-package-out)).

You can install a new region while OrthoStreamXP runs. Updating or deleting a region needs OrthoStreamXP stopped, because X-Plane has its files open while it runs.
You can install a new region while OrthoStreamXP runs. Updating or deleting a region needs OrthoStreamXP stopped, because X-Plane has its files open while it runs. Adding the tiles AutoOrtho lacks is the exception: it only adds files, so it works while OrthoStreamXP runs.

Next: [X-Plane Custom Scenery](custom-scenery.md)
6 changes: 3 additions & 3 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ Up close, X-Plane can sprinkle its own procedural grass, shrubs and dirt over th

The **Ground detail** slider sets how strong this effect is:

- **Off** (0 %, the default): the photos are shown as they are.
- **10–90 %**: a lighter version of X-Plane's effect, for some extra texture when you are low.
- **30 %** (the lowest, and the default): a faint version of X-Plane's effect; the photos stay clean and sharp.
- **40–90 %**: a stronger version of X-Plane's effect, for more texture when you are low.
- **100 %**: X-Plane's full effect, as the packages define it.

Your scenery packages are not changed: OrthoStreamXP adjusts the terrain files as X-Plane reads them. The in-between strengths are made from X-Plane's own decal files, so they need the **X-Plane folder** to be set. Like every setting, a change applies from the next start.
Your scenery packages are not changed: OrthoStreamXP adjusts the terrain files as X-Plane reads them. An older settings file with a lower value (such as the former default, 0) is read as 30 %. The strengths below 100 % are made from X-Plane's own decal files, so they need the **X-Plane folder** to be set. Like every setting, a change applies from the next start.

## Folders

Expand Down
2 changes: 1 addition & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ When something goes wrong, Home shows a notice that says what happened, usually
| **Downloads are failing** | Check your internet connection. OrthoStreamXP keeps trying; **Open log** shows the details. |
| **Blurry ground for a while** | A new area takes a few minutes the first time. If it happens often, try a lower preset or apply the tuning suggestions after your flight (see [Flying](flying.md#tuning-suggestions)). |
| **Photos look too bright next to X-Plane's own scenery** | Lower **Exposure** in [Settings › Colours](settings.md#exposure). |
| **Noisy, speckled ground up close** | X-Plane's grass and dirt detail is drawn over the photos. Set **Ground detail** to **Off** (or lower it) in [Settings › Quality](settings.md#ground-detail). |
| **Noisy, speckled ground up close** | X-Plane's grass and dirt detail is drawn over the photos. Lower **Ground detail** (30 % is the lowest) in [Settings › Quality](settings.md#ground-detail). |

## The Log page

Expand Down
12 changes: 12 additions & 0 deletions release-notes/v1.5.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## What's new

- **Photo scenery where AutoOrtho's mesh has gaps.** The regions on the **Packages** page come from AutoOrtho's collection, and it is missing a few tiles: 9 in Oregon, around Portland and along the coast, and one in Tonga. Until now, those places had no photo scenery. OrthoStreamXP now keeps these tiles in its own collection and adds them to **North America** and **Australia and the Pacific**. There is no extra package to install.
- **Ground detail starts at 30 %.** The **Ground detail** slider in **Settings › Quality** now goes from 30 % to 100 %, and 30 % is the default. At 30 %, X-Plane's grass and dirt pattern is faint, and the photos stay clean and sharp. **Off** is no longer a choice.

## Good to know

- **Already have North America or Australia and the Pacific?** The missing tiles are added by themselves when you open OrthoStreamXP after the update. A notice on **Home**, **Adding the tiles AutoOrtho lacks**, shows the progress, and **Tiles AutoOrtho lacks were added** tells you when it is done. North America downloads about 225 MB, and Australia and the Pacific about 2 MB (a little less without roads, forests and buildings).
- You can fly meanwhile. If OrthoStreamXP is streaming while the tiles are added, X-Plane sees them from the next start of OrthoStreamXP.
- If the download fails, nothing else changes, and the tiles are added at a later start. Until then, the region on the **Packages** page shows **Update available** with the number of tiles. **Update** downloads only those tiles, and it works even while OrthoStreamXP runs.
- Regions you install from now on get these tiles as part of the install. They never replace a file of AutoOrtho's, and your own scenery packages are not changed.
- **If your Ground detail was Off** (the former default), it is now 30 %. A value of 30 % or more stays as it was. Like every setting, it can be changed only while OrthoStreamXP is stopped, and applies from the next start.
4 changes: 3 additions & 1 deletion src/OrthoStreamXP/Configuration/MountSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ public static MountSettings FromValues(SettingValues values, bool console = true
throw new SettingsException($"exposure must be between {OrthoStreamXP.Textures.Exposure.Min} and {OrthoStreamXP.Textures.Exposure.Full}");
string readLogValue = values.String("read-log") ?? "off";
bool readLog = ParseOnOff(readLogValue) ?? throw new SettingsException($"read-log must be on or off, not '{readLogValue}'");
int groundDetail = values.Int("ground-detail", 0);
int groundDetail = values.Int("ground-detail", Scenery.TerrainDecals.Min);
if (groundDetail is < 0 or > Scenery.TerrainDecals.Full) throw new SettingsException("ground-detail must be between 0 and 100");
// Older settings files may hold a value below the minimum (0 used to be the default); it is raised to it.
groundDetail = Math.Max(groundDetail, Scenery.TerrainDecals.Min);
string nightValue = values.String("night-lights") ?? "off";
bool nightLights = ParseOnOff(nightValue) ?? throw new SettingsException($"night-lights must be on or off, not '{nightValue}'");
string skipValue = values.String("skip-photos-at-night") ?? "off";
Expand Down
2 changes: 1 addition & 1 deletion src/OrthoStreamXP/Configuration/SettingsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal static class SettingsOptions
.Add("filesystem-threads", $"Threads answering X-Plane's file requests, 2-512. A request waiting for a texture build keeps its thread, so this must comfortably exceed the textures X-Plane waits for at once (default: {MountSettings.DefaultFileSystemThreads})")
.Add("texture-quality", "No longer used: the texture size follows level-change (accepted so older settings files still load)")
.Add("background-textures", "Build missing DDS files in a bounded background queue when a local DDS fallback exists", arity: 0)
.Add("ground-detail", "How strong X-Plane's detail decals are over the photo scenery, 0-100 percent. The terrain definitions name a decal library (DECAL_LIB) that sprinkles procedural grass, shrubs and dirt over the ground up close; it adds texture to X-Plane's own blurry land-class textures, but over sharp aerial photos it looks like noise. 0 leaves the decals out, 100 keeps them as the packages define, and anything between fades them (read from the X-Plane folder, so it needs xplane). Applied to the photo tiles' terrain definitions as X-Plane reads them; the packages' files are not changed. Takes effect at the next start (default: 0)")
.Add("ground-detail", "How strong X-Plane's detail decals are over the photo scenery, 30-100 percent (a lower value is raised to 30). The terrain definitions name a decal library (DECAL_LIB) that sprinkles procedural grass, shrubs and dirt over the ground up close; it adds texture to X-Plane's own blurry land-class textures, but over sharp aerial photos it looks like noise. 100 keeps them as the packages define, and anything lower fades them (read from the X-Plane folder, so it needs xplane). Applied to the photo tiles' terrain definitions as X-Plane reads them; the packages' files are not changed. Takes effect at the next start (default: 30)")
.Add("night-lights", "on or off: light the towns on the photo scenery at night. X-Plane's own scenery glows where it is a town; photo tiles are dark but for X-Plane's roads and buildings. With this on, each photo tile gets a night texture of street lamps, their glow and lit windows along X-Plane's roads (read from the overlay packages), which X-Plane fades in at dusk. Each is painted the first time X-Plane loads it and kept in the cache. The packages' files are not changed. Takes effect at the next start (default: off)")
.Add("skip-photos-at-night", "on or off: at night in X-Plane (the sun lower than skip-photos-sun-below) download no detailed photos: the ground under the night lights is drawn from the low-zoom base, blurry, and what is already in the cache is shown as it is. In twilight, and before X-Plane sends where the sun is, the photos stream as usual. Saves downloads and processor time on night flights; needs mip-streaming. Takes effect at the next start (default: off)")
.Add("skip-photos-sun-below", "Degrees, 0-18: how far below the horizon the sun in X-Plane must be before skip-photos-at-night skips the photos. 6 is the end of civil twilight, when the sky turns dark; 12 the end of nautical twilight, when the horizon fades; 18 full night. Lower skips more of the twilight; higher keeps the photos while the sky still lights the ground, and brings them back sooner at dawn. Takes effect at the next start (default: 9)")
Expand Down
Loading
Loading