JannisX11 / blockbench

Blockbench - A low poly 3D model editor
https://www.blockbench.net
GNU General Public License v3.0
3.42k stars 293 forks source link

Animated textures support for optifine models #2410

Open aurora-1-2-3 opened 4 months ago

aurora-1-2-3 commented 4 months ago

Detailed description of your suggestion

Animated textures are possible but Blockbench doesn't support it

Pretty docs: https://optifine.readthedocs.io/custom_animations.html

Github docs: https://github.com/sp614x/optifine/blob/master/OptiFineDoc/doc/custom_animations.txt

Example: (in-game)

https://github.com/JannisX11/blockbench/assets/139906198/cab7e1a3-8988-453c-adc7-e80c4fda6c79

https://www.youtube.com/watch?app=desktop&v=Go9nwkLvyFs&ab_channel=UncleJam

Issues:

1. When you try to reframe the animations tiles through the flipbook in the Optifine format, it reverts its self to 1 ### **Example: I reframe the texture to 16 different frames** ![image](https://github.com/JannisX11/blockbench/assets/139906198/1521f3bc-1407-4af0-be9b-88b3d11ccb85) ![image](https://github.com/JannisX11/blockbench/assets/139906198/a5bfbeb3-099e-4b54-bdda-aefc38bdafc1) ### **I opened the flipbook again and it reverted itself to 1**
2. Texture glitching? When you try to apply that animated texture to the element, this happens ### **Before:** ![image](https://github.com/JannisX11/blockbench/assets/139906198/77cf8d53-1f20-4efe-b6a5-25b93501c89b) ### **After:** ![image](https://github.com/JannisX11/blockbench/assets/139906198/af6d76a5-79e1-47c9-a525-429017ab25c0)

Packs that uses these features: https://modrinth.com/resourcepack/recrafted-mobs/version/10.0

https://www.curseforge.com/minecraft/texture-packs/newdefaultplus

aurora-1-2-3 commented 4 months ago

The enderman I used for example isn't mine, its from a mod I am porting