[GH-ISSUE #2014] No ender dragon and glowing effect does not work #594

Closed
opened 2026-11-02 15:40:20 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2014

**What I did: **Go to the end and put the glowing effect to all entities
What happened: There was not ender dragon (just the bossbar) and glowing effect didn't work
What I expected: See the ender dragon and glowing effect
Horizon version: 0.2.66
**OS, CPU, GPU: **Windows 10 LTSC 21H2 | i7 12650H | RTX 3050

Reported on Discord by Procatin0 in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2014 > **What I did: **Go to the end and put the glowing effect to all entities > **What happened:** There was not ender dragon (just the bossbar) and glowing effect didn't work > **What I expected:** See the ender dragon and glowing effect > **Horizon version:** 0.2.66 > **OS, CPU, GPU: **Windows 10 LTSC 21H2 | i7 12650H | RTX 3050 Reported on Discord by **Procatin0** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564117359579635792) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [Diseno_sin_titulo.mp4](https://cdn.discordapp.com/attachments/1564117359579635792/1564117360305111050/Diseno_sin_titulo.mp4?ex=6ae0194e&is=6adec7ce&hm=28297cebe137a579b4dfa8b7dfa55424a66b0b760ee59c0430a669b9bacde207&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:20 +07:00
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. The invisible-dragon part overlaps #1530 and is addressed by still-open PR #2049. The glowing-effect failure is an additional symptom not covered by that PR. Recommend moving dragon tracking to #1530 and retaining/narrowing this issue for glowing, rather than closing the whole report as a duplicate.

<!-- gh-comment-id:6418492208 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. The invisible-dragon part overlaps #1530 and is addressed by still-open PR #2049. The glowing-effect failure is an additional symptom not covered by that PR. Recommend moving dragon tracking to #1530 and retaining/narrowing this issue for glowing, rather than closing the whole report as a duplicate.
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

The missing dragon is fixed on main by #2049 (the server thread's client now draws it). The glowing outline is still open: Horizon has no entity outline drawing yet, so the Glowing effect shows nothing on any mob.

<!-- gh-comment-id:6426556272 --> @kacpherek commented on GitHub (Oct 26, 2026): The missing dragon is fixed on main by #2049 (the server thread's client now draws it). The glowing outline is still open: Horizon has no entity outline drawing yet, so the Glowing effect shows nothing on any mob.
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

Thanks Procatin0 for the report! A fix is up in #2537: glowing entities now get vanilla's outline (white, or their team colour), visible through walls. It's waiting for review.

<!-- gh-comment-id:6428412190 --> @kacpherek commented on GitHub (Oct 26, 2026): Thanks Procatin0 for the report! A fix is up in #2537: glowing entities now get vanilla's outline (white, or their team colour), visible through walls. It's waiting for review.
Author
Owner

@levzzz5154 commented on GitHub (Oct 27, 2026):

🤖 Agent: this issue has two parts, and they are in two different places.

The glowing effect is already implemented in main: #2537 ("Draw entity
outlines for the Glowing effect") landed on 2026-10-27, after this report. It
is vanilla's outline, not an approximation of it:

  • The glowing entities are drawn into the outline target as flat silhouettes
    in their team colour (white without a team), with no depth test, so they
    show through walls — crates/horizon-client/src/gfx/entity_outline.rs
    (RenderPipelines.OUTLINE_NO_CULL and core/rendertype_outline.fsh).
  • Over it runs the entity_outline post chain — entity_sobel, then
    entity_outline_box_blur across and up — and the blended blit onto the
    frame after the hand (LevelRenderer.entityOutlineTarget,
    executeOutline and blitEntityOutline).
  • The state comes from vanilla's shared flag 6: the client reads it from the
    entity data (m.glowing = flags & 0x40 != 0 in
    crates/horizon-client/src/game/remote.rs), and the server sends it for
    mobs and item entities. The outline colour is the entity's team colour
    (Entity.getTeamColor).

So on a current build the outline is there; the report was made on v0.2.68,
before that pull request. I could not check it on screen here (no GPU in this
environment), so I am reporting the code paths rather than a screenshot.

The missing dragon is the same bug as #2083 and is fixed by
https://github.com/ludovic111/horizon/pull/2765: the client draws the dragon
from its own state (game/dragon.rs), but a server's dragon only sent its
health, its phase and its damage, so the dragon the client draws kept the
position it had when the server added the entity — the server's dragon flew
around the island while the client drew it where it had spawned. The
server's move packets now move the dragon the client draws, and a server's
dragon is no longer flown by the client's own phase machine.

Evidence for the dragon (from the pull request):

  • cargo test -p horizon-client --bin horizon-client -- dragon::tests

    running 7 tests
    test game::dragon::tests::a_quarter_of_its_health_while_perched_makes_it_take_off ... ok
    test game::dragon::tests::a_perched_dragon_shrugs_arrows_off ... ok
    test game::dragon::tests::a_remote_dragon_follows_the_server ... ok
    test game::dragon::tests::the_cooldown_lets_only_the_excess_through ... ok
    test game::dragon::tests::parts_and_sources ... ok
    test game::dragon::tests::the_dragon_targets_any_player_it_can_attack ... ok
    test game::dragon::tests::explosions_hit_each_part_by_its_exposure ... ok
    
    test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 129 filtered out; finished in 0.00s
    

Vanilla references followed: Entity.isCurrentlyGlowing,
LivingEntity.isCurrentlyGlowing and updateGlowingStatus (the shared flag
6), Entity.getTeamColor, Minecraft.shouldEntityAppearGlowing,
EntityRenderer.extractRenderState (outlineColor),
LivingEntityRenderer.getRenderType (the outline only when invisible),
RenderTypes.outline, LevelRenderer.entityOutlineTarget and
blitEntityOutline; and for the dragon ClientboundMoveEntityPacket,
EnderDragon.aiStep (the server flies it), EnderDragon.DATA_PHASE_ID and
EnderDragonRenderer.

The model path is fine — the numbers. The dragon's model is in the prepared
resources, the client's atlas holds its textures, and the model draws the
whole dragon:

  • the resources' entity-models.json holds minecraft:ender_dragon#main (one
    of 361 models) with 37 parts and 390 polygons — vanilla's own
    EnderDragonModel.createBodyLayer(), which builds the dragon in code
    instead of reading a model file;

  • mobs::render::draw on that model gives 1560 vertices (390 polygons ×
    4) in a box of 15.5 × 3.5 × 16.3 blocks, the dragon's size. The end
    crystal, as a control, gives 96 vertices in a 0.75 × 1.75 × 0.75 box;

  • the atlas holds entity/enderdragon/dragon, entity/enderdragon/dragon_eyes
    and entity/enderdragon/dragon_fireball (of 4456 sprites), the three
    textures EnderDragonRenderer uses (DRAGON_TEXTURE_LOCATION,
    DRAGON_EYES_LOCATION and the fireball's);

  • the entity model parity harness reports the dragon as the one layer
    "without a Horizon species":

    0 cases compared over 0 layers
    layers without a Horizon species: minecraft:ender_dragon#main
    

    because Horizon draws the dragon with its own path (game/dragon.rs, which
    follows EnderDragonRenderer and EnderDragonModel.setupAnim) and not with
    the generic species path the harness compares.

So the dragon's model is baked, loaded and drawn; what was missing was the
dragon's place on a world a server flies.

The account has no permission to close this issue, so the maintainer decides
when it lands.

<!-- gh-comment-id:6441118169 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: this issue has two parts, and they are in two different places. **The glowing effect** is already implemented in main: #2537 ("Draw entity outlines for the Glowing effect") landed on 2026-10-27, after this report. It is vanilla's outline, not an approximation of it: - The glowing entities are drawn into the outline target as flat silhouettes in their team colour (white without a team), with no depth test, so they show through walls — `crates/horizon-client/src/gfx/entity_outline.rs` (`RenderPipelines.OUTLINE_NO_CULL` and `core/rendertype_outline.fsh`). - Over it runs the `entity_outline` post chain — `entity_sobel`, then `entity_outline_box_blur` across and up — and the blended blit onto the frame after the hand (`LevelRenderer.entityOutlineTarget`, `executeOutline` and `blitEntityOutline`). - The state comes from vanilla's shared flag 6: the client reads it from the entity data (`m.glowing = flags & 0x40 != 0` in `crates/horizon-client/src/game/remote.rs`), and the server sends it for mobs and item entities. The outline colour is the entity's team colour (`Entity.getTeamColor`). So on a current build the outline is there; the report was made on v0.2.68, before that pull request. I could not check it on screen here (no GPU in this environment), so I am reporting the code paths rather than a screenshot. **The missing dragon** is the same bug as #2083 and is fixed by https://github.com/ludovic111/horizon/pull/2765: the client draws the dragon from its own state (`game/dragon.rs`), but a server's dragon only sent its health, its phase and its damage, so the dragon the client draws kept the position it had when the server added the entity — the server's dragon flew around the island while the client drew it where it had spawned. The server's move packets now move the dragon the client draws, and a server's dragon is no longer flown by the client's own phase machine. Evidence for the dragon (from the pull request): * `cargo test -p horizon-client --bin horizon-client -- dragon::tests` ``` running 7 tests test game::dragon::tests::a_quarter_of_its_health_while_perched_makes_it_take_off ... ok test game::dragon::tests::a_perched_dragon_shrugs_arrows_off ... ok test game::dragon::tests::a_remote_dragon_follows_the_server ... ok test game::dragon::tests::the_cooldown_lets_only_the_excess_through ... ok test game::dragon::tests::parts_and_sources ... ok test game::dragon::tests::the_dragon_targets_any_player_it_can_attack ... ok test game::dragon::tests::explosions_hit_each_part_by_its_exposure ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 129 filtered out; finished in 0.00s ``` Vanilla references followed: `Entity.isCurrentlyGlowing`, `LivingEntity.isCurrentlyGlowing` and `updateGlowingStatus` (the shared flag 6), `Entity.getTeamColor`, `Minecraft.shouldEntityAppearGlowing`, `EntityRenderer.extractRenderState` (`outlineColor`), `LivingEntityRenderer.getRenderType` (the outline only when invisible), `RenderTypes.outline`, `LevelRenderer.entityOutlineTarget` and `blitEntityOutline`; and for the dragon `ClientboundMoveEntityPacket`, `EnderDragon.aiStep` (the server flies it), `EnderDragon.DATA_PHASE_ID` and `EnderDragonRenderer`. **The model path is fine — the numbers.** The dragon's model is in the prepared resources, the client's atlas holds its textures, and the model draws the whole dragon: * the resources' `entity-models.json` holds `minecraft:ender_dragon#main` (one of 361 models) with 37 parts and 390 polygons — vanilla's own `EnderDragonModel.createBodyLayer()`, which builds the dragon in code instead of reading a model file; * `mobs::render::draw` on that model gives **1560 vertices** (390 polygons × 4) in a box of 15.5 × 3.5 × 16.3 blocks, the dragon's size. The end crystal, as a control, gives 96 vertices in a 0.75 × 1.75 × 0.75 box; * the atlas holds `entity/enderdragon/dragon`, `entity/enderdragon/dragon_eyes` and `entity/enderdragon/dragon_fireball` (of 4456 sprites), the three textures `EnderDragonRenderer` uses (`DRAGON_TEXTURE_LOCATION`, `DRAGON_EYES_LOCATION` and the fireball's); * the entity model parity harness reports the dragon as the one layer "without a Horizon species": ``` 0 cases compared over 0 layers layers without a Horizon species: minecraft:ender_dragon#main ``` because Horizon draws the dragon with its own path (`game/dragon.rs`, which follows `EnderDragonRenderer` and `EnderDragonModel.setupAnim`) and not with the generic species path the harness compares. So the dragon's model is baked, loaded and drawn; what was missing was the dragon's *place* on a world a server flies. The account has no permission to close this issue, so the maintainer decides when it lands.
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#594
No description provided.