Archived

This topic is now archived and is closed to further replies.

D3DXIntersect distance

This topic is 5502 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''m working with code seen in the "Pick" sample to use the mouse cursor to select a polygon in my own mesh, but I have a problem with D3DXIntersect. It seems to work only with short distances (20 max). When I move the camera out farther, I get wrong results. Anyone had similar problems, could it be a corrupt mesh? The code that computes a ray from the mouse pointer seems to be working well. I''ve tried normalizing the mouse direction vector (I''ve also tried to increase it by a lot). No success. Juozas

Share this post


Link to post
Share on other sites