Advertisement Jump to content
Sign in to follow this  

Vertex Transparency DirectX 9

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



I have always been stuck on this one which is how to use the vertex alpha component in a mesh that has,  Position, Color, Uv, & Normals.


I found something that mentioned this  :


d3d->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_DIFFUSE);


but it does not seem to work.


Any ideas ?


Thanks in advance .




Share this post

Link to post
Share on other sites

Try something like the following:

device->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
device->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );
device->SetRenderState( D3DRS_BLENDOP, D3DBLENDOP_ADD );

Share this post

Link to post
Share on other sites

OH yes, but actually, thinking about it. I just want the vertex transparency without having to use vertex blending,


Thanks anyway.

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!