Archived

This topic is now archived and is closed to further replies.

NeoAsimov

Add Depth in DrawText using Direct3D.

Recommended Posts

Hello, I need to draw some text on my scene. Than I look to use DrawText (method of Font class) for simplicity. Everything work fine. But I need to zoom in and out of my scene and I need the text to be zommed in and out too. Anyone have an idea how to do this with DrawText or by any other way? I need to have a depth (z-axis) where to draw my text. Thank for your help! Salutations,

Share this post


Link to post
Share on other sites
In the SDK Summer Update, ID3DXFont runs through ID3DXSprite. You can set 3D transforms to the sprite, and set it to billboard for text in 3d space. Look at ID3DXSprite''s members for details.

I like pie.

Share this post


Link to post
Share on other sites