3DXSprite draw, can I change the opacity of the texture I'm drawing?
OK, I'm using the 3DXSprite draw with a texture (that may or may not already have transparency) but what I want to do is change the opacity of texture when it is drawn so I can make the image fade in and out. Is there a way to change the opacity of the texture or way to do what I want. -Thanks
[edited by - Drastick on March 2, 2003 4:23:20 AM]
For the last parameter of the Draw() method of D3DXPSRITE, you have a D3DCOLOR (DWORD) value. Pass an RGBA color with a lower alpha value and turn on alpha blending.
An old post by me. Uses managed DirectX though. Shows how to set a transparent color and alpha blending.
[edited by - FieroAddict on March 2, 2003 12:10:13 PM]
[edited by - FieroAddict on March 2, 2003 12:10:13 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement