Jump to content
  • Advertisement
Sign in to follow this  
cyric74

Picking Problem

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

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

Share this post


Link to post
Share on other sites
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.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!