Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an entry to RSI meta.json for controlling RSI atlas grouping #5249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ElectroJr
Copy link
Contributor

This adds an "atlasGroup" integer to the RSI meta.json that is intended to allow RSIs to try and control how they are inserted into the RSI atlases. Currently this doesn't actually ensure that each "group" has its own atlas, but ideally that's what it would do eventually (rectangle packing when). Currently its mainly useful for trying to prevent large & niche RSIs from taking up space in the main atlas.

Comment on lines +188 to +194
},
"atlasGroup": {
"$id": "#/properties/atlasGroup",
"default": "",
"description": "An integer that is used to group RSIs into the same texture atlas. Defaults to 0. Negative values prevent the RSI from being put into a larger atlas.",
"title": "atlasGroup",
"type": "integer"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure how the RSI schema validator works, but hopefully this is right?

Copy link
Member

@PJB3005 PJB3005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I'm a fan of this being controlled with an int, that seems like an organizational mess.

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.

None yet

2 participants