Extend texture_pile to allow changing the model - #3531
Draft
Argmaster wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
So, there are certain complexities that come with varying the texture and the model at once. On one hand its useful to be able to set all (up to 16) textures and all (up to 16) models separately, but in maaaany cases its really inconvenient to do so (and eg. make the models manually in blender). I decided to opt for 4 different behavior modes of this rotation mode:
.textureOnly- this is what we had before, switching between textures fromtexture0and on, based on data..modelOnly- this is symmetric opposite oftextureOnlywhere you can only specify different models, but same texture is used in all cases..modelReposition- this is a fancy mode where single texture is used and a single model, but the model is multiplicated with every state; positions of copies are specified manually in zon file via offsets. doesn't work for whatever reason, I think I need help with this lol; only the last model from array of merged models shows uptextureAndModel- in this mode you can specify both texture and model for each state, the most flexible option, the most work too.Resolves: #1255