Jump to content
  • Advertisement
Sign in to follow this  
Milleniumas

Alpha blend with colorkey and vertex alpha

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

Hmm I am a bit confused, because It seems I can't figure out how to make my texture alpha blended with color key and vertex alpha blend. It always modifies the colorkey alpha, not vertex. SOLUTION: D3D9->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE); D3D9->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE); D3D9->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE); D3D9->SetTextureStageState(0, D3DTSS_CONSTANT, Sprite->Color); D3D9->SetTextureStageState(0, D3DTSS_ALPHAARG2,D3DTA_CONSTANT); D3D9->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE); D3D9->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE); D3D9->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_CONSTANT); D3D9->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE); D3D9->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE); D3D9->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_DISABLE); D3D9->SetTextureStageState(1, D3DTSS_ALPHAOP, D3DTOP_DISABLE); [Edited by - Milleniumas on January 21, 2008 5:44:31 AM]

Share this post


Link to post
Share on other sites
Advertisement
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!