• Advertisement
Sign in to follow this  

How to get transparent mesh

This topic is 4412 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
Device.RenderState.SourceBlend = Blend.SourceAlpha;
Device.RenderState.DestinationBlend = Blend.InvSourceAlpha;
Device.RenderState.AlphaBlendEnable = true;

I hope this helps.
Take care.

Share this post


Link to post
Share on other sites
If you have no alpha channel in the render target (including your frame buffer), you can set the source alpha to SRCALPHA and destination to INVSRCALPHA or ONE.

If you have alpha channel in the render target, you can set the source alpha to SRCALPHA and destination to DESTALPHA.

The best way is to experientment with the alpha blending settings by your self to archieve what you really need. As with the whole mesh transparent, you can choose to disable back face culling to make it sees both sides of the mesh.

Share this post


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

  • Advertisement