Picking Problem

Started by
0 comments, last by cyric74 19 years, 6 months ago
I am basically using the DX picking sample to do simple picking of a stationary rectangle mesh. It works okay, but it doesn't recognize a hit for a few pixels along the top and along the left side of the rectangle, but it will see a hit once the mouse has left the area of the mesh on the right or bottom portions. So basically the picking seems to be slightly off-center by a few pixels, yet correctly finding the general area. Is this a common problem with an easy solution? I am using identical matrix for the drawing and pick-checking, so I don't believe that to be an issue. I can post code if needed but it isn't anything spectacular. Thanks, Cyric
Advertisement
Nevermind -- Was using window mode for debugging which was throwing off screen width/height for perspective calculation (incase anyone ever has a similar problem). Works perfect in full screen mode.

This topic is closed to new replies.

Advertisement