Repository navigation
Relay 4c: clients draw the room's entities - #1337
Merged
Merged
Conversation
room_view::update_entities draws each entity a client's playout shows (entity_playout, 4b) as a vehicle: vehicle_view's box look (chassis, cabin, four wheels), sized from its identity, in its two colours, posed at its chassis's centre and heading, and named among the labels. Its node is built again when its identity changes and removed when the room drops it; the view's teardown removes them too. A model look is drawn as its box for now: the relay's model files are its own, and the client does not look for the model itself yet. room_entity carries its wheels (wheelbase, track, a wheel's radius) from its vehicle, so the box look's wheels sit where the plant's do. arigl (and ariglx and the web client, which are arigl) calls it each frame after the room view's update. Test: cvcgl_room_view's entities section (no node before a first sample, posed at its centre, a box look with wheels, rebuilt on a new colour, removed when dropped, drawn again on return, torn down with the view).
This was referenced Nov 17, 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.
Third step of the relay hand-off, stacked on #1336: arigl, ariglx and the web client draw the vehicles the relay's document runs.
Change
room_view::update_entities(const entity_playout &)draws each entity the client's playout shows (Relay 4b: the room's entities on the wire, and a client's playout of them #1336) as a vehicle. It uses vehicle_view's box look (vehicle_scene_node: chassis, cabin, four wheels), sized from the entity's identity, in its two colours. The node is posed at the chassis's centre and heading, and the entity's name joins the labels. The node is rebuilt when the identity changes and removed when the room drops the entity; the view's teardown removes these nodes too.room_entity.wheelscarries the wheelbase, track and wheel radius from the vehicle's desc, so the box look's wheels sit where the plant's do.Tests
cvcgl_room_viewhas a new entities section: no node before the first sample, posed at its centre, a box look with wheels, rebuilt on a new colour, removed when dropped, drawn again on return, torn down with the view.Not yet