Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / PNG transparency shows up as black on my planes.

Years of Service
User Offline
Joined: 21st May 2014
Posted: 20th Jun 2014 23:29
MY files are saved with transparency as PNGs but when I load them in the transparent pixels are just filled by black.
My images are loaded like this(... is file directory)
load image "...\Lock1.png",1,1
load image "...\Lock2.png",2,1
load image "...\Lock35.png",3,1
load image "...\Lock4.png",4,1

Then they are pasted like this
for x = 1 to 7
texture object x,1
next x

I don't want to convert my images to bitmap but I can't figure out how to make the alpha value work.
Lucas Tiridath
AGK Developer
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 21st Jun 2014 22:15 Edited at: 21st Jun 2014 22:16
You probably need to set the transparency on. Try this:

Hope that helps! Also for the record, bitmaps don't have an alpha channel so you can't use them for transparent textures unless you intend to use one of the colours as an alpha colour at runtime.

Login to post a reply

Server time is: 2023-05-29 10:50:46
Your offset time is: 2023-05-29 10:50:46