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.

Dark GDK / .PNG alpha channel not working as expected with transparent textures.

Author
Message
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 21st Jan 2011 18:07 Edited at: 21st Jan 2011 18:13
I've been playing around with something. I've seen in other screenshots the use of 'glass' effect etc. So I thought I'd make a quick experiment to test alpha channel transparency on textures.

It work to a point. That is when there is no pixel in the image the transparency works but when their is a pixel in the image it is just drawn as a full colour pixel and not faded using the alpha channel.

I even added this command to the DarkSDKBitmap.h file.



After playing around with the different options of setting the bitmap to ARGB, I still get the same result. The transparency works fine in the modelling program.



Attached is the project with the .png files and the .x files.

If anyone has any suggestions then thankyou...

Warning! May contain Nuts!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-06-28 00:48:37
Your offset time is: 2024-06-28 00:48:37