Skip to main content
GameDev.net gamedev.net
🔒 Locked

3D Text

Started by Ataru Oct 7, 2004 at 11:08 AM 4 replies 1.2k views
Original Post
Ataru
Ataru
I'm thinking of adding in some basic 3D text in my app as quickly as possible. My first idea was to use the ID3DXFont::DrawText and billboard the quads. This produces less than stellar results, as it seems that each letter is a quad, and the whole text does not allign with the viewer, rather just individual letters. I'd rather not have to generate my own font bitmap, and use the one generated by the font class. Anyone know a way of extracting a texture created by the font class, that I can simply stick onto my own billboards?
Ataru
Ataru
Shameless bump. No easy way to do this using standard DX libs? I guess I'll have to write my own font to bitmap class. A little more work, but it does not look like there's much I can do about it.
chadmv
chadmv
You can create 3d text pretty much in 3 steps with the D3DX library:

1. Create a font with CreateFont.
2. Create a mesh of the text by calling D3DXCreateText.
3. Render the text with ID3DXMesh::DrawSubset.
Ataru
Ataru
Thanks. I knew about the mesh version. I was hoping not to have to go that route, and use a billboard. But since I am pressed for time rather than my ideal solution, I think this makes the most sense.

Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.