peterbaumann wrote:Anyone know if the downscaling issue is 'expected behaviour' or whether it's a bug/something wrong in the settings?
Stefano Marconcini wrote:The problem still there on beta 6.
I've just done some exhaustive tests of Resolve's alpha compositing of PNGs, and my conclusion is that Resolve is handling alpha and filtering correctly in most situations. The
only situation I've found that it is doing the wrong thing is, oddly enough, when playback is paused and filtering is set to a non-trivial mode (e.g. Sharper, Smoother, etc; Bilinear, Nearest Neighbour, etc are unaffected by this). But even in those cases, as soon as playback is started the alpha filtering is displayed correctly.
I believe the problem people are seeing is the unfortunately non-intuitive behaviour of alpha compositing. For something that almost everybody (and I constantly get tripped up by too despite 'knowing' better, now) believes should be/is a trivial thing, it's actually surprisingly hard to get right. It goes back to how the
source images are made - not how Resolve is handling them. The short answer is the mysterious "Premultiplied" alpha mode is the best way to get the results you intuitivly expect, except the use of premultiplied alpha is complex/poorly supported/quite unintuitive itself. Premultiplied alpha was specifically invented (well, technically it's the mathematically correct compositing operation, so invented isn't the right word - maybe discovered) for compositing.
A good introduction and overview is this article:
https://limnu.com/premultiplied-alpha-primer-artists/If anyone wants to read the source material for this, the research paper (Compositing Digital Images, Porter & Duff, Lucasfilm, 1984) is still available from Pixar:
https://graphics.pixar.com/library/Compositing/*edit: Re-reading this, it comes off a bit... holier than thou. Not my intent. To give a concrete explanation back to the original posters question about PNG files coming from Affinity Designer, the very last bullet point in the article I linked is the key to it all: "PNG images are always stored unmasked (unpremultiplied)". What that means is that Affinity Designer has to store
something in the PNG's transparent areas - but you haven't put anything in those areas, they're transparent after all! If you dig into Affinity Designer's Export > PNG > More... there's a Matte colour. It seems a little broken (the default "transparent swatch" shows up as RGB 255,0,0, but it's actually using transparent black), but if you change it to a colour, it'll use that in all the transparent areas of the PNG. The default transparent black is correct however, so just leave it as that. The good news is that, using transparent black is the correct thing for "Premultiplied" alpha! But bad news is, it's not the default "Straight" alpha.
So if the default is correct, why isn't Premultiplied working? Tough to answer without having the source Affinity Designer file and PNG's to check.
HW: AMD Ryzen 9 3900X, 64GB DDR4 3600 CL16 RAM, 3x2TB NVMe SSDs (1xGen4, 2xGen3), 8GB Nvidia GeForce RTX 2070 Super, dual monitor (4k, 1080P)
SW: DaVinci Resolve Studio 17b7, Win10 Pro 20H2, Nvidia Studio Driver 460.89, latest BIOS/chipset/drivers/etc.