• Advertisement
Sign in to follow this  

[DX9 C++] Vertex Position

This topic is 2452 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

Hi there!
I was wondering if you can get the coordinates in the window of a 3d rendered vertex, in other words where in the window directx draws the vertex.

Share this post


Link to post
Share on other sites
Advertisement

Hi there!
I was wondering if you can get the coordinates in the window of a 3d rendered vertex, in other words where in the window directx draws the vertex.




Sure you can get them in many ways. One way is to transform your 3d position with the world-view-projection matrices and doing division by the w component. Then scale the result with half screen width and half height and offset the coordinate with the same values. Now this is the position in the framebuffer.

What are you trying to accomplish?

Share this post


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

  • Advertisement