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.

DarkBASIC Professional Discussion / sprite using image alpha?

Author
Message
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 24th Feb 2010 20:09
Hey all, is is possible to have a sprite use the alpha channel of the image for transparency.

Hawkblood
15
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 24th Feb 2010 20:29
Yes. I've been using that for a while. I make mine .dds files A8R8G8B8 and an alpha tex.

The fastest code is the code never written.
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 24th Feb 2010 21:01
Wonderful! Thanks for letting me know. I looked further and found I forgot to set the bitmap format, I set it to 21 and my sprites now have very good looking alpha transparencies.

Login to post a reply

Server time is: 2025-05-13 06:34:56
Your offset time is: 2025-05-13 06:34:56