I've recently made some basic Blender models without transparency for a new game I've been working on, but I'm having some problems rendering them semi-transparently. Namely, I haven't been able to figure out how to render them semi-transparent at all.
I've looked around quite a bit for code samples, and for some reason I just can't find anything that fits. I figure transparency probably has to do with BlendState.AlphaBlend somehow, but I'm not sure how exactly.
My models are simple VertexPositionColor models that consist of a single mesh. I've tried turning transparency on in the material in blender, but it doesn't seem to do anything when I render it again in C#. (Except make it appear transparent in blender) Also - I'm not looking for anything fancy like a crystal-like effect that requires making my model more than one mesh, just something simple and effective that will make my models at least able to be seen through.
So basically, my questions are:
- How can I render an opaque VertexPositionColor model at a given percent transparent?
- Is there a non-shader solution to my problem?
- Is there a code sample anywhere for doing model transparency in XNA 4.0?