Alpha Transparency is wrong in GLB using Alphamode -1

Previous topic - Next topic

spacefractal

I have been confuction about this issue as well (so called multiply issues). Here I fixed it by using ALPHATESTING 1.

Those kind of issues should have been documents in the help file, since its can been very confuction about it.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spicypixel

Regardless of ALPHATESTING value fixing it. ALPHAMODE -1 should just work shouldn't it? I'm looking at the ALPHATESTING in the help file and at first glance can't make head nor tail of it :)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spicypixel

ALPHATESTING 0 each frame works perfectly.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Wampus

One oddity I found is that alpha blending seems to work fine for my images if ALPHATESTING 0 or ALPHATESTING 1.0 is used each loop but not if ALPHATESTING is not called at all. In the help file it states that ALPHATESTING 1.0 totally disables alpha tests.

So...I guess I'll be using ALPHATESTING 1.0 and also having correct alpha blending then.  O_O

Kitty Hello

alphatesting only decides what source alpha will be considered as a hole in your sprite. No pixel will be drawn, no z-buffer will be touched if alphatesting skips.