Sign in to follow this  

How to get transparent mesh

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

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

This topic is 4338 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this