Archived

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

Lining up Text with 3D Objects

This topic is 5815 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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