Jump to content
  • Advertisement

Archived

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

intrest86

Lining up Text with 3D Objects

This topic is 6152 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!