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.
[DX9 C++] Vertex Position
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement