I need to composite direct3d renders on top of a video feed, the way i have it setup the format i get the data in is 32 bit xrgb with a byte for red green blue and a throw away. Can I get it to render with an alpha channel so i can use it for better blending?
+1
A:
You sure can. Use D3DFMT_A8R8G8B8 for your back buffer.
http://msdn.microsoft.com/en-us/library/bb172558(VS.85).aspx
Corey Ross
2010-06-11 02:46:35
That works. Though i swear I tried changing the back buffer format to this and it bombed out on initialization, but i must have just been smoking the crack, cuz it works now. Thanks.
Mr Bell
2010-06-11 14:02:56