I am trying to blend several objects, any of which can be transparent. I tried it the way the Red Book suggests.

First I set DepthMask to true, disable blending then loop through the objects and draw those that are opaque.

Then I set DepthMask to false, turn blending on, and loop through the objects again and draw those that have some degree of transparency.

The problem is that this does not work. If I have some text and make it a little transparent, most of the text is black but covers the objects behind it.

What am I doing wrong?