dodgy PNG edge

BlitzMax Forums/BlitzMax Programming/dodgy PNG edge

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yan:
I see... I understand the issue now.

The pixels in the light beam are pure white, and this pure white color is normally at 25% transparency, and blended with a brown background at that level.

But when the image is scaled, you have white pixels being blended with the brown pixels, and you end up with pixels that have a lot of white but their opacity is such that they're not blending with the background to produce the same result as the 25% white pixels in the pure beam.

There's two ways to fix this.

The first way is to change the 3D hardware so it blends the images differently. :-)

The second way which is actually possible is to blend the white layer seperately from the image of the hole. So make the light beam a seperate image with no brown. That will solve the problem.