-
Notifications
You must be signed in to change notification settings - Fork 14
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
RGBA Color masking not works after optimization #76
Comments
Yeah idk why its not doing that for you. My own avatar has a material property animation getting correctly remapped when merged into my main mesh and a different material. You could try to provide me with some more info and maybe something sticks out:
|
Thanks. From this I can tell that the shader portion indeed does generate code to handle the animated material property and the only thing that seems to be missing is that the path change doesn't get applied to the animation. |
Ok I figured out the issue. For the record, material property animations with WD ON are super cursed since the default value is whatever the first material has and if the material doesn't even have the property the default value is 0. |
Thank you. So is there anything I could do to fix it or it could be avoided by your side in the future. |
If you can change your animator workflow to WD OFF then it will probably work. Idk if that's viable to do for you. Yes I will be trying to fix this on my side but no idea how long that will take me. |
I need MMD compability so that might not be possible... Hope you could make it. |
Ok, I looked more into this and now I am even more confused. It seems like my optimizer already handles WD ON material property animations fine? All my attempts to break it similar to your setup failed (as in they all worked the same after optimization as before). And looking at your files again they also seem to all be generated correctly, I must have missed the relevant property the last time. So now I don't have a clue why it isn't working for you. Maybe I am missing something crucial or the issue comes from some highly complex interactions that are very specific to your avatar in particular. |
I thought it has something to do with a object with more than one material. When one object has two materials and both use poiyomi, the animated parts of shaders must both be enabled. Try the following steps to see whether you could reproduce it.
|
I also want to chime in; you can do your animations like WD off workflow with WD On since you are just explicit about the reset animation/ default animation. I do that with all my avatars to allow people to choose WD Off or On, and it won't break. |
I have made animations to change the value of RGBA Color masking of poiyomi, as shown in the screenshot. It could be changed into blue, white or black. However, after optimization, the animation stops to work. This happens when I click on
Merge Skinned Meshes
. Is it a bug or RGBA color masking just not work with optimizer?Unity 2022
SDK 3.5.0
Optimizer 3.3.4
edit: I noticed that it is not caused by optimizer
The text was updated successfully, but these errors were encountered: