[PR #7646] Correct submodel attach points and pivot parity with Fresh Animations #7735

Open
opened 2026-11-03 07:23:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7646
Author: @kaicsm
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: main


📝 Commits (2)

  • 49b7e09 fix(cem): correct part attach and pivot parity with Fresh Animations
  • 96e4a59 chore: add resourcepacks to .gitignore

📊 Changes

8 files changed (+741 additions, -161 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 crates/horizon-client/src/game/remote.rs (+23 -3)
📝 crates/horizon-client/src/mobs.rs (+4 -0)
📝 crates/horizon-client/src/mobs/cem.rs (+320 -30)
📝 crates/horizon-client/src/mobs/cem_anim.rs (+77 -13)
📝 crates/horizon-client/src/mobs/living.rs (+7 -0)
📝 crates/horizon-client/src/mobs/render.rs (+104 -42)
📝 crates/horizon-optifine/src/cem/model.rs (+205 -73)

📄 Description

What and why

Fixes CEM part rendering divergences that caused visibly detached parts when using resource packswith CEM models such as Fresh Animations.

Root cause: submodel attach points were being applied in thewrong reference frame, and the translate/rotate ordering in the parthierarchy did not match the behavior expected by OptiFine CEM, causingthe offset to accumulate with parent rotation

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Screenshots

Before

horse wrong fa fox wrong fa

Now

fixed Screenshot 2026-11-02 154839

🔄 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/7646 **Author:** [@kaicsm](https://github.com/kaicsm) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`49b7e09`](https://github.com/horizon-rust/horizon/commit/49b7e096be5e0d3fc3ee2728c57a5dc222f19731) fix(cem): correct part attach and pivot parity with Fresh Animations - [`96e4a59`](https://github.com/horizon-rust/horizon/commit/96e4a59b54dd776e4b42d415e68f26f11a0d198b) chore: add resourcepacks to .gitignore ### 📊 Changes **8 files changed** (+741 additions, -161 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+23 -3) 📝 `crates/horizon-client/src/mobs.rs` (+4 -0) 📝 `crates/horizon-client/src/mobs/cem.rs` (+320 -30) 📝 `crates/horizon-client/src/mobs/cem_anim.rs` (+77 -13) 📝 `crates/horizon-client/src/mobs/living.rs` (+7 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+104 -42) 📝 `crates/horizon-optifine/src/cem/model.rs` (+205 -73) </details> ### 📄 Description ## What and why Fixes CEM part rendering divergences that caused visibly detached parts when using resource packswith CEM models such as Fresh Animations. Root cause: submodel attach points were being applied in thewrong reference frame, and the translate/rotate ordering in the parthierarchy did not match the behavior expected by OptiFine CEM, causingthe offset to accumulate with parent rotation ## Kind <!-- Tick one: it sets the pull request's label (CONTRIBUTING.md "Pull requests"). --> - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Screenshots ## Before <img width="1272" height="748" alt="horse wrong fa" src="https://github.com/user-attachments/assets/199ce002-4dba-4cda-9138-4e6c46791d8d" /> <img width="1272" height="747" alt="fox wrong fa" src="https://github.com/user-attachments/assets/b28d6a38-f5a6-42e3-b4e9-5441b30b7da4" /> ## Now <img width="1273" height="750" alt="fixed " src="https://github.com/user-attachments/assets/58336cfa-2cde-488f-8f98-8dbd6e022202" /> <img width="1282" height="746" alt="Screenshot 2026-11-02 154839" src="https://github.com/user-attachments/assets/107687f8-7545-44b1-be7c-dab6b8f799c9" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7735
No description provided.