Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine Model Engine
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 35
    • Issues 35
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model EngineModel Engine
  • Issues
  • #46

Closed
Open
Created Feb 02, 2023 by Michael Bacon@Jeck

Atlas generation ignores minecraft: namespace.

Per our discussion on the discord;

When meg generates an atlases/blocks.json file with automatic atlas directives, it ignores any textures inside the the minecraft namespace. It turns out that many bbmodel files online use the minecraft namespace as their own, and these files would need to be read into the atlas whether or not they're generated automatically by meg.

As an example, the MCPets patreon welcome gift includes a cat that plays with a ball of yarn. The yarn itself is a bbmodel file with the following texture block:

    "textures": [
        {
            "path": "C:\\<clipped for clarity>\\Premade Resource Pack\\resource pack\\assets\\minecraft\\textures\\nocsy\\toffy_yarn.png",
            "name": "toffy_yarn.png",
            "folder": "nocsy",
            "namespace": "minecraft",
            "id": "2",
            "particle": false,
            "render_mode": "default",
            "visible": true,
            "mode": "bitmap",
            "saved": true,
            "uuid": "328e8016-b785-b0a7-0f07-9ea5886f73d7",
            "relative_path": "../../../Premade Resource Pack/resource pack/assets/minecraft/textures/nocsy/toffy_yarn.png",
            "source": "data:image/png;base64,<removed for clarity>"
        }
    ]

As it is right now, the texture files in this "minecraft/textures/nocsy" subdirectory get ignored.

The solution is to add a source to the generated atlas/blocks.json file that includes this directory.

Edited Feb 02, 2023 by Michael Bacon
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking