[PR #181] [MERGED] Render falling blocks with their actual block models #2383

Closed
opened 2026-11-02 15:55:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/181
Author: @Online5277
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: fix/falling-block-model


📝 Commits (2)

  • 517e275 Render falling blocks with their baked models
  • 792a681 Seed falling block models from their spawn cell

📊 Changes

3 files changed (+24 additions, -58 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+17 -50)
📝 crates/horizon-client/src/game/minecarts.rs (+5 -8)
📝 crates/horizon-client/src/game/persist.rs (+2 -0)

📄 Description

Falling dragon eggs were rendered as six faces of a full cube. Render falling blocks through the existing baked block-model renderer so eggs and anvils retain their actual geometry, face textures, and UVs while falling. Keep the existing position interpolation, light lookup, and block tint selection.

Falling blocks now retain their spawn cell and use it for weighted model selection, so sand keeps the rotation selected at its original block throughout the fall. Loaded entities use the zero position, matching vanilla's default because DATA_START_POS is not persisted. The minecart caller retains its existing zero-position seed.

Closes #107.

Validation:

  • The original geometry change passed workspace Rust tests, asset tests, and warning-denied workspace Clippy; client tests and Clippy were rerun after preserving tint.
  • The seed follow-up compiles all client test targets and passes warning-denied client all-target Clippy, formatting, and whitespace checks.
  • The supplied pinned-source review confirms the interpolated feet plus (-0.5, 0, -0.5) origin, egg geometry, state-driven anvil facing, and emitting every baked face group.
  • No new synthetic renderer test: this reuses the existing model renderer, and the live Game/asset setup has no small isolated test seam.
  • In-game visuals remain unchecked. Manual check: drop a dragon egg, an anvil, and sand; confirm their shapes/textures while falling and after landing. Sand should retain its spawn-cell rotation while moving. For tint coverage, summon a falling leaves block.

This fixes the reported model shape and the model seed. Existing shared-renderer lighting limits remain: one light sample replaces the native moving-block face/vertex samples, and the renderer lacks the egg's emission floor, precise visual-cell Y selection, and Nether cardinal shading. Sand/anvil smooth-light blending requires a moving-block light sampler; this PR does not implement that broader lighting work. Tint selection is retained without claiming exhaustive tint parity.


🔄 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/181 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/falling-block-model` --- ### 📝 Commits (2) - [`517e275`](https://github.com/horizon-rust/horizon/commit/517e275c792f7c27303b31012a18b503c716f7c1) Render falling blocks with their baked models - [`792a681`](https://github.com/horizon-rust/horizon/commit/792a6814978369117ae50f0906a46ae0a7d96de2) Seed falling block models from their spawn cell ### 📊 Changes **3 files changed** (+24 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+17 -50) 📝 `crates/horizon-client/src/game/minecarts.rs` (+5 -8) 📝 `crates/horizon-client/src/game/persist.rs` (+2 -0) </details> ### 📄 Description Falling dragon eggs were rendered as six faces of a full cube. Render falling blocks through the existing baked block-model renderer so eggs and anvils retain their actual geometry, face textures, and UVs while falling. Keep the existing position interpolation, light lookup, and block tint selection. Falling blocks now retain their spawn cell and use it for weighted model selection, so sand keeps the rotation selected at its original block throughout the fall. Loaded entities use the zero position, matching vanilla's default because `DATA_START_POS` is not persisted. The minecart caller retains its existing zero-position seed. Closes #107. Validation: - The original geometry change passed workspace Rust tests, asset tests, and warning-denied workspace Clippy; client tests and Clippy were rerun after preserving tint. - The seed follow-up compiles all client test targets and passes warning-denied client all-target Clippy, formatting, and whitespace checks. - The supplied pinned-source review confirms the interpolated feet plus `(-0.5, 0, -0.5)` origin, egg geometry, state-driven anvil facing, and emitting every baked face group. - No new synthetic renderer test: this reuses the existing model renderer, and the live Game/asset setup has no small isolated test seam. - In-game visuals remain unchecked. Manual check: drop a dragon egg, an anvil, and sand; confirm their shapes/textures while falling and after landing. Sand should retain its spawn-cell rotation while moving. For tint coverage, summon a falling leaves block. This fixes the reported model shape and the model seed. Existing shared-renderer lighting limits remain: one light sample replaces the native moving-block face/vertex samples, and the renderer lacks the egg's emission floor, precise visual-cell Y selection, and Nether cardinal shading. Sand/anvil smooth-light blending requires a moving-block light sampler; this PR does not implement that broader lighting work. Tint selection is retained without claiming exhaustive tint parity. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:31 +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#2383
No description provided.