[PR #2972] [MERGED] Show Nausea on the player: spin the view and draw the swirl #4727

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2972
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/player-nausea-eyeblossom


📝 Commits (1)

  • 7f6e8b6 Spin the level view and draw the Nausea swirl for the player

📊 Changes

9 files changed (+107 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/camera.rs (+21 -0)
📝 crates/horizon-client/src/effects.rs (+4 -0)
📝 crates/horizon-client/src/game.rs (+8 -1)
📝 crates/horizon-client/src/game/fov.rs (+25 -1)
📝 crates/horizon-client/src/game/render_tick.rs (+8 -2)
📝 crates/horizon-client/src/gfx.rs (+4 -1)
📝 crates/horizon-client/src/gfx/native_post.rs (+3 -2)
📝 crates/horizon-client/src/gfx/pack_uniforms.rs (+2 -1)
📝 crates/horizon-client/src/screen_effects.rs (+32 -0)

📄 Description

What and why

  • A player with Nausea saw no camera wobble and no swirl overlay. The Nausea input to the HUD was hard-coded to 0, and the level projection had no spin at all, so a nether portal also never spun the view.
  • The level projection now gets the portal and Nausea spin: the larger of the two intensities, scaled by Distortion Effects squared, turning at the vanilla speed (20 degrees a tick in a portal, 7 with Nausea).
  • Nausea's fade in (150 ticks) and fade out (20 ticks, starting 60 ticks before the end) follow the vanilla blend state.
  • The swirl overlay gets the real Nausea blend. It shows only when Distortion Effects is below 100 percent, as vanilla does.
  • The first-person hand keeps its own projection, so it does not spin. The projection shader packs and post effects read includes the spin.
  • This PR also makes the render tick read the Distortion Effects option (screenEffectScale) for the HUD overlay. The Skin/Online/Sound options PR only unlocks the slider.
  • Eyeblossoms: no change. Vanilla 26.3 gives a player no effect for stepping into one (see below).

Vanilla reference

  • GameRenderer.java:657-668: spin intensity max(portal, nausea) * scale^2, skew and rotation, applied to the projection after the bob.
  • LocalPlayer.java:802, 997-1011: tickSpinningEffect and getSpinningEffectAngle.
  • MobEffects.java:57: Nausea blend 150 in, 20 out, 60 advance. MobEffectInstance.java:178 (endsWithin), 363-404 (BlendState).
  • Hud.java:337-344: Nausea overlay only when the Distortion scale is below 1. Hud.java:1246: extractConfusionOverlay.
  • EyeblossomBlock.java:89-96: entityInside only gives bees poison. The blindness (open) and nausea (closed) values are suspicious-stew effects from FlowerBlock, not step-in effects, so no player effect is added.

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 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/2972 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/player-nausea-eyeblossom` --- ### 📝 Commits (1) - [`7f6e8b6`](https://github.com/horizon-rust/horizon/commit/7f6e8b634e2699e665e88c3f373477af979a7d8d) Spin the level view and draw the Nausea swirl for the player ### 📊 Changes **9 files changed** (+107 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/camera.rs` (+21 -0) 📝 `crates/horizon-client/src/effects.rs` (+4 -0) 📝 `crates/horizon-client/src/game.rs` (+8 -1) 📝 `crates/horizon-client/src/game/fov.rs` (+25 -1) 📝 `crates/horizon-client/src/game/render_tick.rs` (+8 -2) 📝 `crates/horizon-client/src/gfx.rs` (+4 -1) 📝 `crates/horizon-client/src/gfx/native_post.rs` (+3 -2) 📝 `crates/horizon-client/src/gfx/pack_uniforms.rs` (+2 -1) 📝 `crates/horizon-client/src/screen_effects.rs` (+32 -0) </details> ### 📄 Description ## What and why - A player with Nausea saw no camera wobble and no swirl overlay. The Nausea input to the HUD was hard-coded to 0, and the level projection had no spin at all, so a nether portal also never spun the view. - The level projection now gets the portal and Nausea spin: the larger of the two intensities, scaled by Distortion Effects squared, turning at the vanilla speed (20 degrees a tick in a portal, 7 with Nausea). - Nausea's fade in (150 ticks) and fade out (20 ticks, starting 60 ticks before the end) follow the vanilla blend state. - The swirl overlay gets the real Nausea blend. It shows only when Distortion Effects is below 100 percent, as vanilla does. - The first-person hand keeps its own projection, so it does not spin. The projection shader packs and post effects read includes the spin. - This PR also makes the render tick read the Distortion Effects option (`screenEffectScale`) for the HUD overlay. The Skin/Online/Sound options PR only unlocks the slider. - Eyeblossoms: no change. Vanilla 26.3 gives a player no effect for stepping into one (see below). ## Vanilla reference - `GameRenderer.java:657-668`: spin intensity `max(portal, nausea) * scale^2`, skew and rotation, applied to the projection after the bob. - `LocalPlayer.java:802`, `997-1011`: `tickSpinningEffect` and `getSpinningEffectAngle`. - `MobEffects.java:57`: Nausea blend 150 in, 20 out, 60 advance. `MobEffectInstance.java:178` (`endsWithin`), `363-404` (`BlendState`). - `Hud.java:337-344`: Nausea overlay only when the Distortion scale is below 1. `Hud.java:1246`: `extractConfusionOverlay`. - `EyeblossomBlock.java:89-96`: `entityInside` only gives bees poison. The blindness (open) and nausea (closed) values are suspicious-stew effects from `FlowerBlock`, not step-in effects, so no player effect is added. ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <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:30 +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#4727
No description provided.