Archived

This topic is now archived and is closed to further replies.

DX9, How to make some RGB transparent in a textured plain?

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

Offtopic: Well I don''t know dx9... I hardly know opengl, I just wanted to congratulate you for an excellent topic.

However, the body wasn''t as describing as you might want it to be, try explain a bit more what you want to achieve.

I''ll hope somebody can help you out :-)

Share this post


Link to post
Share on other sites
Hmmm... I just thought it was pretty clearly said ''cause this really isnt a big thing. But ok, lets try to explain more.

I''m making a 2d game in D3D using textured plains. So I''ll need to texture one pl,ain with the picture of my main character which has a black background. Offcourse it would look pretty stupid if the black background would be visible in the game. I''ll need to make the black parts of the textured plain FULLY transparent or invisible (it can be said either way). I know this is possible... :D Anyone?

thx

Share this post


Link to post
Share on other sites
I think what you are refering to is the colorkey...

Set the color you want to become transparent in the colorkey field on your normal D3DXCreateTextureFrom*****Ex()

Check out the functions in the docs for more info...


------------------------------------------------------------
// TODO: Insert clever comment here.

[edited by - drowner on November 8, 2003 2:28:39 PM]

Share this post


Link to post
Share on other sites