• Advertisement
Sign in to follow this  

Vertex Transparency DirectX 9

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

Hello,

 

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
Advertisement

Try something like the following:

device->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
device->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );
device->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
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