Repository navigation
Clients draw a room entity's model; the tactical boat's model is its default look - #1343
Merged
Merged
Conversation
…its default look Clients watching a server world drew every entity as its box look. Now a room entity's model look (a file's name: Humvee.glb, TacticalBoat.glb) is drawn from the client's own copy, which find_vehicle_model finds in its cvcpkg packages, fitted to the chassis and set on the ground under it; one it has not installed is drawn as its box. - vehicle_view: make_vehicle_model_cache() and attach_vehicle_model(), the fitted-model path vehicle_view already uses, for other views (the lsystem_coast session's boat node adds the same two, byte for byte). - room_entity.base_z: the ground under the chassis's centre, relative to it, where a fitted model's base goes. - room_view: each entity's model look resolved locally, the box when it is not there or does not read; its own model cache. - find_vehicle_model: a name without an extension is its .glb (TacticalBoat: TacticalBoat.glb, as the vehicle-tactical-boat package installs it beside Humvee.glb). - resolve_vehicle_looks: a boat on the "tactical" preset (which the lsystem_coast session's PR adds) defaults to the TacticalBoat model, fitted, as a humvee defaults to Humvee.glb. Tests: LooksAreFoundWhereTheyAre (TacticalBoat by its name and its file's, the tactical preset's default look); cvcgl_room_view (a model look the host has not installed is drawn as its box).
Base automatically changed from
feat/relay-entity-view
to
feat/relay-entities
November 18, 2026 03:53
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 #1337. Clients watching a server world now draw each vehicle's model, not just its box, and the new tactical boat model is wired in.
Change
Humvee.glb,TacticalBoat.glb). The client draws it from its own copy, found byfind_vehicle_modelin its cvcpkg packages, fitted to the chassis and set on the ground beneath it. A model the client hasn't installed, or one that doesn't read, is drawn as the box.vehicle_viewexposesmake_vehicle_model_cache()andattach_vehicle_model(): the fitted-model path it already uses, now available to other views. The lsystem_coast session's boat-node PR adds the same two, byte for byte, so whichever lands second merges cleanly.room_entity.base_zis the ground under the chassis's centre, relative to it. That's where a fitted model's base goes.find_vehicle_modeltreats a name without an extension as its.glb(TacticalBoatfindsTacticalBoat.glb). That's how the newvehicle-tactical-boatpackage (cy-pca/graphics-assets#19) installs it, besideHumvee.glb.resolve_vehicle_looks: a boat on thetacticalpreset defaults to the TacticalBoat model, fitted, the way a humvee defaults toHumvee.glb. The lsystem_coast session's PR adds that preset; until then the default is inert.Tests
AriadneWorldVehicles.LooksAreFoundWhereTheyArefinds TacticalBoat by its name and by its file's name, and checks the tactical preset's default look.cvcgl_room_view: a model look the client hasn't installed is drawn as its box.Coordination
The lsystem_coast session owns
fitted()'s axis logic: glTF's Y-up, and finding the bow as the narrow end. Without that change, the tactical boat model lies on its side. This PR doesn't touchfitted().