Skip to content

web gallery: arigl ships the vehicle models, so terrain_lab's boat and vehicles draw as them - #1357

Merged
transfix merged 1 commit into
masterfrom
feat/web-vehicle-models
Nov 19, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/web-vehicle-models

Conversation

@transfix

Copy link
Copy Markdown
Owner

The deployed gallery's terrain_lab drew the tactical boat as its physics hull and the world vehicles as boxes. arigl's web file system held no vehicle models, and in the browser cvc::ariadne::find_vehicle_model has no install prefix (self_path() is empty under Emscripten).

What changes:

  • examples/web/build-wasm-demo.sh passes CVC_WASM_VEHICLE_MODELS to CMake. The default is the deps prefix's share/cvc-scenes/shared, where the vehicle-humvee and vehicle-tactical-boat packages install; a caller can name another directory.
  • src/arigl/CMakeLists.txt (the gallery build) preloads each top-level .glb there into arigl's file system at /share/cvc-scenes/shared/, logs how many it found, and relinks when one changes.
  • find_vehicle_model also searches the file system's root as a prefix under Emscripten: a constant, no process-wide state. Native search is unchanged.
  • .github/workflows/deploy-pages.yml installs vehicle-tactical-boat beside vehicle-humvee. The libcvc-examples-web recipe declares it as a build dependency.
  • The ARIADNE.md notes are updated.

Effects:

  • In the browser, terrain_lab's boat draws as TacticalBoat.glb and its world vehicles as Humvee.glb.
  • arigl.data grows by about 2.8 MB (TacticalBoat.glb 2.2 MB, Humvee.glb 0.6 MB).
  • Without the packages, nothing is preloaded, and the boat and vehicles draw as hull and boxes as before.

Not verified before merge: PR CI doesn't build the web gallery; only deploy pages on master does. The Emscripten-only line compiles in CI's wasm jobs. The preload uses the same --preload-file form as arigl's other files. I'll check the live terrain_lab after the deploy: that the boat draws as its model and the page stays clean.

…d vehicles draw as them

The web gallery's arigl had no vehicle models in its file system, and in the
browser find_vehicle_model has no install prefix (self_path is empty), so
terrain_lab's tactical boat drew as its hull and world vehicles as boxes.

- build-wasm-demo.sh passes CVC_WASM_VEHICLE_MODELS (default: the deps
  prefix's share/cvc-scenes/shared, where vehicle-humvee and
  vehicle-tactical-boat install); arigl's gallery build preloads each .glb in
  it at /share/cvc-scenes/shared/.
- find_vehicle_model also searches the file system's root under Emscripten.
- deploy-pages installs vehicle-tactical-boat beside vehicle-humvee, and the
  libcvc-examples-web recipe declares it.
- Without the packages the boat and vehicles still draw as hull and boxes.
@transfix
transfix enabled auto-merge (squash) November 18, 2026 23:50
@transfix
transfix merged commit ce0dad0 into master Nov 19, 2026
29 checks passed
@transfix
transfix deleted the feat/web-vehicle-models branch November 19, 2026 01:28
transfix added a commit that referenced this pull request Nov 19, 2026
This reverts commit ce0dad0.

Joe: data should not be bundled with the demos; the gallery pulls it from
cvcpkg at run time instead (Ariadne data packages, with a persistent browser
cache), which follows. Bundling only grew every page's download.
transfix added a commit that referenced this pull request Nov 19, 2026
…Integration), which PRs skip

#1356 put TilerBunny on every PR. That's about 13 s in Release, but a
Debug build runs the bunny's SDF and the tiling many times slower.
package-linux's libcvc-debug took about 450 s on a quiet runner (#1357,
#1358). On a loaded one it ran past its 900 s timeout three times over
(#1296, #1360), and failed that required job for every PR.

So in a Debug build the suite is TilerBunnyIntegration. ci.yml's
STRESS_REGEX takes Integration as a heavy suite, which no PR or Debug job
runs; Release pushes still do. A Release build keeps the name TilerBunny,
so every PR's Release lanes still run it.

The tests' CMakeLists comment and the VolumeRover ports roadmap say the
same.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant