Repository navigation
Ariadne: boats as world vehicles, and spawns by medium so cars stay out of lakes (L3b) - #1309
Merged
Merged
Conversation
…O12) cvc::physics::dyn_boat_plant (OCEAN-AND-WEATHER-ROADMAP.md D4) puts a sim_world's agents on boats (world::add_boat) in a borrowed world that floats them, beside dyn_bike_plant and dyn_4w_plant. Each boat goes in over its agent's start at the draft its hull_mesh gives (float_height); a start with no water under it, too shallow, or a hull that cannot float is refused. Every world step a driver turns nav's bicycle angle and acceleration into set_boat_controls. The throttle takes the acceleration as dyn_driver.h does, over the propeller's thrust at the speed through the water, its trim kept across sign changes since the water holds the boat back either way. The rudder holds the bicycle's yaw rate u tan(delta) / L: a feed-forward share of full rudder and a PI term on the yaw rate's error as a curvature. state()'s steer is the angle the driver holds, not the rudder, which fed the driver's corrections into nav's steering-rate limit. The books are the hull's mechanical energy every step: drive and brake (the thrust's T u_a through the water), rudder, damping, water (the field load and the water's own motion on the propeller and rudder), gravity and the integrator's residual. Presets launch (physics_boat_test's boat; 3.19 m/s, 15.4 m) and jonboat (a 350 kg flat box with a steering outboard; 4.0 m/s, 4.1 m), measured. - plant_host: dynamicboat / dynamicboat:<presets> on set_water's field and the geometry; no water is a fallback to the bicycle. - world::water_at; water_sample moves to field.h. - cvc::nav::plant_medium (land, water) and vehicle_plant::medium(), for spawning boats on water later. physics_dyn_boat_plant_test: the presets' envelopes; 2.5 m/s and 0.08 rad/s held exactly on calm water and within 1 % on a 0.3 m swell; the books' residual 6e-8 to 3.5e-5 of the flow; nav drives a launch and a jonboat 120 m to their goals and turns them round to goals behind them; plant_host; a hosted world bit for bit; a pier contact; the refusals; and the pinned hash 96abfc30fcae4fd4 (Windows MSVC; CI to confirm Linux and macOS). No existing hash moved. pycvc does not bind the plant (it binds no boats yet).
…ut of lakes (L3b)
A world document's vehicles: archetypes: can offer a boat, plant: dynamicboat
(or dynamicboat:launch / dynamicboat:jonboat), and every spawn now follows its
archetype's medium: cars never start in water deeper than a ford, boats only in
water deep and open enough for them.
- nav::world_grid gains a water layer: water_depth (the level less the ground at
each sample, set_water) and solid (what blocks a sample other than a water
surface). medium_grid(g, medium, depth) is a car's grid with water deeper than
a ford blocked, or a boat's with only deep enough water free. SceneWorld::grid
sets the water from a water node over the node's ground, or a generated
world's bodies of water.
- world: spawns: takes ford_depth (0.3 m), keel_clearance (0.3 m) and
shore_clearance (0 m). WorldSpawns::set_needs takes each archetype's medium
(from its plant's vehicle_plant::medium()), a boat's draft
(dyn_boat_plant::draft, the deepest boat's) and half its length.
- choose, add, points() (free, medium) and the free-point fallback use each
medium's grid (ground_for). An untagged point serves only the archetypes
whose medium it is on.
- suggest follows the tag's archetype: roads on land, or water_spawn_points
over the water, spread over each body of water with room.
- WorldVehicles: a dynamicboat fleet (dyn_boat_plant, step_world off) whose
navigator plans on the inverse grid. The boats float on the water node's field,
or on still water at the grid's level that the runtime adds when the world has
none. vehicle_desc_of gives a boat a stand-in (its hull's box, envelope, no
wheels), boat_desc_of its boat, and entity_info its goal.
- A placed start off its medium (a car in a lake, a boat ashore) moves to a free
point of its medium, as a blocked start always has.
- dyn_boat_plant::attach also refuses a start where a ray from the hull's top
meets ground above the boat's deepest point: the field's box alone knows
nothing of the terrain in it.
ariadne_scene_world_test, on a lake 107 m across in a 300 m world:
- 48 humvees and 24 launches over all four policies each start on their medium;
- the any-points serve both, the free-point fallback respects medium, starts off
their medium move, and boat suggestions are over the water;
- a launch on nav@1 reaches two goals across the lake with at least 1.6 m of
water under it;
- without a water node, boats get still water.
nav_world_grid_test covers the water layer and the medium grids.
…t-spawns # Conflicts: # docs/PHYSICS_API.md # docs/roadmap/OCEAN-AND-WEATHER-ROADMAP.md # inc/cvc/ariadne/scene_water.h # inc/cvc/physics/dyn_boat_plant.h # src/cvc/ariadne/scene_water.cpp # src/cvc/physics/dyn_boat_plant.cpp
transfix
enabled auto-merge (squash)
November 16, 2026 22:55
master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master.
The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
…ster's arisrvx build
…lize's Debug timeout
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…17 on master (#1301) * docs(roadmap): the ocean roadmap's status line puts O8-O11, O15 and O17 on master The status line still had O8-O11 and O15 in review and didn't list O17. All of them merged by 2026-11-16 (807d892 is the last). It also says why O16 waits: a room still leaves a generated_world out (section 11.4). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * Revert "Merge fix/realize-timeout (#1329, dc56429) into docs/ocean-roadmap-status: realize's Debug timeout" This reverts commit bbee5d5, reversing changes made to 077433d. * Revert "Merge fix/server-link-self (#1328, e768c26) into docs/ocean-roadmap-status: master's arisrvx build" This reverts commit 077433d, reversing changes made to e222c46.
…t-spawns # Conflicts: # docs/roadmap/ARIADNE_WORLDS.md # inc/cvc/ariadne/world_vehicles.h # src/cvc/ariadne/world_vehicles.cpp # src/cvc/tests/ariadne_scene_world_test.cpp
Owner
Author
|
Merged master bbb47dd (#1170, the gym) as b2bdead. Conflicts in
One change beyond resolving conflicts: #1170's Locally, on a reconfigured Windows Release build, these pass: |
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
… and darkness (O18) (#1312) * world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…h the same values (#1322) * physics: the field step's sea reads, cheaper and on worker threads, with the same values terrain_lab's physics step cost about 16 ms of CPU a frame in arigl, all of it the water field reading the sea at every cell of every floating body (Jolt's own step: 0.01 ms). Nothing it computes changes: every pinned hash holds. - det::sin / det::cos take the quadrant from an integer remainder below 2^53 (fmod above); det::sincos shares one reduction. The sea's modes and the shore layer's trains use it. The sea's Catmull-Rom stencil wraps its index the same way. - fft_plan::run_2d transforms eight rows or columns abreast, run()'s butterflies operation for operation, and leaves blocks of +0 rows as they are (a +0 row transforms to itself bit for bit). - world_config::field_threads reads the cells on worker threads, each cell into its own slot, summed in the cells' order; the sea's per-time fields run as their tasks. The reads go through the sea held at the step's time (sea_surface::at, fluid_surface::at), without the cache's lock; the source lattice's corners are read under a shared lock. SceneWorld uses up to three workers. - step_report carries fields_ms and engine_ms. * docs: the field step's cost as built (under the roadmap's B6) Where terrain_lab's 16 ms of physics went (the sea's per-time fields and the cells' reads; Jolt's own step is 0.01 ms), what was cut without changing a value, and the before / after numbers. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…ry change of step (#1324) * cvcGL: the volume's draw queued without VTK's glFinish on still renders vtkOpenGLGPUVolumeRayCastMapper::GPURender ends every draw with glFinish() so that its CPU timer measures the GPU's work, which only an auto-adjusting (interactive) draw uses. The CPU waited there for the whole frame queued so far: in terrain_lab, 45-48 % of the main thread's samples, about 25 ms of a 45 ms offscreen frame on the Intel Arc iGPU. OverlappingVolumeMapper is a vtkSmartVolumeMapper that swaps glad's glFinish pointer for an empty function for the length of its own Render, unless the draw is timed (the window's desired update rate at or above the interactive rate), the loader has not loaded it, or an enclosing draw swapped it already. VolumeNode and the scene views' twin volumes use it. WebAssembly keeps VTK's behaviour. cvcgl_volume_overlap: no glFinish on still renders and the pointer put back, VTK's kept on interactive ones, one per still draw with a plain vtkSmartVolumeMapper, and byte-identical pixels between the two mappers. * EWave: the step tables kept per step, not remade at every change of step The exact step's coefficients, the symmetric step's multipliers and the real-space factors are n^2 modes of det:: math each. EWave kept one of each, for the last step only. The world clock moves in whole 1/120 s quanta, so a window stepped by the frame's clock step takes only a few steps, but under arigl run's wall clock the step changed nearly every frame and the tables were remade each time: about 10 ms of terrain_lab's 22 ms AriRuntime::frame on the Intel Arc iGPU (12-13 ms now). Each table is now kept for the last six steps it was made for, dropped as before when the depth or the mask changes. Same functions, same inputs, so the same values. cvcgl_ewave 2b: twelve steps of 1/30 s and 1/40 s in turn work out four tables and follow the CPU's exact step; a new depth works the coefficients out again. Docs: the wake window in OCEAN-AND-WEATHER-ROADMAP.md, and the volume's wait and what is left of terrain_lab's frame under RENDER_PERF_ROADMAP.md's Phase 6. * docs: terrain_lab's frame, measured interleaved on a quiet machine (with and without #1322) * Revert "cvcGL: the volume's draw queued without VTK's glFinish on still renders" This reverts commit 8d5858d11d5bf6b84b9c78de79cf7cd79193d17d. The swap of glad's glFinish pointer is process-wide state. The wait is to be removed in VTK itself instead: an opt-in vtkGPUVolumeRayCastMapper::FinishEveryRender (a cvcpkg patch, written for upstream), which libcvc then turns off per mapper. * docs: the volume's GPU wait is fixed in VTK (an opt-in FinishEveryRender), and the step tables' own measurement * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…mplers (O5, O21) (#1314) * cvc::ocean: persistent foam's integration and the biases that keep Monahan's share (O5) foam_step is the turbulence update the GPU runs (foam builds while a texel folds, decays as exp(-t / decay) after; bubbles, crest, spray), foam_look the windrow carve the shader draws it with. foam_history evolves the cascades' h0 over a few seconds, integrates the long cascades' foam texel by texel, and finds two biases: the aging foam's alone covers 0.6 of Monahan's share, the whitecaps' the rest. A unit of work is one cascade's Jacobian, so a caller can slice it. * cvcGL: OceanFoam, the long cascades' foam in one atlas, and the A4 water shading The long and middle cascades' turbulence lies side by side in one 512 x 256 RGBA32F atlas, ping-ponged: one pass a frame, one sampler for the water. OceanFoamCalibration runs foam_history as a sliced task. The GLSL it hands the water: the atlas read bilinear, the windrows, and the shading (GGX with Smith visibility and the sun's disc, footprint roughness from Cox-Munk's slopes, short ripples for the glitter, light through crests, the bubbles), ported from ABYSSAL (MIT, 849ff7f4). GeometryNode can report the uniforms and textures it was given. * water node and lsystem_coast: persistent foam, the A4 shading, and their level of detail (O5) Both draw the long waves' foam from OceanFoam's atlas, carved into windrows, with the whitecaps on top, and shade with OceanFoam's GLSL. The thresholds are found off the frame. New keys: foam_decay (0: the whitecaps alone, as before), lod_foam (the foam's detail ends there; the mean cover beyond and on the far grid) and lod_shade (the O15 water beyond), on water_controls.ari; coast.water.* in lsystem_coast. * docs: O5's persistent foam and shading as built * OceanCascades: the three cascades' FFTs in one set of passes (18, not 105) The cascades' textures are atlases of tiles side by side and every pass does all of them: one time pass, 2 log2 n butterfly passes (OceanButterfly over tiles) and one assemble, texel for texel three OceanFFTs (the test's worst difference is 0). Each cascade's two work tiles sit together, so setActive(k) transforms only the first k. OceanFoam steps from the displacement atlas, and its calibration also finds the whitecaps' bias for Monahan's share with no persistent foam beside them. * water node: level of detail, packed samplers, and adaptive quality (O21) - water.profile times the node's work into water.stats.<section>_ms (2 also fences each section on the GPU). - The cascades come from OceanCascades: one displacement atlas (uDisp). - The coast is one atlas (uCoast): the shore distance and the still water's depth, then the shore layer's two planes. The bed's height field is no longer bound. - The near grid is three rings (2, 4 and 8 m at the defaults). The far grid's vertex shader reads nothing. The short cascade fades out by water.lod_waves (150 m). The wake is read only inside its window, its slope from 12 cells instead of 20. - Samplers: vertex 8 -> 3, fragment 9 -> 4 (11 -> 6 with a cloud_sky's shade). - cvc::ariadne::AdaptiveQuality ports ABYSSAL's Quality.tick. AriRuntime ticks it on the wall time between frames, never on the fixed clock, and publishes quality.tier, quality.scale and quality.frame_ms. water_quality maps a tier to the water's distances and switches: the shading, the persistent foam, the wake's window, the short cascade and the far normal. water.quality pins a tier. Drawing only: the physics sea is the same at every tier. * docs: the water's level of detail and O21's adaptive quality as built The roadmap's "As built (O21)" under §10.10, the water's frame cost and level of detail under §10.11, and D9's row. O5's frame-cost note names the GPU it was measured on: the laptop's Intel Arc iGPU, where cvcGL's contexts run, not the RTX 4070. docs/ARIADNE.md: water.lod_waves, water.quality and water.profile, and the quality.* keys. * test(cvcgl_ariadne_realize): the foam thresholds' check doesn't race the calibration package-windows failed the O5 block three times: the thresholds' sliced task had finished within the block's first seven frames, so the value read as the guess was already the calibration's (0.7697) and never changed again. The check now waits on and compares against the guess itself (0.75), so it passes whether the calibration lands before or during the wait. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…1315) * world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * cvcGL: shader textures fit WebGL2's 16 units: the reserve is the mapper's arrays The redeployed terrain_lab still ran out in every water draw: headless Chrome logged 2,318 out-of-units warnings in 75 s once the water came up. VTK sizes its texture-unit table from GL_MAX_TEXTURE_IMAGE_UNITS, which is 32 on a desktop GL but 16 in WebGL2. bindShaderTextures first reserved a fixed 8 units for the low-memory mapper's emulated vertex arrays, which left a draw 8 for its own textures, and the water binds 10 (three cascades, three coast grids, the wake, the bed, two cloud-shade textures). - LowMemoryPolyDataMapper::arrayTextureUnits(): the arrays the draw under way takes, vtkDrawTexturedElements::Arrays (bound in RenderPieceStart, before UpdateShaderEvent fires). bindShaderTextures reserves that many when the drawing mapper (the event's caller, or the node's own) is one of ours, else 8 as before. - A texture that still finds no unit is left unbound, so it no longer sets a -1 sampler, which was a second GL error every draw. cvcGL names the node and texture once. - ViewportManager::limitTextureUnits(n) and $CVCGL_TEXTURE_UNITS cap VTK's table, put back at the start of each render after a GL state reset. With CVCGL_LOWMEM_MAPPER=force, a native run draws within the browser's budget. Native terrain_lab that way logged 1,440 warnings with the fixed reserve ("far" and "near" out of units for uWake: 16 in all, 8 kept, 10 shader textures), and 0 with this change. - cvcgl_ariadne_realize: the water (with a swell, so the swash and coast grids are on), cloud_sky's shade and a shadow-casting sun, drawn with the low-memory mapper at 16 units, log no out-of-units warning. The count is checked to hear VTK's warning. - ARIADNE.md: the browser's texture units, natively. - The comment #1304 added said WebGL2 gives VTK 32 units; it gives 16. * world: the weather's recent storms, their rain radius and the ground's wetness (O19) weather::recent gives the cells whose life reached into a window, alive or gone; rain_radius is where a cell's field passes the rain onset; wetness is how long a recent storm's rain lay over a point over a soak time, times its drying since, the CPU twin of the wet ground the sky draws and the friction O20 will read. * rain: streaks near the camera, shafts, wet ground, rings on the water and fog (O19) The weather node hands cloud_sky the recent storms' tracks and the rain's constants (sky.rain, sky.rain_k) and draws the streaks near the camera: a port of ABYSSAL's Rain, drops placed and moved in the vertex shader as a closed form of time, slanted by the scene wind's one accessor. cloud_sky draws rain shafts below the cloud base in its far shells, wets and darkens its receivers along the tracks and dries them after, puts procedural raindrop rings into the water's normal, and thickens a distance fog with the rain at the camera, all as uniforms: no sampler joins the ground, the buildings, the roads, the trees or the water. terrain_lab's sky lists the streaks; the Weather panel has the rain's keys. * rain: the sky finds the streaks inside the weather's node; the ground off the terrain cloud_sky looked its receivers up among the scene's top-level names, so the weather's streak mesh (weather_rain, a child of the weather's node) was never wired: it drew without the deck's shade and fog, and in the volume layer before the clouds instead of after them. A receiver is now found anywhere in the scene. The streaks' ground under a camera off the terrain is the height at the terrain's edge, not NaN. cvcgl_ariadne_realize checks that the sky wired the streaks. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…e-wind world_vehicles.cpp: the runtime keeps both the scene's wind (set_wind) and the boats' still water. The wind's push on the plants that feel no field now leaves the boat fleet out as it leaves out the jolt vehicles: a boat's hull is a dynamic body in the scene's physics world, so the wind's flow field already drags on its part in the air, and the push would charge it twice.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
Merged on #1309's final head (9e0760b) as the base, so the squash's copy of #1309 meets this branch's. Conflicts kept both sides: the boat node beside the weather node (registration, terrain_lab's node, panel and menu item, ARIADNE.md's sections and rows), the hulls' uniforms after the foam's, the hull discard after the footprint's derivatives (taken before any branch), and tick_hulls beside start_wake and publish_laps.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…still volume render) (#1327) * cvcGL: VolumeNode turns VTK's FinishEveryRender off, where the VTK has it VTK's GPU volume ray caster ends every render with glFinish() for a timer only an auto-adjusting render uses; in terrain_lab that wait was about 25 ms of a 45 ms frame. cvcpkg's VTK (cy-pca/cvcpkg#625: vtk 9.5.0+cvc.5, written for upstream) adds an opt-in vtkGPUVolumeRayCastMapper::FinishEveryRender, and vtkSmartVolumeMapper's, forwarded to its GPU mapper. VolumeNode's mapper and scene_views' twin turn it off: a still render queues its ray cast and returns; an interactive render still waits, as it adjusts its sample distance by its time. No process-wide state. A compile check (check_cxx_source_compiles against VTK::RenderingVolumeOpenGL2) defines CVC_VTK_HAS_FINISH_EVERY_RENDER, so libcvc still builds, and renders as before, against an unpatched VTK. cvcgl_volume_finish: the VolumeNode's mapper has it off, and the pixels are byte-identical with it off and on (only with the define; otherwise it checks that the volume draws). * docs: VolumeNode turns VTK's FinishEveryRender off; terrain_lab measured against the patched VTK * cvcGL: configure says whether VTK has FinishEveryRender * cvcGL: FinishEveryRender's check compiles only and runs at every configure The check linked a whole VTK program, so a link that failed for another reason (a wasm one, say) would have turned the property off silently; a static-library try_compile compiles the header's declaration and links nothing. Its cached answer is also dropped before each configure: VTK's version stays 9.5.0 across cvcpkg's revisions, so a build directory configured against vtk 9.5.0+cvc.3 would otherwise keep "no" after the prefix gets cvc.5. Checked by reconfiguring a build against the patched VTK ("has FinishEveryRender") and one against the catalog's ("no FinishEveryRender"). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
… its push on bodies (O14) (#1317) * water: fetch and lee, gusts, the sea lagging the wind, and currents, in both seas (O13) - cvc::algo::wind_field: the scene's gusts as one deterministic function of (x, y, t): two scales of integer-hashed value noise carried downwind and ABYSSAL's pulse over time. cvc/gl/WindGLSL.h is the same in GLSL, no texture. Everything the wind moves (O14: the clouds, the trees, the air physics) can sample it at the same point and time. - cvc::ocean: fetch.h (the fetch map in one upwind sweep, coarse, capped by each body's extent; each cascade scaled by sqrt(F / F_full), F_full where its band is fully grown), sea_lag.h (the sea's wind follows with a time constant and steps by keyframes, at most one per crossfade), current.h (a divergence-free curl-noise current and a two-phase flow map). sea_surface takes a sea_forcing: the h0 crossfade, the fetch scales, the ripples' gust weight, the current. - Ariadne: scene_wind.h reads a node's wind in one place (O14 points it at wind.*). SceneWaterSeaClock steps the keyframes both seas use. New water keys: gustiness, lee, sea_lag, sea_fade, current (water_controls.ari, ARIADNE.md). - cvcGL: OceanWind (one RG32F texture of the two keyframes' fetch maps; the gusts and the current hashed per vertex). The water node and lsystem_coast draw the lee, the gusts (the ripples' weight, cat's paws in the shading), the current carrying the two short cascades, and mix the two keyframes' h0 on the CPU only while a crossfade runs. - Tests: ocean_wind_test (fetch behind an island and on a lake, the lag and its debounce, a continuous crossfade, golden hashes of the fetch map, the gusts and the current, a divergence-free current, the physics sea's lee and current), a floating crate in the lee against one in the open (ariadne_scene_world_test), the water node's new keys (cvcgl_ariadne_realize). No golden hash moved: a sea_surface without a forcing has the same digest and values as before. * physics, ariadne: one scene wind for the water, clouds and trees, and its push on bodies (O14) A document's scene: wind: seeds wind.speed, wind.dir and wind.gustiness. While wind.speed is set, the water (both seas), cloud_sky's drift and orographic heading, and the forest's lean and sway all follow those keys, sampling the same gust field at the same (x, y, t). Each node's own wind keys are the fallback. SceneWind::azimuth is dir + 90 (O13 had it mirrored). cvc::physics: field::wind takes a flow_velocity (a velocity in space and time, with a digest). wind_flow is the scene's wind over a power-law height profile, linear below 0.1 m. A flow with a wind may have no volume (then it is air everywhere). The field step reads the wind once per body and its profile at nine heights across the body, and clips cells to the wind's base. The wind's digest is in save() and state_hash(); a world without one hashes as before. A vehicle's aero drag reads the wind at its centre of mass. The push: SceneWorld adds the wind as a flow field. WorldVehicles' dynamic, dynamic4w and kinematic fleets get the wind's share of the drag through the drive's external force. The room rules carry the wind to arisrv: dynamic avatars stand in a flow field, and kinematic avatars drift once the wind's drag beats the walker's grip, the drift folded into the intent. wind_controls.ari; docs: roadmap As built (O14), ARIADNE.md Wind, PHYSICS_API.md flow hook. * terrain_lab: the scene's one wind (9 m/s toward 30 degrees) for its water and clouds, and a Wind panel in Settings The water's and the clouds' own winds stay as fallbacks. The Water and Sky panels' wind sliders say they are unused while the scene has a wind. * docs(roadmap): O14 as built, terrain_lab's wind and its frame cost with the wind on and off * tests: IntentsMaybeSetFromAnotherThread waits for its writer's first intent The test runs 120 frames while a writer thread replaces vehicle a's intent, then expects a to be moving. A thread can start late: on a busy machine all 120 frames (a few tens of milliseconds) passed before the writer ran, no intent reached a, and only the last 6 frames moved it. That reads 0.10766078436440293 m/s, which is what recipe / windows-2022 / Release read on #1318, and what a writer held back until the frames end reads here, bit for bit. The frames now start once the writer has landed an intent (10 s at most). A failure says a's speed after the threaded frames, how many intents landed during them, and whether a existed. It passes with the writer started 300 ms late. * tests: IntentsMaybeSetFromAnotherThread steps on until an intent lands mid-run After its first intent the writer may still be descheduled for all 120 frames (a few tens of milliseconds on a busy machine), which would fail the check that an intent landed while the world stepped. The world now steps on, a frame at a time, until one does (10 s at most). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles: the boat note in the wind push's comment within the column limit
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…1323) * water: fetch and lee, gusts, the sea lagging the wind, and currents, in both seas (O13) - cvc::algo::wind_field: the scene's gusts as one deterministic function of (x, y, t): two scales of integer-hashed value noise carried downwind and ABYSSAL's pulse over time. cvc/gl/WindGLSL.h is the same in GLSL, no texture. Everything the wind moves (O14: the clouds, the trees, the air physics) can sample it at the same point and time. - cvc::ocean: fetch.h (the fetch map in one upwind sweep, coarse, capped by each body's extent; each cascade scaled by sqrt(F / F_full), F_full where its band is fully grown), sea_lag.h (the sea's wind follows with a time constant and steps by keyframes, at most one per crossfade), current.h (a divergence-free curl-noise current and a two-phase flow map). sea_surface takes a sea_forcing: the h0 crossfade, the fetch scales, the ripples' gust weight, the current. - Ariadne: scene_wind.h reads a node's wind in one place (O14 points it at wind.*). SceneWaterSeaClock steps the keyframes both seas use. New water keys: gustiness, lee, sea_lag, sea_fade, current (water_controls.ari, ARIADNE.md). - cvcGL: OceanWind (one RG32F texture of the two keyframes' fetch maps; the gusts and the current hashed per vertex). The water node and lsystem_coast draw the lee, the gusts (the ripples' weight, cat's paws in the shading), the current carrying the two short cascades, and mix the two keyframes' h0 on the CPU only while a crossfade runs. - Tests: ocean_wind_test (fetch behind an island and on a lake, the lag and its debounce, a continuous crossfade, golden hashes of the fetch map, the gusts and the current, a divergence-free current, the physics sea's lee and current), a floating crate in the lee against one in the open (ariadne_scene_world_test), the water node's new keys (cvcgl_ariadne_realize). No golden hash moved: a sea_surface without a forcing has the same digest and values as before. * physics, ariadne: one scene wind for the water, clouds and trees, and its push on bodies (O14) A document's scene: wind: seeds wind.speed, wind.dir and wind.gustiness. While wind.speed is set, the water (both seas), cloud_sky's drift and orographic heading, and the forest's lean and sway all follow those keys, sampling the same gust field at the same (x, y, t). Each node's own wind keys are the fallback. SceneWind::azimuth is dir + 90 (O13 had it mirrored). cvc::physics: field::wind takes a flow_velocity (a velocity in space and time, with a digest). wind_flow is the scene's wind over a power-law height profile, linear below 0.1 m. A flow with a wind may have no volume (then it is air everywhere). The field step reads the wind once per body and its profile at nine heights across the body, and clips cells to the wind's base. The wind's digest is in save() and state_hash(); a world without one hashes as before. A vehicle's aero drag reads the wind at its centre of mass. The push: SceneWorld adds the wind as a flow field. WorldVehicles' dynamic, dynamic4w and kinematic fleets get the wind's share of the drag through the drive's external force. The room rules carry the wind to arisrv: dynamic avatars stand in a flow field, and kinematic avatars drift once the wind's drag beats the walker's grip, the drift folded into the intent. wind_controls.ari; docs: roadmap As built (O14), ARIADNE.md Wind, PHYSICS_API.md flow hook. * terrain_lab: the scene's one wind (9 m/s toward 30 degrees) for its water and clouds, and a Wind panel in Settings The water's and the clouds' own winds stay as fallbacks. The Water and Sky panels' wind sliders say they are unused while the scene has a wind. * docs(roadmap): O14 as built, terrain_lab's wind and its frame cost with the wind on and off * cvcGL: a generated world's trees lean and sway in the scene's wind Every prop mesh of a generated_world (the wood, which holds the native trees' crowns, the leaves, the needles, on every LOD rung) leans downwind and sways in the vertex shader while the scene has a wind, from uniforms alone: the wind's direction, the lean and sway, the clock, the camera and the gust field (cvc_wind_gust). No texture and no vertex array, which the low-memory mapper would spend a unit on. A vertex's height above the ground rides in its normal's length (1 + h / 64): the lighting normalises it away, and the shader reads it back, so a point moves as (h - 0.3)^2 and a trunk's foot stays put. The phase is the vertex's world position. The displacement goes in at //VTK::Clip::Impl as a #define of vertexMC, so either mapper's position code follows it. The inputs skip the shadow bake, so the trees' shadows stay at rest. The sway fades out 300-450 m from the camera. world.sway (prop sway, 1; Tree sway on the Terrain Lab panel) scales it; world.lean_dir publishes the way the trees lean. Without a scene wind they stand still, as before. * cvcGL: swaying trees look their shadows up at rest The trees' shadow map is baked at rest, and a swayed point that had moved behind its own rest-pose surface read as shadowed: dark streaks along the trunk and limbs, faint at 9 m/s close up and the trunk nearly black at 25 m/s. A prop mesh now passes its unswayed view-space position to the fragments and points the first shadow lookup (calcShadow of the FilteredShadowMapPass) at it, so a swaying tree is shaded as the at-rest map says. One varying, no texture or uniform. Docs: the roadmap's trees note gets this and the frame cost measured on a quiet machine (a GPU timer: a few tenths of a millisecond near the trees; nothing arigl's frame shows). * tests: IntentsMaybeSetFromAnotherThread waits for its writer's first intent The test runs 120 frames while a writer thread replaces vehicle a's intent, then expects a to be moving. A thread can start late: on a busy machine all 120 frames (a few tens of milliseconds) passed before the writer ran, no intent reached a, and only the last 6 frames moved it. That reads 0.10766078436440293 m/s, which is what recipe / windows-2022 / Release read on #1318, and what a writer held back until the frames end reads here, bit for bit. The frames now start once the writer has landed an intent (10 s at most). A failure says a's speed after the threaded frames, how many intents landed during them, and whether a existed. It passes with the writer started 300 ms late. * tests: IntentsMaybeSetFromAnotherThread steps on until an intent lands mid-run After its first intent the writer may still be descheduled for all 120 frames (a few tens of milliseconds on a busy machine), which would fail the check that an intent landed while the world stepped. The world now steps on, a frame at a time, until one does (10 s at most). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles: the boat note in the wind push's comment within the column limit
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…(D5, D6) (#1316) * boats: nav drives them, dyn_boat_plant and plant_host's dynamicboat (O12) cvc::physics::dyn_boat_plant (OCEAN-AND-WEATHER-ROADMAP.md D4) puts a sim_world's agents on boats (world::add_boat) in a borrowed world that floats them, beside dyn_bike_plant and dyn_4w_plant. Each boat goes in over its agent's start at the draft its hull_mesh gives (float_height); a start with no water under it, too shallow, or a hull that cannot float is refused. Every world step a driver turns nav's bicycle angle and acceleration into set_boat_controls. The throttle takes the acceleration as dyn_driver.h does, over the propeller's thrust at the speed through the water, its trim kept across sign changes since the water holds the boat back either way. The rudder holds the bicycle's yaw rate u tan(delta) / L: a feed-forward share of full rudder and a PI term on the yaw rate's error as a curvature. state()'s steer is the angle the driver holds, not the rudder, which fed the driver's corrections into nav's steering-rate limit. The books are the hull's mechanical energy every step: drive and brake (the thrust's T u_a through the water), rudder, damping, water (the field load and the water's own motion on the propeller and rudder), gravity and the integrator's residual. Presets launch (physics_boat_test's boat; 3.19 m/s, 15.4 m) and jonboat (a 350 kg flat box with a steering outboard; 4.0 m/s, 4.1 m), measured. - plant_host: dynamicboat / dynamicboat:<presets> on set_water's field and the geometry; no water is a fallback to the bicycle. - world::water_at; water_sample moves to field.h. - cvc::nav::plant_medium (land, water) and vehicle_plant::medium(), for spawning boats on water later. physics_dyn_boat_plant_test: the presets' envelopes; 2.5 m/s and 0.08 rad/s held exactly on calm water and within 1 % on a 0.3 m swell; the books' residual 6e-8 to 3.5e-5 of the flow; nav drives a launch and a jonboat 120 m to their goals and turns them round to goals behind them; plant_host; a hosted world bit for bit; a pier contact; the refusals; and the pinned hash 96abfc30fcae4fd4 (Windows MSVC; CI to confirm Linux and macOS). No existing hash moved. pycvc does not bind the plant (it binds no boats yet). * Ariadne: boats as world vehicles, and spawns by medium so cars stay out of lakes (L3b) A world document's vehicles: archetypes: can offer a boat, plant: dynamicboat (or dynamicboat:launch / dynamicboat:jonboat), and every spawn now follows its archetype's medium: cars never start in water deeper than a ford, boats only in water deep and open enough for them. - nav::world_grid gains a water layer: water_depth (the level less the ground at each sample, set_water) and solid (what blocks a sample other than a water surface). medium_grid(g, medium, depth) is a car's grid with water deeper than a ford blocked, or a boat's with only deep enough water free. SceneWorld::grid sets the water from a water node over the node's ground, or a generated world's bodies of water. - world: spawns: takes ford_depth (0.3 m), keel_clearance (0.3 m) and shore_clearance (0 m). WorldSpawns::set_needs takes each archetype's medium (from its plant's vehicle_plant::medium()), a boat's draft (dyn_boat_plant::draft, the deepest boat's) and half its length. - choose, add, points() (free, medium) and the free-point fallback use each medium's grid (ground_for). An untagged point serves only the archetypes whose medium it is on. - suggest follows the tag's archetype: roads on land, or water_spawn_points over the water, spread over each body of water with room. - WorldVehicles: a dynamicboat fleet (dyn_boat_plant, step_world off) whose navigator plans on the inverse grid. The boats float on the water node's field, or on still water at the grid's level that the runtime adds when the world has none. vehicle_desc_of gives a boat a stand-in (its hull's box, envelope, no wheels), boat_desc_of its boat, and entity_info its goal. - A placed start off its medium (a car in a lake, a boat ashore) moves to a free point of its medium, as a blocked start always has. - dyn_boat_plant::attach also refuses a start where a ray from the hull's top meets ground above the boat's deepest point: the field's box alone knows nothing of the terrain in it. ariadne_scene_world_test, on a lake 107 m across in a 300 m world: - 48 humvees and 24 launches over all four policies each start on their medium; - the any-points serve both, the free-point fallback respects medium, starts off their medium move, and boat suggestions are over the water; - a launch on nav@1 reaches two goals across the lake with at least 1.6 m of water under it; - without a water node, boats get still water. nav_world_grid_test covers the water layer and the medium grids. * Ariadne: a boat node you can drive, and boats drawn with their hulls (D5, D6) A scene node `type: boat` puts a boat on a water node's sea: a hull, a propeller and a rudder (preset launch) or a steering outboard (jonboat) in the scene's physics world, at its draft on the water there. It drives from its keys or from nav, headless or drawn, and terrain_lab.ari has a launch on the big lake beside the crates. - cvc::ariadne::BoatRuntime (scene_boat.h): a dyn_boat_plant with one boat in the scene's world (step_world off, stepped around each world step) and a sim_world of its own on the water's grid, land and water too shallow for it blocked. SceneWorld runs it (bind_boats) from from_scene and from cvcGL's realize alike; it goes in once the water's grid is ready. - Its keys, under its id (or its keys: root): drive (keys / nav), throttle and rudder, goal ("x,y"), and its telemetry x, y, z, heading, speed, thrust, reached, placed, status. boat_controls.ari is its helm (Settings > Launch in terrain_lab.ari). - dyn_boat_plant::hold_controls / release_controls: a helm in place of the driver's command for one boat, the books going on. - SceneWorld learns a renderer-run water node's ground and level from the scene, so a drawn scene's grids carry the water too. - SceneWorld::restart forgets the old world's node fields; a scene whose water node has a body: threw "unknown or removed field id" on restart. Drawn (cvcGL): - add_hull_node (vehicle_view): the hull_mesh flat-shaded, white topsides, a blue stripe just over the waterline and a dark red bottom below it (static, at the resting waterline). A box hull draws open, with a teak sole 0.12 m over the waterline. The boat node is its hull bound to the hull body; a dynamicboat world vehicle draws the same hull in place of the box stand-in. - The water node keeps its water out of the four boats nearest the camera (boat nodes and boat world vehicles): eight vec3 and four float uniforms on its near and far grids (pose; half length, half beam, sheer height; bottom height), not a texture, since the water already binds 11-12 of WebGL2's 16 texture units. A fragment inside a footprint, under its sheer and over its bottom, is discarded: a trough deeper than the hull still draws. - The boat nodes' hulls make waves in the water's wake window. - GeometryNode::shaderUniformf / shaderUniform3f read a uniform back. ariadne_scene_world_test: - a launch on a lake floats at its draft (z -0.85 over a -1 m level); on its helm it reaches 3.14 m/s and turns 0.90 rad in 12 s; on nav it reaches a goal 60 m off in 96.8 s over at least 1.19 m of water; a restart puts it back; - terrain_lab.ari's launch crosses the lake to its goal on the 9 m/s sea in 17.8 s over at least 12.4 m of water. cvcgl_ariadne_physics: the node realizes its hull and is shown, bound and drawn where the boat floats; the helm moves it 11.0 m and turns it 0.42 rad in 5 s; the far grid's uniforms hold its footprint, bottom to sheer; a boat world vehicle draws its hull with no wheels, and the water takes its footprint too. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles.h: the includes in clang-format's order after the master merge * water_node: the uniforms' trailing comments in clang-format's alignment after the master merge * GeometryNode: one shaderUniformf (master's, from #1314); this branch's duplicate goes, its shaderUniform3f stays
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…the current (#1318) * water: fetch and lee, gusts, the sea lagging the wind, and currents, in both seas (O13) - cvc::algo::wind_field: the scene's gusts as one deterministic function of (x, y, t): two scales of integer-hashed value noise carried downwind and ABYSSAL's pulse over time. cvc/gl/WindGLSL.h is the same in GLSL, no texture. Everything the wind moves (O14: the clouds, the trees, the air physics) can sample it at the same point and time. - cvc::ocean: fetch.h (the fetch map in one upwind sweep, coarse, capped by each body's extent; each cascade scaled by sqrt(F / F_full), F_full where its band is fully grown), sea_lag.h (the sea's wind follows with a time constant and steps by keyframes, at most one per crossfade), current.h (a divergence-free curl-noise current and a two-phase flow map). sea_surface takes a sea_forcing: the h0 crossfade, the fetch scales, the ripples' gust weight, the current. - Ariadne: scene_wind.h reads a node's wind in one place (O14 points it at wind.*). SceneWaterSeaClock steps the keyframes both seas use. New water keys: gustiness, lee, sea_lag, sea_fade, current (water_controls.ari, ARIADNE.md). - cvcGL: OceanWind (one RG32F texture of the two keyframes' fetch maps; the gusts and the current hashed per vertex). The water node and lsystem_coast draw the lee, the gusts (the ripples' weight, cat's paws in the shading), the current carrying the two short cascades, and mix the two keyframes' h0 on the CPU only while a crossfade runs. - Tests: ocean_wind_test (fetch behind an island and on a lake, the lag and its debounce, a continuous crossfade, golden hashes of the fetch map, the gusts and the current, a divergence-free current, the physics sea's lee and current), a floating crate in the lee against one in the open (ariadne_scene_world_test), the water node's new keys (cvcgl_ariadne_realize). No golden hash moved: a sea_surface without a forcing has the same digest and values as before. * physics, ariadne: one scene wind for the water, clouds and trees, and its push on bodies (O14) A document's scene: wind: seeds wind.speed, wind.dir and wind.gustiness. While wind.speed is set, the water (both seas), cloud_sky's drift and orographic heading, and the forest's lean and sway all follow those keys, sampling the same gust field at the same (x, y, t). Each node's own wind keys are the fallback. SceneWind::azimuth is dir + 90 (O13 had it mirrored). cvc::physics: field::wind takes a flow_velocity (a velocity in space and time, with a digest). wind_flow is the scene's wind over a power-law height profile, linear below 0.1 m. A flow with a wind may have no volume (then it is air everywhere). The field step reads the wind once per body and its profile at nine heights across the body, and clips cells to the wind's base. The wind's digest is in save() and state_hash(); a world without one hashes as before. A vehicle's aero drag reads the wind at its centre of mass. The push: SceneWorld adds the wind as a flow field. WorldVehicles' dynamic, dynamic4w and kinematic fleets get the wind's share of the drag through the drive's external force. The room rules carry the wind to arisrv: dynamic avatars stand in a flow field, and kinematic avatars drift once the wind's drag beats the walker's grip, the drift folded into the intent. wind_controls.ari; docs: roadmap As built (O14), ARIADNE.md Wind, PHYSICS_API.md flow hook. * terrain_lab: the scene's one wind (9 m/s toward 30 degrees) for its water and clouds, and a Wind panel in Settings The water's and the clouds' own winds stay as fallbacks. The Water and Sky panels' wind sliders say they are unused while the scene has a wind. * docs(roadmap): O14 as built, terrain_lab's wind and its frame cost with the wind on and off * physics: an inertial fluid, so floating bodies drift in the wind and the current A fluid's damping held a floating body to the water's velocity in every direction, so a 1 m crate in a 10 m/s wind drifted about a millimetre a second. With field::inertial set, the damping acts on the vertical only (the heave it stands for, also left out of the horizontal drag's implicit rate, as a hull's is). Sideways, the water's acceleration pushes the body over its immersed volume (Froude-Krylov, rho V du/dt at the immersed centroid, du/dt from the water's velocity a step either side) and it drags against the water's velocity. So it rides the waves, takes the current, and drifts downwind where the air's drag on its freeboard balances the water's on its hull. The Ariadne water node's field is inertial. The default is off, so other worlds step and hash as before. * docs(roadmap): as built, floating bodies drift in the wind and the current (the inertial fluid) * tests: IntentsMaybeSetFromAnotherThread waits for its writer's first intent The test runs 120 frames while a writer thread replaces vehicle a's intent, then expects a to be moving. A thread can start late: on a busy machine all 120 frames (a few tens of milliseconds) passed before the writer ran, no intent reached a, and only the last 6 frames moved it. That reads 0.10766078436440293 m/s, which is what recipe / windows-2022 / Release read on #1318, and what a writer held back until the frames end reads here, bit for bit. The frames now start once the writer has landed an intent (10 s at most). A failure says a's speed after the threaded frames, how many intents landed during them, and whether a existed. It passes with the writer started 300 ms late. * tests: IntentsMaybeSetFromAnotherThread steps on until an intent lands mid-run After its first intent the writer may still be descheduled for all 120 frames (a few tens of milliseconds on a busy machine), which would fail the check that an intent landed while the world stepped. The world now steps on, a frame at a time, until one does (10 s at most). * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * world_vehicles: the boat note in the wind push's comment within the column limit
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
* world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * cvcGL: shader textures fit WebGL2's 16 units: the reserve is the mapper's arrays The redeployed terrain_lab still ran out in every water draw: headless Chrome logged 2,318 out-of-units warnings in 75 s once the water came up. VTK sizes its texture-unit table from GL_MAX_TEXTURE_IMAGE_UNITS, which is 32 on a desktop GL but 16 in WebGL2. bindShaderTextures first reserved a fixed 8 units for the low-memory mapper's emulated vertex arrays, which left a draw 8 for its own textures, and the water binds 10 (three cascades, three coast grids, the wake, the bed, two cloud-shade textures). - LowMemoryPolyDataMapper::arrayTextureUnits(): the arrays the draw under way takes, vtkDrawTexturedElements::Arrays (bound in RenderPieceStart, before UpdateShaderEvent fires). bindShaderTextures reserves that many when the drawing mapper (the event's caller, or the node's own) is one of ours, else 8 as before. - A texture that still finds no unit is left unbound, so it no longer sets a -1 sampler, which was a second GL error every draw. cvcGL names the node and texture once. - ViewportManager::limitTextureUnits(n) and $CVCGL_TEXTURE_UNITS cap VTK's table, put back at the start of each render after a GL state reset. With CVCGL_LOWMEM_MAPPER=force, a native run draws within the browser's budget. Native terrain_lab that way logged 1,440 warnings with the fixed reserve ("far" and "near" out of units for uWake: 16 in all, 8 kept, 10 shader textures), and 0 with this change. - cvcgl_ariadne_realize: the water (with a swell, so the swash and coast grids are on), cloud_sky's shade and a shadow-casting sun, drawn with the low-memory mapper at 16 units, log no out-of-units warning. The count is checked to hear VTK's warning. - ARIADNE.md: the browser's texture units, natively. - The comment #1304 added said WebGL2 gives VTK 32 units; it gives 16. * world: the weather's recent storms, their rain radius and the ground's wetness (O19) weather::recent gives the cells whose life reached into a window, alive or gone; rain_radius is where a cell's field passes the rain onset; wetness is how long a recent storm's rain lay over a point over a soak time, times its drying since, the CPU twin of the wet ground the sky draws and the friction O20 will read. * rain: streaks near the camera, shafts, wet ground, rings on the water and fog (O19) The weather node hands cloud_sky the recent storms' tracks and the rain's constants (sky.rain, sky.rain_k) and draws the streaks near the camera: a port of ABYSSAL's Rain, drops placed and moved in the vertex shader as a closed form of time, slanted by the scene wind's one accessor. cloud_sky draws rain shafts below the cloud base in its far shells, wets and darkens its receivers along the tracks and dries them after, puts procedural raindrop rings into the water's normal, and thickens a distance fog with the rain at the camera, all as uniforms: no sampler joins the ground, the buildings, the roads, the trees or the water. terrain_lab's sky lists the streaks; the Weather panel has the rain's keys. * rain: the sky finds the streaks inside the weather's node; the ground off the terrain cloud_sky looked its receivers up among the scene's top-level names, so the weather's streak mesh (weather_rain, a child of the weather's node) was never wired: it drew without the deck's shade and fog, and in the volume layer before the clouds instead of after them. A receiver is now found anywhere in the scene. The streaks' ground under a camera off the terrain is the height at the terrain's edge, not NaN. cvcgl_ariadne_realize checks that the sky wired the streaks. * world: the weather schedules lightning strikes (O20) weather::strikes(t, window) lists the strikes of the last window weather seconds: each recent cell's life in 1 s slots, a slot holding a strike with probability flash_rate times a smoothstep of the cell's intensity from flash_onset, a hashed draw of the seed, the cell and the slot, at a hashed point within its rain radius; ground_share of them reach the ground. A lightning_strike carries its id (the seed of its bolt), its time, its point and one to four strokes, and intensity(age) gives its light. A pure function of the seed, the time and the events, so every client sees the same strike. Test: WorldWeather.LightningStrikesOnSchedule. * physics: rain lowers the surfaces' friction through the material table (O20) surface_class::mu_wet is each class's friction soaked (wet asphalt and concrete 0.55, dirt 0.35, gravel and sand 0.45, grass 0.3; indoor floors keep theirs). cvc::physics::wet_friction(class, w) runs mu toward it by the wetness, and apply_wetness(world, w) sets every material named after a surface class (as add_world_geometry names them) through world::set_material. Test: PhysicsVehicle.RainLowersTheRoadsTractionAndItComesBackAsItDries, a storm crossing the road: braking from 20 m/s the vehicle stops in 25.2 m dry, 37.8 m soaked and 25.2 m three dry times later. * lightning: bolts and their flash; the rain into the scene's friction (O20) The weather node draws the brightest strike of the moment as a bolt, a port of ABYSSAL's Lightning (Lightning.js at 849ff7f4, MIT; notice in the header and THIRD_PARTY_NOTICES.md): a channel from the cloud base to the ground by midpoint displacement, fading forks and in-cloud crawlers, grown from the strike's id, drawn as camera-facing ribbons (a hot core and a blue-white glow, tapering past their ends) in the mesh <id>_bolt, rebuilt once a strike and drawn after the deck as a sky receiver. Its ground point is the ground's height, at the terrain's edge past it. The flash goes to the sky as sky.flash, a frame step ahead since the sky ticks first, and from there as one vec4 uniform, cloudFlash: the receivers add their albedo times it, the water its lit term, the far shells glow round the strike and the background whitens. No sampler is added. In a scene with a physics world the node sets the surface materials' friction from weather::wetness at the vehicles (apply_wetness), at most twice a world second and only when the wetness moves by 1/64; weather.friction off restores the dry friction. Keys weather.lightning, .flash, .friction and .wetness, on the Weather panel; props flash_rate, flash_onset, ground_share, lightning and friction. terrain_lab lists weather_bolt among the receivers. cvcgl_ariadne_realize covers the lightning, the bolt's wiring and the friction. Docs: ARIADNE.md, and "As built (O20, part 1)" in the roadmap, with what F4 needs from O14. * ariadne_python: the bridge ops pass self to server_link master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it. * Ariadne weather: the rain's friction is the scene world's, set in the physics step on the clock The wet friction (O20, F6) was set by cvcGL's weather node from its frame tick: at most twice a world second, into the physics world's materials from the next step on. The wetness is a function of the seed, the time and the events, but the step at which the friction changed depended on when a frame came (30 fps, 60 fps or an offscreen capture changed it at different steps), and a host without a renderer (ari, arisrv, a headless test) never applied it, so one document's physics differed by host and frame rate. The friction is physics, so the scene's world now sets it. scene_weather.h: - scene_weather_params / _ground / _soak / _dry read a weather node's props; the drawn node and the world both use them, so the friction follows the storms the node draws. - WeatherFriction (one per weather node, SceneWorld::bind_weather; from_scene and scene_realize both bind it) reads weather.events and weather.friction at sync, and sets the friction in follow() before the physics step: on the first step of each half second of world time, counted in the world clock's ticks (each step's tick from the clock follower), when the wetness at the vehicles (their mean; the weather's centre with none) has moved by 1/64. weather.friction 0 dries the surfaces at the next step. It publishes weather.wetness. A restart sets it again at the next step. The weather node no longer touches the friction (its frame tick is gone) and takes its params and soak/dry from scene_weather. Test: AriadneSceneWeather.TheRainsFrictionIsSetInTheStepOnTheClocksTicks. A headless world lowers asphalt's friction to its soaked value; it first changes on a half-second boundary; a run with uneven 0.137 s frames has the same friction as one with a frame per clock quantum at every tick both see; weather.friction 0 dries it at the next step. * AriadneSceneWeather test: the friction is the wet ground's at the wetness applied (the storm moves on and the ground begins to dry), not a full soak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1306 (
feat/boat-plant, the boat plant). Its base isfeat/boat-plant; it will be rebased onto master once #1306 merges.The owner's ask: "if we are going to support boats, we should filter spawn points by entity type so cars dont end up spawning in water and vice versa". After this PR a world document can offer boats as world vehicles, and every spawn follows its archetype's medium. Cars never start in water deeper than a ford. Boats start only where the water is deep and open enough for them.
What changed
The grid's water layer (
inc/cvc/nav/world_grid.h,src/cvc/nav/world_grid.cpp)world_grid::water_depth, set byset_water(g, level): the level less the ground's height at each sample.world_grid::solid: what blocks a sample other than a water surface (rf_materialwater).medium_grid(g, medium, depth):depthdeep and not solid is free.SceneWorld::gridsets the water from awaternode over the node's ground (WaterRuntime::level(), new), or from a generated world's bodies of water.world::water_atreads a field's box and knows nothing of the terrain inside it. Spawning now uses the ground's height and the water's depth.The knobs and the medium (
world_rules.h/.cpp)world: spawns:takesford_depth(0.3 m),keel_clearance(0.3 m) andshore_clearance(0 m).plant: dynamicboat[:launch|jonboat]is a known plant, with its own presets (boat_presets()). Itsvehicle:overrides onlymassandmax_speed.vehicle_plant_floats(plant)says whether a plant is a boat's.The filter (
world_spawns.h/.cpp)WorldSpawns::set_needstakes each archetype'sspawn_need: its medium, and a boat's draft and half its length.ground_for(archetype)is that medium's grid (cached), its signed distance, and the clearance a start keeps:shore_clearance.choose,addandpoints()filter by it;points()givesfreeplus a newmediumfield: land, water, both or none. An untagged ("any") point serves only the archetypes whose medium it is on. A tagged point off its archetype's medium serves nothing.suggestfollowstag.archetype:water_spawn_points, which gives each body of water with room a point in turn, each heading along the shore. No road suggestions for boats.Boats as world vehicles (
world_vehicles.h/.cpp)dynamicboatfleet:dyn_boat_plantwithstep_worldoff, stepped around the scene world's steps as the dynamic car plants are.keel_clearancedeep, with land blocked.vehicle_plant::medium()). A boat's draft isdyn_boat_plant::draft(new: its keel, or its propeller where that reaches deeper); every boat uses the deepest one, since they share a navigator.vehicle_desc_ofgives a boat a stand-in for what reads a vehicle: its hull's box, mass, top speed and thrust per unit mass, with no wheels.boat_desc_ofgives its boat.draw_point) and the placed-start check use the entity's medium's grid.entity_infoalso gains the entity's goal (goal_x,goal_y).boat_grid,deepest_draft,make_boat_fleet,ensure_water,drop_still_water,update_needs,ground_of,floats). Existing functions changed only in a few lines each: aboatbranch inpose_of,fleet_for,place,before/after_world_step,unplace_allandinfo, a line inbuild_navigatorand inset_ground/world_reset. Onlyfree_atanddraw_pointhave rewritten bodies.The plant (
dyn_boat_plant.h/.cpp)attachalso refuses a start where a ray from the hull's top meets a body without mass (the terrain, a shoal) above the boat's deepest point. Before, only the field's box was checked.Docs
docs/ARIADNE.md: plants, spawn points, the knobs and the medium.docs/roadmap/ARIADNE_WORLDS.md: §14 "Boats and spawns by medium", and an L3b row.docs/roadmap/OCEAN-AND-WEATHER-ROADMAP.md: a note under D4. The Status line is untouched.docs/PHYSICS_API.md: the attach check anddraft.Decisions
How it was checked (Windows 11, MSVC Release, Jolt)
New tests:
AriadneWorldBoats.*(7) inariadne_scene_world_test, on a 300 m world with a lake 107 m across (a 6 m bowl under awaternode at −1 m):freeandmediumare right, andaddrefuses a car's point in the lake.fixed: the untagged lake point serves the launch and the untagged shore point serves the humvee.water_spawn_pointsgives each of two ponds one point.nav_world_grid_test.TheWaterLayerAndTheGridsByMedium: depths; a car's and a boat's grids; a pier in the water stays solid; a deep-water terrain surface is blocked for cars and free for boats; no water at all.Suites run: all pass, rebuilt after the last change. Ariadne:
ariadne_scene_world_test(42, which holds the world spawns and world vehicles suites),world_rules_test(7),ariadne_runtime_test(281),holon_test(44),room_scene_test(21). Nav:nav_world_grid_test(8),nav_world_planes_test(4, 1 skipped),nav_sim_world_test,nav_sim_world_agents_test,nav_test(65),nav_binding_test,nav_stats_test,nav_route_follower_test,nav_trace_test,nav_vehicle_route_test,nav_yield_test,nav_terrain_test,nav_plant_test(28; 5 experiments skipped by design). Physics:physics_dyn_boat_plant_test(11),physics_boat_test,physics_plant_host_test,physics_dyn_bike_plant_test,physics_dyn_4w_plant_test,physics_world_test,physics_field_test,physics_hull_test,physics_plant_log_test. Changed lines are formatted with git-clang-format.Not checked or not done
vehicle_view.cppreadsvehicle_desc_of, so a boat draws as its hull's box with no wheels until hull looks come (D5/D6).set_waterper sample.