Skip to content

Glass-/Photograph Frame texture flickers black at distance + angle when Iris shaders are on in mod "EXPOSURE" #340

Description

@BS3310

Environment

  • Minecraft 1.21.1, NeoForge
  • Exposure 1.9.18
  • Iris 1.8.14-beta.1
  • Shaderpack: Complementary [Unbound] + Euphoria Patcher 1.8.6 (r5.7.1)
  • Sodium 0.8.12
  • Also running: ImmediatelyFast 1.6.11, Entity Culling 1.10.5, More Culling 1.0.8, CutThrough 21.1.0

What's happening
Photos in Photograph Frames flicker to solid black, but only under one specific combination: I have to be far from the frame AND looking at it from an angle, not straight on. Up close it's fine. Straight-on from a distance it's fine. Even angled but with the frame tucked in the corner of my screen, it's fine. It's specifically far plus angled together that sets it off, and it flickers fast, several times a second.
P.S.: The photo in the glass frame flickers almost every time, regardless of which way it's tilted.

Steps to reproduce

  1. Put a printed photo in a Photograph Frame.
  2. Turn on Iris with a shaderpack (I used Complementary + Euphoria Patcher).
  3. Walk away from the frame and look at it from a shallow angle instead of head-on.

Expected
Photo stays visible no matter the distance or angle.

Actual
Rapid black flicker, only when both distance and angle line up at once.

Testing I've done
Turning Iris off completely gets rid of the flicker, so this looks shader-related rather than Entity Culling, More Culling, or ImmediatelyFast (all three were still installed when I tested with shaders off, and the problem still went away).

My guess
The changelog for Exposure 1.8.0 says mipmaps were added to photograph textures specifically to stop this kind of flicker on dynamically generated textures, same idea as the MapMipMapMod fix for vanilla maps in item frames. My guess is Iris changes how or when that mipmap chain gets rebuilt for the photograph texture, and at this exact distance/angle the game ends up sampling a mip level that's broken or empty for a frame. That's the flicker. But IDK :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions