Hi, y'all,

I'm having a small problem using DirectX7.
I am creating a modeller application and use a VB form as the render target. If, for example, I render a simple primitive, such as a triangle, to the form, I want to be able to click on the primitive and then use GDI to place a 'selected' indication with node points for dragging. This works, but I find that when I cycle through the vertices of the primitive and perform manual World, View and Projection transformations (and a final 'flatten' matrix to convert using homogenous-w) the 'selected' indication is offset slightly from the original DirectX rendered primitive (i.e I end up with TWO triangles on the render target).

Does anyone have some example code (NOT Retained Mode, but Immediate Mode) to help a poor DirectX beginner obtain the correct x,y co-ordinates (i.e the same as DirectX before it is passed to the Rasterizer)?

Any help would be GREATLY appreciated!