![]() ![]() The 'burning_skull.png' is just a control image to show that animations work for an 'a' = 'b' ratio ('1:1') paintings. Hopefully this bug gets patched in the next update.Īs for the map and images I've attached. The graphics engine still thinks all animations for paintings require a '1:1' ratio, which is why normal square paintings still work, but anything that isn't '1:1' doesn't work without some alterations. What's going on is we are changing the ratio for each frame to be '1:1' instead of whatever 'a:b' ratio it was. Shrink the x-axis of the animation image to the NEW_X size of pixels, keeping the y-axis the same.Now that the image is sized up, we need to get the size that we need to size down to, which is just PROTO_X multiplied by 'a', let's call this NEW_X.So, stretch the entire animation image by multiplying 'a'. quality would be lost, so we need to size up by 'a' first. Take the size of the y-axis in pixels divided by the number of frames (this gives you the size you need to shrink the x-axis), let's call this PROTO_X.So in order to get an image such as a '4:3' painting to animate properly in game, it needs to be first stretched then resized as follows. for images where 'a' is larger than 'b', things get tricky Now that image should animate and look right instead of stretched. Stretch the x-axis of the animation image to the NEW_X size of pixels, keeping the y-axis the same.Take the size of the y-axis in pixels divided by the number of frames (this gives you the size you need to stretch the x-axis), let's call this NEW_X.Note how many frames you made for the painting, and note the size of the y-axis in pixels.So in order to get an image such as a '1:2' painting to animate properly in game, it needs to be resized as follows. When 'a' is smaller than 'b', you can do the following The file named "Animation Painting Bug Demonstration.zip" contains the resourcepack and and the world file, otherwise, I've attached some GIF images that show the problem and the work around 'fix'.įor a work around until this is fixed, let's say each image has a ratio 'a:b' where 'a' is width and 'b' is height. To see this bug in action, I've attached the world and resource pack that demonstrates this bug, and the files that I changed to show how it fails, and how to "fix" it. I found out the reason is because Minecraft still thinks the size of each frame needs to be in a '1:1' ratio. Whenever trying to make any animation for paintings with a ratio that isn't '1:1', the animation either won't work or is stretched. This bug affects versions 1.14 and above.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |