strange alpha channel on screenshot

Added by nimetu almost 5 years ago

if you break down color channels on this image, then alpha channel should be all white, but it's not.
some armor is bleeding over and making holes in image. this is not the only armor that has this problem.

using standard Driver->getBuffer(btm); and then btm->writePNG(file, 32);

not really showstopper for me as I fix the Alpha on btm buffer, just strange

cessa-rendered.png (53.9 kB)


Replies (3)

RE: strange alpha channel on screenshot - Added by kervala almost 5 years ago

I don't understand what you're talking about...

Are you talking about armor models, 3d rendering or bitmap loading/saving ?

Your render is strange, it seems like it didn't use alpha blending.

Did you use CCharacter3D or CEntityCL for character ?

RE: strange alpha channel on screenshot - Added by nimetu almost 5 years ago

kervala wrote:

Did you use CCharacter3D or CEntityCL for character ?

none of them. it's a simple load shapes, bind them to skeleton, change texture names, render, get buffer, save with alpha channel.
background was set to {0,0,0,255}

RE: strange alpha channel on screenshot - Added by nimetu almost 5 years ago

actually never mind.... you should see ingame screenshot saved as 32bit png (instead 24bit) hehe. as ig windows are semi transparent, pixels behind them keep the alpha (or something like that).

I guess filling background with transparent color and after getBuffer fixing every other color except background is the only way to get transparent background screenshots.

(1-3/3)