Skip to main content
gamedev.net
🔒 Locked

Alpha blending problems

Started by MrBeaner 1 reply 750+ views
Original Post
MrBeaner
MrBeaner
i am trying to copy some images using stretchrect()from a file that has an alpha channel, but i get white where the alpha should be. i am loading a png file. i am enabling the render states, but i think it might be different because i am copying directly to the back buffer. How do i load and use alpha information for copying directly to the back buffer?
------------------------------------------VOTE Patrick O'GradyWrite in Presidential CandidateThe Candidate who Cares.
jollyjeffers
jollyjeffers
As far as I'm aware you can't do what you're attempting. The direct-to-backbuffer methods are more for direct memory copying/writing rather than actual rendering.

If you're coming from a DirectDraw background then bare in mind that (ab)using Direct3D in the same way isn't a good idea [smile]

Can't you pack your data as a texture and render it normally?

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
MrBeaner
MrBeaner
Thanks for the reply-

is that what i should do? I am just making a title screen. should the buttons just be billboards or point sprites?
------------------------------------------VOTE Patrick O'GradyWrite in Presidential CandidateThe Candidate who Cares.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.