Animated textures (flipbook textures) are no longer animating transitions smoothly even if “blend_frames“ property in flipbook_textures.json is set to TRUE.
This previously worked regardless of graphics mode, but a regression in a recent version has caused the texture blending between frames to stop working once ray tracing is enabled.
To test:
This is noticeable with every animated vanilla block that has blending frames enabled by default, for instance, enable ray tracing and place down Magma block, or Sea Lantern, you will notice the animations are choppy and no longer blending into each other as soon as ray tracing is enabled.
This is not related to PBR resource packs, using an empty rt-capable RP that loads only game’s vanilla files will allow you to reproduce the issue just fine, though the issue applies to any resource pack, the blend frames property is simply not working anymore.
Related to:
MCPE-240950
Diagnostic findings:
Flipbook.material.bin’s blit shader samples two frames and lerps between them by VBlendControl.z, unless either frame’s alpha is below 0.01.
That logic is correct, so the material itself doesn’t look like the cause.
To check what happens with ray tracing on, I temporarily replaced the blit’s fragment output with VBlendControl.z as a colour (blue at 0, red at 1), keeping the alpha logic. With ray tracing enabled:
All flipbook textures rapidly shifted between blue and red, at the same pace.
The colour, MER and heightmap of those textures were all replaced, so all of them pass through this blit in ray tracing mode.
So the blit is still being run with ray tracing on, and it is receiving a changing VBlendControl.z. Frames still appear to change abruptly in the final image, even though the blit is used. The regression may be in how the engine sets VBlendControl or schedules this blit in ray tracing mode, or in how the result reaches the textures ray tracing reads.
This can’t be worked around from the ray tracing shader, since the atlas tile they read holds only one frame, so there is no way to blend with/work around it, but it was all working a few updates before this report was made. The issues started with the atlas changes a few months ago, removal of padding, etc… hard to pin point the exact time this started happening.
Comments 0
No comments.