Enable the depth for text

Started by
14 comments, last by unbird 11 years ago

The King2

I've tried different variants with M32 value - result the same, text is at the top..

Jason Z

The King2 is right, I'm using Sprites for text rendering, they are out of shader at all. But if there is no other chance to enable Z-value with sprites, I'm ready to try to implement your variant

Advertisement

Does it work if you call flush on your sprite object afterwards? Try that with different z-values..

Does it work if you call flush on your sprite object afterwards? Try that with different z-values..

No, it doesnt. Still the same. I've tried with different values

Did you explicitely set this flag to eigther front to back or back to front?

Did you explicitely set this flag to eigther front to back or back to front?

I've just tried it. Didn't help.

An idea I had was ID3DXSprite might thrash the depth-related render states, but there aren't any flags for Begin and the SharpDX docs list all the states - no depth related stuff. This is really the moment to fire up PIX and check states, your vertex positions and look at the depth buffer.

This topic is closed to new replies.

Advertisement