Jump to content
  • Advertisement
Sign in to follow this  
Dead_Telemarketer

Object Space to Screen Coords?

This topic is 4855 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, if I have a point in object space (like <0.0f, 1.0f, 0.0f> - 1 unit above my object's origin) and I want to figure out what that point will be on my screen, what matrices do I have to apply? I know I have to apply WVP - world, then view, then projection. Some docs refer to that as 'screen space', but the coords at that point aren't in the range of my screen (say I have a 640x480 buffer, they aren't between those values even if the point is on screen). What other matrix/matrices do I need to apply to the WVP-transformed point to get it into actual screen space (meaning its location in the display buffer)? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
If using DX theres a function in the D3DXMath libs that can help you. Dont remember the name in this moment. (D3DXVector3Project I think...)

Luck!
Guimo

Share this post


Link to post
Share on other sites
Sign in to follow this  

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