[GH-ISSUE #5551] OBJ and NeoForge composite model loaders, and models no blockstate names #1728

Open
opened 2026-11-02 15:49:13 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @JuanLuci on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5551

Summary

Teach horizon-assets the two NeoForge model loaders that ported mods ship, neoforge:obj and neoforge:composite, and let a mod name extra models to bake that no blockstate or item refers to.

Why

  • OBJ: Immersive Engineering ships most of its machines and multiblocks as OBJ models, and so do its add-ons (Immersive Petroleum); Create uses OBJ for some parts. A port that keeps the mod's own assets cannot draw these blocks today: horizon-assets has no OBJ loader.
  • Composite: neoforge:composite joins several child models into one block model, each with its own render type (a solid frame with a translucent window, for example).
  • Models no blockstate names: mods draw parts of a block from code (Create's partial models for shafts, cogs and heads; any block entity drawing a lid, a needle or a blade). The model catalog bakes only what blockstates and items reach, so those parts never get baked.

Proposal

  • neoforge:obj: model and mtl_override paths, flip_v, automatic_culling, shade_quads, emissive_ambient, materials mapped to the block atlas sprites by their texture keys; baked into the same quads as JSON models.
  • neoforge:composite: children (each a model or inline element list, with its own render_type), item_render_order.
  • A content mod lists extra models to bake, e.g. "models": ["create:block/shaft_half"] in a block declaration or the mod's manifest; a native helper returns a baked model by id for the drawing hook (#5548).

How I did it on my fork

My fork has both loaders and baked partial models: horizon-assets/src/obj.rs and composite models (686b69783, f097557ae), partial_models in models/catalog.rs. My Create port draws with them.

Originally created by @JuanLuci on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5551 ## Summary Teach horizon-assets the two NeoForge model loaders that ported mods ship, `neoforge:obj` and `neoforge:composite`, and let a mod name extra models to bake that no blockstate or item refers to. ## Why - OBJ: Immersive Engineering ships most of its machines and multiblocks as OBJ models, and so do its add-ons (Immersive Petroleum); Create uses OBJ for some parts. A port that keeps the mod's own assets cannot draw these blocks today: horizon-assets has no OBJ loader. - Composite: `neoforge:composite` joins several child models into one block model, each with its own render type (a solid frame with a translucent window, for example). - Models no blockstate names: mods draw parts of a block from code (Create's partial models for shafts, cogs and heads; any block entity drawing a lid, a needle or a blade). The model catalog bakes only what blockstates and items reach, so those parts never get baked. ## Proposal - `neoforge:obj`: `model` and `mtl_override` paths, `flip_v`, `automatic_culling`, `shade_quads`, `emissive_ambient`, materials mapped to the block atlas sprites by their texture keys; baked into the same quads as JSON models. - `neoforge:composite`: `children` (each a model or inline element list, with its own `render_type`), `item_render_order`. - A content mod lists extra models to bake, e.g. `"models": ["create:block/shaft_half"]` in a block declaration or the mod's manifest; a native helper returns a baked model by id for the drawing hook (#5548). ## How I did it on my fork My fork has both loaders and baked partial models: `horizon-assets/src/obj.rs` and composite models ([686b69783](https://github.com/JuanLuci/starling/commit/686b69783), [f097557ae](https://github.com/JuanLuci/starling/commit/f097557ae)), `partial_models` in `models/catalog.rs`. My Create port draws with them.
Author
Owner

@UMCEKO commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim — taking the two model loaders (OBJ with object visibility, and composite) for the factories and transmitters of the mods I'm testing; the extra models no blockstate names stay open for whoever wants them.

<!-- gh-comment-id:6582657167 --> @UMCEKO commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim — taking the two model loaders (OBJ with object visibility, and composite) for the factories and transmitters of the mods I'm testing; the extra models no blockstate names stay open for whoever wants them.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

🤖 Claims: refused, taking the two loaders neoforge:obj with visibility neoforg isn't understood here. Use /claim or /unclaim (the trusted reviewers: /unclaim @login). (asked by @UMCEKO)

<!-- gh-comment-id:6582663848 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, `taking the two loaders neoforge:obj with visibility neoforg` isn't understood here. Use `/claim` or `/unclaim` (the trusted reviewers: `/unclaim @login`). (asked by @UMCEKO)
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#1728
No description provided.