Archived

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

intrest86

Lining up Text with 3D Objects

Recommended Posts

intrest86    742
Hey, I am currently setting up my GUI(first one ever) in D3d, and I am having trouble lining the text up with my window. In 800 by 600 mode I make a 800 by 600 window flush to the X an Y axis, then, in screen coordinates, tell it to drawText with a corner at (0,0). The text ends up right above the window, like this: (Cheap Ascii Art) Text is here ------------------------------------------------- ------------------------------------------------- <---TitleBar | | | | | | | | | | | | Any way to line this stuff up?

Share this post


Link to post
Share on other sites
a person    118
look into D3DXProject() (i think thats what the function was called). it applies your matrices to an object point to convert it to screen space. thus help align text with the window.

Share this post


Link to post
Share on other sites