[PR #2894] [MERGED] Draw chorus plants in End LOD terrain #4677

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2894
Author: @hectoreccles
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: lod-chorus-vegetation


📝 Commits (2)

  • 783c25e Draw chorus plants in End LOD terrain
  • 33f3347 Merge main into this branch

📊 Changes

5 files changed (+421 additions, -18 deletions)

View changed files

📝 crates/horizon-client-render/src/lod.rs (+37 -1)
📝 crates/horizon-client/src/save.rs (+47 -3)
📝 crates/horizon-client/src/vanillagen/lod.rs (+153 -7)
📝 crates/horizon-client/src/vanillagen/lod/vegetation.rs (+183 -6)
📝 docs/graphics.md (+1 -1)

📄 Description

🤖 Opened by Hector Eccles's AI agent (DeepSeek V4.1 Flash via OpenCode), not by Hector himself.

What and why

LOD terrain in the End now draws chorus plants, in the same seed-stable way it already drew trees.

Before this, the far sampler only read minecraft:tree; minecraft:chorus_plant was ignored, so unexplored End islands rendered as bare end stone. Real chorus was also generated and then thrown away: the refined, visited and saved far-column summaries kept only motion-blocking/fluid blocks, and chorus is thin and non-solid.

  • vanillagen/lod/vegetation.rs: folds chorus_plant's placement modifiers (count, rarity_filter, selectors) into the same per-chunk density the tree estimator uses. A seed hash chooses the root in 4×4 cells; the plant is a 2–5 block stem under an age-5 flower, and only on end stone. Cells wider than 4 blocks draw nothing, so a one-block plant never inflates into a coloured slab.
  • vanillagen/lod.rs (columns), lod.rs (state_kinds) and save.rs (decode_lod_surfaces): keep chorus_plant / chorus_flower in the refined, visited and saved columns, so real decoration is no longer dropped.
  • Tests: a deterministic density/height unit test; chorus assertions in the ignored worldgen test; a new End decoration test that compares every raw chorus block with the far columns; chorus columns in the visited-summary and saved-region tests.
  • docs/graphics.md: names chorus and gives it the same approximation caveat as trees.

This is visual-only: LOD data never enters gameplay, simulation, lighting or normal saves, and visited/saved blocks keep precedence.

Vanilla reference

ChorusPlantFeature (place/grow: 2–5 root height, depth-bounded branching, age-5 terminal flower) and ChorusFlowerBlock.generatePlant, as already ported in crates/horizon-world/src/worldgen/chorus_plant.rs and checked by tools/test_chorus_plant_parity.py. There are no worldgen changes here; the estimator reads the biome and placed-feature JSON the generator already exposes.

Self-check

pr_ready (tools/pr_ready.py --quick on Hectors-MacBook-Pro-544, against origin/main at 42ecf0f67, 1 min 16 s)

Check Result
Scope ✅ 5 files, +421 −18
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 365 passed (25 s)
rustfmt ✅ (4 s)
clippy ✅ (1 s)
tests: horizon-client ✅ 1334 passed (44 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Also ran the resource-gated far-terrain tests here with prepared 26.3 data:

HORIZON_TEST_RESOURCES=.local/horizon-client/26.3 \
  cargo test -p horizon-client --lib vanillagen::lod::tests:: -- --include-ignored
# 2 passed (76.5 s)
HORIZON_TEST_RESOURCES=.local/horizon-client/26.3 \
  cargo test -p horizon-client --lib save::tests::saved_far_surface
# 2 passed

Screenshots

Captured in the End at (740, 75, 743), render distance 8, LOD Distance 256. The far islands are LOD terrain; the dark purple stems are chorus plants. The images live on a fork-only screenshots branch so they stay out of this PR's diff.

End LOD chorus panorama

Chorus field crop

Before this change the same unexplored islands showed bare end stone: the direct sampler had no chorus, and real chorus from speculative decoration was filtered out of the far columns.

🤖 Generated with OpenCode


🔄 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/2894 **Author:** [@hectoreccles](https://github.com/hectoreccles) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `lod-chorus-vegetation` --- ### 📝 Commits (2) - [`783c25e`](https://github.com/horizon-rust/horizon/commit/783c25e9bc8f5c3d5940ae3faf3e532b0269f2f1) Draw chorus plants in End LOD terrain - [`33f3347`](https://github.com/horizon-rust/horizon/commit/33f3347d8460621a20efafd6793b55669cd4eb75) Merge main into this branch ### 📊 Changes **5 files changed** (+421 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/lod.rs` (+37 -1) 📝 `crates/horizon-client/src/save.rs` (+47 -3) 📝 `crates/horizon-client/src/vanillagen/lod.rs` (+153 -7) 📝 `crates/horizon-client/src/vanillagen/lod/vegetation.rs` (+183 -6) 📝 `docs/graphics.md` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Hector Eccles's AI agent (DeepSeek V4.1 Flash via OpenCode), not by Hector himself. ## What and why LOD terrain in the End now draws chorus plants, in the same seed-stable way it already drew trees. Before this, the far sampler only read `minecraft:tree`; `minecraft:chorus_plant` was ignored, so unexplored End islands rendered as bare end stone. Real chorus was also generated and then thrown away: the refined, visited and saved far-column summaries kept only motion-blocking/fluid blocks, and chorus is thin and non-solid. - `vanillagen/lod/vegetation.rs`: folds `chorus_plant`'s placement modifiers (`count`, `rarity_filter`, selectors) into the same per-chunk density the tree estimator uses. A seed hash chooses the root in 4×4 cells; the plant is a 2–5 block stem under an age-5 flower, and only on end stone. Cells wider than 4 blocks draw nothing, so a one-block plant never inflates into a coloured slab. - `vanillagen/lod.rs` (`columns`), `lod.rs` (`state_kinds`) and `save.rs` (`decode_lod_surfaces`): keep `chorus_plant` / `chorus_flower` in the refined, visited and saved columns, so real decoration is no longer dropped. - Tests: a deterministic density/height unit test; chorus assertions in the ignored worldgen test; a new End decoration test that compares every raw chorus block with the far columns; chorus columns in the visited-summary and saved-region tests. - `docs/graphics.md`: names chorus and gives it the same approximation caveat as trees. This is visual-only: LOD data never enters gameplay, simulation, lighting or normal saves, and visited/saved blocks keep precedence. ## Vanilla reference `ChorusPlantFeature` (`place`/`grow`: 2–5 root height, depth-bounded branching, age-5 terminal flower) and `ChorusFlowerBlock.generatePlant`, as already ported in `crates/horizon-world/src/worldgen/chorus_plant.rs` and checked by `tools/test_chorus_plant_parity.py`. There are no worldgen changes here; the estimator reads the biome and placed-feature JSON the generator already exposes. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on Hectors-MacBook-Pro-544, against origin/main at 42ecf0f67, 1 min 16 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +421 −18 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 365 passed (25 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (1 s) | | tests: horizon-client | ✅ 1334 passed (44 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Also ran the resource-gated far-terrain tests here with prepared 26.3 data: ```sh HORIZON_TEST_RESOURCES=.local/horizon-client/26.3 \ cargo test -p horizon-client --lib vanillagen::lod::tests:: -- --include-ignored # 2 passed (76.5 s) HORIZON_TEST_RESOURCES=.local/horizon-client/26.3 \ cargo test -p horizon-client --lib save::tests::saved_far_surface # 2 passed ``` ## Screenshots Captured in the End at (740, 75, 743), render distance 8, LOD Distance 256. The far islands are LOD terrain; the dark purple stems are chorus plants. The images live on a fork-only screenshots branch so they stay out of this PR's diff. ![End LOD chorus panorama](https://raw.githubusercontent.com/hectoreccles/horizon/lod-chorus-screenshots/lod-shots/end-lod-3.png) ![Chorus field crop](https://raw.githubusercontent.com/hectoreccles/horizon/lod-chorus-screenshots/lod-shots/chorus-crop-big.png) Before this change the same unexplored islands showed bare end stone: the direct sampler had no chorus, and real chorus from speculative decoration was filtered out of the far columns. 🤖 Generated with [OpenCode](https://opencode.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:07 +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#4677
No description provided.