Jump to content
  • Advertisement
Sign in to follow this  
31337noob

transparency?

This topic is 4488 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

Advertisement
I think you may be able to simply put a transparency channel into your spirte artwork and DirectX will automatically recognize the transparency and draw it as such. Make sure to have transparency turned on though.

Share this post


Link to post
Share on other sites
Quote:
Original post by DragonGeo2
I think you may be able to simply put a transparency channel into your spirte artwork and DirectX will automatically recognize the transparency and draw it as such. Make sure to have transparency turned on though.


i dont want it in my artwork. i want a function that will set the transparncey on the fly.

Share this post


Link to post
Share on other sites
by the way, i want to make the D3DXSPRITE transparencey increase or decrease by pushing buttons.

is it possible to make a spirte transparent?

Share this post


Link to post
Share on other sites
anyone?

i want to make the whole sprite 50% transparent not just one color.

i know that D3DMATRIAL9 has something called Diffuse.a which sets the transparancey.

but how can i use that toward a sprite???

Share this post


Link to post
Share on other sites

HRESULT Draw( LPDIRECT3DTEXTURE9 pTexture,
CONST RECT *pSrcRect,
CONST D3DXVECTOR3 *pCenter,
CONST D3DXVECTOR3 *pPosition,
D3DCOLOR Color
);

Set the alpha component of Color to a value between 0 and FF, leaving the RGB components at FF.

Share this post


Link to post
Share on other sites
Quote:
Original post by n0ob

HRESULT Draw( LPDIRECT3DTEXTURE9 pTexture,
CONST RECT *pSrcRect,
CONST D3DXVECTOR3 *pCenter,
CONST D3DXVECTOR3 *pPosition,
D3DCOLOR Color
);

Set the alpha component of Color to a value between 0 and FF, leaving the RGB components at FF.


Thank you friend. it worked. YAY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!