[GH-ISSUE #7524] Proposal: Deep rendering & animation hooks for first-person view-model replacement #3282

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

Originally created by @bartekchomik26-dotcom on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7524

Context

Recent work (like the first-person hand pose hook in #7305 and the FOV modifier in #7330) has unlocked basic procedural sway and pose adjustments. However, a true 1:1 port of animation mods like Punchy! is still blocked.

Punchy does not just modify the vanilla hand's pose; it replaces the vanilla first-person view-model with its own custom renderer, drives its own animation state machine, and syncs effects to specific frames. We need dedicated, stable contracts at these specific call sites to make this possible without committing to a massive horizon_revision-pinned source patch.

1. Custom View-Model Renderer Replacement

Unmet behavior: Rendering custom 3D arms and detailed item models instead of the vanilla 2D/flat items.
Missing contract: A hook to replace or override the first-person hand/item renderer entirely.
Precise call site: The engine's render_first_person path. A mod needs to be able to register a custom render callback that takes over drawing the view-model, bypassing the default vanilla renderer.

2. Animation State Machine Override

Unmet behavior: Punchy uses a complex state machine for walking, sprinting, swimming, climbing, elytra flight, and attacking, with smooth transitions between them.
Missing contract: An animation state hook that exposes the current player state and allows a mod to override the active animation.
Precise call site: The player tick/render update loop where the engine calculates the current pose. The hook should expose the player's movement state and allow returning a custom animation frame/state.

3. Frame-Synced Effects

Unmet behavior: Punchy syncs hits, sounds, and particles to exact animation frames (e.g., the "tap mining" system where the hit sound plays exactly when the pickaxe strikes).
Missing contract: Renderer-relative particle and sound spawn hooks.
Precise call site: The particle and sound emission queues. Mods need a way to tie an effect to a specific keyframe of an animation rather than a fixed game tick.


Why this is a precise contract request:
These are not generic "on render" events. They are specific interventions required to own the rendering and animation pipeline for the local player, just as a custom entity renderer would for a mob.

Originally created by @bartekchomik26-dotcom on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7524 **Context** Recent work (like the first-person hand pose hook in #7305 and the FOV modifier in #7330) has unlocked basic procedural sway and pose adjustments. However, a true 1:1 port of animation mods like Punchy! is still blocked. Punchy does not just modify the vanilla hand's pose; it replaces the vanilla first-person view-model with its own custom renderer, drives its own animation state machine, and syncs effects to specific frames. We need dedicated, stable contracts at these specific call sites to make this possible without committing to a massive `horizon_revision`-pinned source patch. ### 1. Custom View-Model Renderer Replacement **Unmet behavior:** Rendering custom 3D arms and detailed item models instead of the vanilla 2D/flat items. **Missing contract:** A hook to replace or override the first-person hand/item renderer entirely. **Precise call site:** The engine's `render_first_person` path. A mod needs to be able to register a custom render callback that takes over drawing the view-model, bypassing the default vanilla renderer. ### 2. Animation State Machine Override **Unmet behavior:** Punchy uses a complex state machine for walking, sprinting, swimming, climbing, elytra flight, and attacking, with smooth transitions between them. **Missing contract:** An animation state hook that exposes the current player state and allows a mod to override the active animation. **Precise call site:** The player tick/render update loop where the engine calculates the current pose. The hook should expose the player's movement state and allow returning a custom animation frame/state. ### 3. Frame-Synced Effects **Unmet behavior:** Punchy syncs hits, sounds, and particles to exact animation frames (e.g., the "tap mining" system where the hit sound plays exactly when the pickaxe strikes). **Missing contract:** Renderer-relative particle and sound spawn hooks. **Precise call site:** The particle and sound emission queues. Mods need a way to tie an effect to a specific keyframe of an animation rather than a fixed game tick. --- **Why this is a precise contract request:** These are not generic "on render" events. They are specific interventions required to own the rendering and animation pipeline for the local player, just as a custom entity renderer would for a mob.
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#3282
No description provided.