MCprep icon indicating copy to clipboard operation
MCprep copied to clipboard

Cannot Animate Spawned Blocks

Open Aspirata opened this issue 1 year ago • 5 comments

Did the issue happen after restarting Blender?

  • [X] Yes, the issue indeed continued after restarting Blender

Check known issues

  • [X] I have checked known issues, and my problem is different

What happened?

Animate Textures in prep materials doesn't work on spawned blocks

What steps are needed to produce the bug?

  1. Spawn any animated block (sculk, sea lantern, nether portal etc)
  2. Prep it with Animate Textures enabled
  3. See the bug

What version of MCprep are you using?

3.6.1.2

What version of Blender are you using?

Blender 4.4, but you can reproduce that bug on any version of blender starting with 4.0

Aspirata avatar Jan 07 '25 16:01 Aspirata

This can be fixed by removing the material post-fix (west, north, all, etc.)

Aspirata avatar Jan 07 '25 16:01 Aspirata

Btw why does Mcprep create a new material for each side of the block, even if they have the same UV and texture ?

Aspirata avatar Jan 07 '25 16:01 Aspirata

Is the issue happened in the dev branch? #644 That commit should already fix blocks with actual face change like crafting table only do west south east materials. Block only "all" use one.

zNightlord avatar Jan 08 '25 05:01 zNightlord

This happens even in the dev branch. Btw it still creates a separate material for each face image

Aspirata avatar Jan 08 '25 05:01 Aspirata

Btw why does Mcprep create a new material for each side of the block, even if they have the same UV and texture ?

Minecraft Java json model system is like OOP in programming, polymorphism, its rather contains the same place it goes: this file contains that block "name" model textures has "all" texture but reference other file "parent" that has the geometry with each face map reference "all" as "#all" to use from the child block "name" file

the parent in sea_lantern.json maybe "cube_all' but it goes back to "cube" to create the geometry for each face direction for material assign based on the stored index list

Maybe have to properly remap those textures

https://github.com/user-attachments/assets/16308a04-12b3-4e9b-ad4e-707e064394fc

zNightlord avatar Jan 08 '25 09:01 zNightlord

Closing as fixed with #655

StandingPadAnimations avatar Aug 31 '25 06:08 StandingPadAnimations