Documentation Guides: Scientific Methods • User Guide
crvscience-canopyforge v1.0.0)High-fidelity native safe-Rust 3D isometric Pacific Northwest old-growth ecosystem recovery idle & active stewardship game
docs/SCIENTIFIC_METHODS.md)docs/USER_GUIDE.md)# GitHub
git clone https://github.com/bpwhite/crvscience-canopyforge.git
# Codeberg
git clone https://codeberg.org/crvscience/crvscience-canopyforge.git
# GitLab
git clone https://gitlab.com/bpcwhite/crvscience-canopyforge.git
# SourceForge
git clone https://git.code.sf.net/p/crv-science-apps/code -b crvscience-canopyforge
canopyforge v1.0.0)Native safe-Rust (#![forbid(unsafe_code)]) 3D isometric and zoomable Pacific Northwest (PNW) old-growth forest restoration "idle + active stewardship" simulation game built on eframe/egui 0.31, wgpu 24.0 WGSL PBR shaders, glam 0.29, rusqlite 0.32 (WAL mode), and clap 4.5.

Season::Summer peak), offshore east-wind (-X) fire percolation, BDA hyporheic fire refugia, 256 ha Spotted Owl habitat suitability index, and logistic wildlife recovery equations.256 ha, 16 × 16 sectors):NE → SW) enhanced by Beaver Dam Analogues (BDAs) and instream Large Woody Debris (LWD) that recharge neighboring soil moisture and act as fire refugia.1×1 sector or 3×3 brush) never harm the ecosystem; mismatched sectors return NoEffectNeutral at $0 cost with live dry-run hover previews.VPD kPa) peaks cleanly inside Season::Summer (day 145), modulated dynamically in the WGSL shader via sun_color_and_vpd.w, seasonal solar elevation/tint, wildfire smoke density, NE → SW creek wave advection, single-gamma sRGB/linear tonemapping (apply_gamma), and dirty-flag cached static terrain/conifer geometry.src/agents.rs):256 ha sub-basin habitat suitability index K ≤ 12.0 reflecting > 1,000 ha regional home ranges), Oregon Coast Coho Salmon (Oncorhynchus kisutch), North American Beaver (Castor canadensis), Roosevelt Elk (Cervus canadensis roosevelti), Marbled Murrelet (Brachyramphus marmoratus), and Northern Flying Squirrel (Glaucomys sabrinus), dynamically spawning and pruning visible 3D wildlife agents as populations change.All keyboard shortcuts are guarded by !ctx.wants_keyboard_input() && !json_modal_open so typing into save-slot names or the JSON modal never pans or pauses the simulation.
| Input | Action | Notes |
|---|---|---|
Left Click |
Inspect or Apply Manual Tool | Toggled via Click: Apply Tool vs Click: Inspect Only |
Hover Sector |
Live dry-run preview tooltip | Shows EffectiveSuccess vs NoEffectNeutral and exact $ cost |
Right Drag or Q / E |
Orbit camera azimuth/pitch | Smoothly orbits watershed diorama (14°–68° pitch) |
Middle Drag or W A S D |
Pan planar target | Pans across forest stands and stream reaches |
Scroll Wheel |
Smooth zoom (8.5–82.0) |
Telephoto isometric outside → wide perspective inside canopy |
1 / 2 / 3 / 4 |
Camera presets | 1 Iso, 2 Mid-Canopy, 3 Creek & BDA, 4 Follow Wildlife |
Space |
Pause / Resume simulation | Halts ecological tick while keeping camera navigation active |
[ / ] |
Step simulation speed | Cycles 1×, 2×, 5×, 10× |
F1 / Esc |
Toggle / Close modals | Closes JSON Schema modal or About dialog |
--seed is a global argument and can be placed either before or after subcommands (for example, simulate --years 12 --seed 42 or --seed 42 simulate --years 12).
| Flag / Subcommand | Default | Description |
|---|---|---|
(default) or gui |
gui |
Launch the hardware-accelerated wgpu 3D desktop workstation |
simulate --years <N> |
8 |
Run headless multi-year stewardship audit and print ERI, grant, and wildlife summary |
--export-json <path> |
— | Export final SimulationSaveState JSON snapshot after simulate |
--seed <u64> (global) |
2026 |
Deterministic ChaCha8Rng watershed generation seed |
--headless-screenshot <path> |
— | Render offscreen 1600×1000 Rgba8Unorm PNG (with 1/2.2 gamma encoding) |
--screenshot-view <1\|2\|3> |
1 |
Headless capture preset (1 = Full Iso, 2 = Mid-Canopy, 3 = Creek & BDA) |
# Run full unit, CLI, and ecological invariant test suite
cargo test --all-targets
# Launch the interactive 3D wgpu + egui desktop game
cargo run --release
# Run headless multi-year benchmark (global --seed works anywhere)
cargo run --release -- simulate --years 12 --seed 42 --export-json audit_run.json
# Render offscreen 1600x1000 WGPU PBR PNG screenshots
cargo run --release -- --headless-screenshot validation/headless_screenshot.png --screenshot-view 1
cargo test --all-targets): 12/12 passing (5 library unit tests + 2 CLI parser tests + 5 ecological invariant integration tests; 0 failed, 0 ignored), verifying zero-harm intervention compatibility, success-scaled annual budgets, summer VPD peak alignment, offshore east-wind (-X) wildfire advection, 256 ha Spotted Owl habitat calibration & excess agent pruning, SQLite WAL & JSON round-trips, finite multi-part 3D geometry, and global --seed CLI parsing.1600×1000 headless renders in validation/, companion preprint Preprints/ (APP-PREPRINT-23, Zenodo Concept DOI 10.5281/zenodo.24442091), and CITATION.cff.Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE for full terms.
CITATION.cff)cff-version: 1.2.0
message: "If you use this software or its validation telemetry, please cite both the software repository and the CRV Science Public Apps Network."
type: software
title: "CanopyForge: 3D Isometric Pacific Northwest Old-Growth Ecosystem Recovery Simulator"
version: "1.0.0"
date-released: "2026-11-22"
doi: "10.5281/zenodo.24442091"
url: "https://crvscience.com/apps"
repository-code: "https://github.com/bpwhite/crvscience-canopyforge"
license: "GPL-3.0-or-later"
authors:
- family-names: "White"
given-names: "Bryan P."
affiliation: "CRV Science Labs"
orcid: "https://orcid.org/0000-0003-4191-3511"
keywords:
- "forest ecology"
- "Pacific Northwest old-growth"
- "wildfire resilience"
- "watershed restoration"
- "Rust"
preferred-citation:
type: article
title: "CanopyForge: 3D Isometric Pacific Northwest Old-Growth Watershed Recovery and Ecological Stewardship Simulator in Rust"
authors:
- family-names: "White"
given-names: "Bryan P."
affiliation: "CRV Science Labs"
orcid: "https://orcid.org/0000-0003-4191-3511"
year: 2026
journal: "CRV Science Apps Preprints"
doi: "10.5281/zenodo.24442091"
url: "https://crvscience.com/apps/preprints/canopyforge-3d-pnw-old-growth-recovery"
notes: "Preprint ID: APP-PREPRINT-23"
references:
- type: article
title: "The CRV Science App Network: Twenty-Two Open-Source Rust Programs for Science, Data, and Simulation"
authors:
- family-names: "White"
given-names: "Bryan P."
affiliation: "CRV Science Labs"
orcid: "https://orcid.org/0000-0003-4191-3511"
year: 2026
journal: "CRV Science Apps Preprints"
doi: "10.5281/zenodo.24222398"
url: "https://crvscience.com/apps/preprints/crv-science-public-apps-network"
notes: "Preprint ID: APP-PREPRINT-01 (CRV Science Open-Source Apps Network Overview)"
Version: 1.0.0
Repository: crvscience-canopyforge
src/)src/agents.rssrc/app.rssrc/camera.rssrc/ecology.rssrc/icon.rssrc/lib.rssrc/main.rssrc/models_3d.rssrc/persistence.rssrc/strategies.rssrc/wgpu_renderer.rstests/)tests/simulation_invariants.rsPreprints/canopyforge-3d-pnw-old-growth-recovery.pdfPreprints/crv-science-public-apps-network.pdfdocs/SCIENTIFIC_METHODS.mddocs/USER_GUIDE.mdcargo test --release
Wiki: CanopyForge_Scientific_Methods
Wiki: CanopyForge_User_Guide
Wiki: Home