[PR #4753] [MERGED] Finish spectator player model and transient block removal (parity) #5829

Closed
opened 2026-11-03 05:15:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4753
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/R-render


📝 Commits (1)

  • 0dc793f PlayerModel.setupAnim (spectator), LevelRenderer.submitTransientBlocks (compile start): finish the partial ports

📊 Changes

8 files changed (+128 additions, -28 deletions)

View changed files

📝 crates/horizon-client-render/src/streaming.rs (+20 -0)
📝 crates/horizon-client/src/game/lan.rs (+1 -0)
📝 crates/horizon-client/src/game/moving_pistons.rs (+11 -3)
📝 crates/horizon-client/src/game/perspective.rs (+2 -0)
📝 crates/horizon-client/src/game/remote.rs (+8 -0)
📝 crates/horizon-client/src/game/transient_blocks.rs (+36 -13)
📝 crates/horizon-client/src/mobs.rs (+2 -0)
📝 crates/horizon-client/src/mobs/anim.rs (+48 -12)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3519

Finishes two rendering rows that earlier PRs ported only partly.

Rows

  • PlayerModel.setupAnim: a player in spectator mode hides its body, arms and legs (showBody = !state.isSpectator; the jacket, sleeves and pants go with their parents), leaving the head and hat. isSpectator is read from the player list for remote players, from the guest's game mode for guests drawn on the host, and from the local mode for the third-person model.
  • LevelRenderer.submitTransientBlocks: a transient block is dropped the way performTransientBlockRemovals does, by comparing the block's creation time with the compile start of its section's uploaded mesh. The mesher's dispatch sequence is the clock (each job snapshots the world as it is dispatched, so it is the compile start): Streaming::compile_start(section) is the sequence the latest accepted mesh was dispatched at, and a block created at sequence c goes once that is greater than c and the mesh is no longer waiting for its upload. This replaces the "section was pending, then was not" guess.

Not done in this PR

LeashFeatureRenderer (boats) stays open: boats have no lead at all in Horizon (no leash data on Boat, no lead interaction, no tickLeash physics, no entity-link packets or save field), so there is nothing for the renderer to draw. It needs boats made Leashable first.

Vanilla followed

PlayerModel.setupAnim, AvatarRenderer.extractRenderState, LevelRenderer.performTransientBlockRemovals / submitTransientBlocks, SectionOcclusionGraph.schedulePropagationFrom, CompiledSectionMesh.getCompileTaskStartTime.

Tests

mobs::anim::flight_pose_tests::spectators_show_only_the_head_and_its_hat, game::transient_blocks::tests (the removal rule and the creation sequence). fmt and clippy -D warnings pass; harnesses left to CI.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4753 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/R-render` --- ### 📝 Commits (1) - [`0dc793f`](https://github.com/horizon-rust/horizon/commit/0dc793fdb5da644bc805bc3b30ea5a068417ee6e) PlayerModel.setupAnim (spectator), LevelRenderer.submitTransientBlocks (compile start): finish the partial ports ### 📊 Changes **8 files changed** (+128 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/streaming.rs` (+20 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+1 -0) 📝 `crates/horizon-client/src/game/moving_pistons.rs` (+11 -3) 📝 `crates/horizon-client/src/game/perspective.rs` (+2 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+8 -0) 📝 `crates/horizon-client/src/game/transient_blocks.rs` (+36 -13) 📝 `crates/horizon-client/src/mobs.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/anim.rs` (+48 -12) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3519 Finishes two rendering rows that earlier PRs ported only partly. ## Rows - `PlayerModel.setupAnim`: a player in spectator mode hides its body, arms and legs (`showBody = !state.isSpectator`; the jacket, sleeves and pants go with their parents), leaving the head and hat. `isSpectator` is read from the player list for remote players, from the guest's game mode for guests drawn on the host, and from the local mode for the third-person model. - `LevelRenderer.submitTransientBlocks`: a transient block is dropped the way `performTransientBlockRemovals` does, by comparing the block's creation time with the compile start of its section's uploaded mesh. The mesher's dispatch sequence is the clock (each job snapshots the world as it is dispatched, so it is the compile start): `Streaming::compile_start(section)` is the sequence the latest accepted mesh was dispatched at, and a block created at sequence `c` goes once that is greater than `c` and the mesh is no longer waiting for its upload. This replaces the "section was pending, then was not" guess. ## Not done in this PR `LeashFeatureRenderer (boats)` stays open: boats have no lead at all in Horizon (no leash data on `Boat`, no lead interaction, no `tickLeash` physics, no entity-link packets or save field), so there is nothing for the renderer to draw. It needs boats made `Leashable` first. ## Vanilla followed `PlayerModel.setupAnim`, `AvatarRenderer.extractRenderState`, `LevelRenderer.performTransientBlockRemovals` / `submitTransientBlocks`, `SectionOcclusionGraph.schedulePropagationFrom`, `CompiledSectionMesh.getCompileTaskStartTime`. ## Tests `mobs::anim::flight_pose_tests::spectators_show_only_the_head_and_its_hat`, `game::transient_blocks::tests` (the removal rule and the creation sequence). fmt and clippy `-D warnings` pass; harnesses left to CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5829
No description provided.