• Advertisement
Sign in to follow this  

Alpha blending problems

This topic is 4175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement