DaveTCode / GBADotnet

A C#/net core GBA emulator
MIT License
20 stars 1 forks source link

Fire Emblem logo blending seems off #77

Closed DaveTCode closed 2 years ago

DaveTCode commented 2 years ago

image

contrasted to

image

Looks like the blend targets haven't quite worked out

DaveTCode commented 2 years ago

There's some clever PPU shenanigans going on here. The logo is made up of a black background, then obj window and normal obj sprites combining. Background 0 is the fire effect and has highest priority.

The obj window is set up such that obj window has blending, bg 0 and objs but not other backgrounds. bg 0 is disabled outside of windows.

So we really should only be seeing fire effect blended on the object window areas.

DaveTCode commented 2 years ago

image

The issue was that the sprites were large palette and I'd mixed up how to calculate backdrop color of a pixel on large palette but only for obj window