Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flicker when using non-square Flipbook Textures #46

Open
Kaffeebohnson opened this issue Aug 15, 2024 · 0 comments
Open

Flicker when using non-square Flipbook Textures #46

Kaffeebohnson opened this issue Aug 15, 2024 · 0 comments

Comments

@Kaffeebohnson
Copy link

There's a glitch happening when using non-power-of-2 (or non-square?) textures. In my case I use a 3x1 texture:

image

Somehow the flipbook texture displays pixel bleed (?) when further away. Note the texture border starts to "blink" when further away, even though the texture has no LODs:

flicker_texture

I want to work with 3-frame animations, so sticking to square textures is not really feasible. Thank you for taking a look! Here's what you said on Discord:

There’s a chunk of manual LOD calculation code that needs to run for flipbooks. If your texture does not have lods generated, then it of course cant and won’t LOD your stuff, but there might be a small bug where this does the wrong thing with NPOT textures. The shader doesn’t actually know whether or not your textures have LODs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant