Skip to content

ModelOverride Offset#1083

Open
RuffledPlume wants to merge 2 commits into
117HD:masterfrom
RuffledPlume:Model-Override-Offset-2
Open

ModelOverride Offset#1083
RuffledPlume wants to merge 2 commits into
117HD:masterfrom
RuffledPlume:Model-Override-Offset-2

Conversation

@RuffledPlume
Copy link
Copy Markdown
Contributor

JSON Added for the Model Overrides:

      "modelOffsetRelative": {
        "type": "boolean",
        "description": "Applies model offset relative to the models orientation."
      },
      "modelOffset": {
        "type": "array",
        "description": "xyz offset",
        "items": {
          "type": "integer"
        }
      },

@RuffledPlume RuffledPlume force-pushed the Model-Override-Offset-2 branch from 53ab9c5 to f739d25 Compare May 16, 2026 22:14
@aHooder
Copy link
Copy Markdown
Member

aHooder commented May 17, 2026

I think respecting model orientation should be on by default, but it doesn't hurt that it's configurable.

The preOrientation stuff is tricky though. You can go check the tables in the Canifis bar I think, if you want to test how that works. I believe in this case, we'll want to subtract preOrientation from the orientation, or perhaps disregard it entirely, not sure. If I remember correctly, preOrientation is rotation applied to the model before it reaches us, as in it's already applied to the vertex data. That's why we pass in preOrientation to UV calculations, so they can invert the rotation before computing UVs from a reliable base orientation for the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants