Repository navigation
world: a data node's world dataset draws with the generated-world renderer (GB3 part 2) - #1508
Merged
Merged
Conversation
…derer (GB3 part 2)
A source: { data } node whose dataset is a world (a city bundle such as
Austin, a saved world, a generate: generated_world dataset) now draws as
the generated_world node draws its own: terrain LOD chunks on the
dataset's ground (ground.png, else satellite.png at its own width and
height), the props' LOD cells, buildings, roads and water.
world_nodes: DataWorldView and DataWorldTask make the drawn world with
world_from_bundle from what the decoder left in the store, off the frame
thread, and put it in through the generated node's install, under the
data node's group. The renderer's parts are found or made through
find_part / make_part, the ground texture has a width and height, and
the per-frame work is one tick_world shared by both nodes.
scene_realize: every data node gets a view and a pending_work probe;
sync_scene_data loads a world dataset into it or clears it; tick_scene
ticks it; finish_scene_data runs the draws to their end. The plain draw
stays for a terrain with a live texture and for non-world datasets.
world_from_bundle draws only items with role_render.
transfix
enabled auto-merge (squash)
November 23, 2026 23:24
…ay, region, water_level) The closed .ari schema (#1464) checks a source: { data } node against node_builtin. GB3 part 2 reads look, water, underside, texture and sway on it, and GB2 reads region and water_level, so each was an unknown key.
…ug load can't use it up The run's clock starts before the document loads. On CI's Debug job (on master too) the load took over a second, so the 1 s timeout ran out before test 'waits' began and the message had no "in test 'waits'".
This was referenced Nov 25, 2026
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.
GB3 part 2 of ARIADNE_WORLDS section 18.8 ("one renderer"): a
source: { data }node whose dataset is a world now draws with cvcGL's generated-world renderer, the one the terrain lab andgenerated_worlduse. That covers a city bundle like Austin, a saved world, or agenerate: generated_worlddataset. Part 1 (#1496) put everything that renderer draws into the bundle and addedworld_from_bundle; this PR wires it into the data node.What changes
world_nodes.h, newDataWorldView):ground.png, else a city'ssatellite.pngat its own width and height (it need not be square), else the terrain's surface colour.underside: 1, off by default for a data node).DataWorldTask, natively on the background pool) makes the drawn world from what the decoder already holds in the store: theworld, the manifest's fields, the decoded aerial image, and the files. The glbs are not parsed again.<id>_terrainand its chunks,<id>_props,_foliage,_needles,_buildings,_roads,_water,_underside), sovisible:and the world source's switch hide and show the whole world.tint: satellitecolours the buildings and roads by the ground under them.look,water,texture(the water texture's size) andswaywork as ongenerated_world. Progress is under<id>.draw.*(busy, progress, phase, status).pending_workprobe, so a settled-frame host waits for the world to be in.sync_scene_datastarts the job for a world dataset and clears the view for anything else.tick_sceneticks the view: install, retire, and LOD for the frame's camera.finish_scene_data(realized)runs the jobs and installs to their end, for tests and hosts that don't tick.frame:bounds still come from the dataset at once, and its bodies are unchanged.material: { texture: { stream } }) and datasets that are not worlds (a mesh, a terrain alone, a volume).find_part/make_part: top-level forgenerated_world, under the group for a data node.tick_world, shared by both kinds of node.generated_worldalso gains anunderside:prop (default 1, as before).world_from_bundledraws only the mesh items withrole_render. A collider-only item is no longer merged into the buildings.Tests
cvcgl_ariadne_data(5 tests, 2 new):finish_scene_data:city_terrainand the parts beside it;test_a_city_ground_that_is_not_square:satellite.pngbecomes a 4 x 2 ground texture;pending_workprobe is true while the world is drawing and false once it is in;test_a_generated_worlds_dataset_draws_as_its_node_does, on agenerate: generated_worlddataset:city_props;ground.pngas the ground texture.world_bundle_v2_test: 9 of 9 pass.Locally (MSVC Release, full build): 2,141 matching world, ariadne, data, nav, bundle and cvcGL ariadne tests pass (the skips need CUDA, Jolt or the real Austin bundle),
cvcgl_ariadne_physicsamong them. Some changed lines were reformatted, whitespace only, after that run.Not in this PR
material: { opacity }reaches only what the plain draw makes.