DX8 and Rendering text to screen ?

Started by
5 comments, last by markdezonia 22 years, 5 months ago
I''m using bitmaps and that sucks. Were is a good simple snipit of code so I don''t have to use bitmaps any more! ?????????????????????????????????????????????????????????????
Advertisement
CD3DFont in the SDK...
Author, "Real Time Rendering Tricks and Techniques in DirectX", "Focus on Curves and Surfaces", A third book on advanced lighting and materials
I have a tut that regarding this that will soon be up on NeXe. It''ll be up once Bunnies gives me some ftp access and all that other good stuff.

Eric Wright o0Programmer0o

AcidRain Productions
Eric Wright o0Programmer0o
as CrazedGenius saids, CD3DFont in DX8 SDK is a excellent choice for you !
I have only Been Programing in DX for 2 mounths , I got D3d8 down
good and but mod any bit and move it around ect. my game has 100 bitmaps in it for about 20MB, but this text thing like this .
I have no clue

CMyD3DApplication::CMyD3DApplication()
{
m_strWindowTitle = _T("Text3D: Text in a 3D scene");
m_bUseDepthBuffer = FALSE;

// Create fonts
lstrcpy( m_strFont, _T("Arial") );
m_dwFontSize = 18;
m_pFont = new CD3DFont( m_strFont, m_dwFontSize );
m_pStatsFont = new CD3DFont( _T("Arial"), 12, D3DFONT_BOLD );
}
It is VC++ I could change it to C++ for my Dev-4 compiler ,simple.
but, (lstcpy) my compiler gets mad at me) I could modify this easy. Dose anyone know why there is a problem with lstcpy?

THX it''s still what I was looking for.
You can use the ID3DXFont interface but using bitmaps could be faster as it removes any GDI overhead, which is what ID3DXFont uses.
G''day!

ID3DXFont is really slow. It looks great and has a ton of formatting options, but I''d only use it for a small amount of text or in a case where speed isn''t an issue.

CD3DFont is well regarded. I haven''t played with it myself (yet), but it should be a good choice. Decent output with decent speed.

Using bitmaps isn''t an evil thing, I kind of like it actually. My new text library (http://www.drunkenhyena.com/docs/dhFastFont.phtml) uses a pre-made font bitmap (created by Bitmap Font Bulder, nice app, free too) and it looks good and it''s fast.


Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena

This topic is closed to new replies.

Advertisement