help, Surface to surface with transparency(not texture)

Started by
0 comments, last by Tubular 19 years, 6 months ago
hello all: In my D3D9 code, I have two surfaces. Can I copy one to another with transparency(without texture). I use D3DXLoadSurfaceFromFile ,but failed. The transparent color is filled by black color. Can you give me any advice? thanks all.
Advertisement
Not 100% sure what you mean by "without texture." One problem I noticed is that both surfaces have to have an alpha channel. ie, D3DFMT_A8R8G8B8 instead of D3DFMT_X8R8G8B8. Otherwise D3D will ignore the extra byte and it won't get copied / managed, even if you set it explicitly through locking and bit blitting.
VideoWorks Softwarehttp://www.3dpoolpro.com

This topic is closed to new replies.

Advertisement