Not logged in, Join Here! or Log In Below:  
News Articles Search    

 Home / General Programming / DirectX 9 D3DXIntersect with first person camera Account Manager

October 23, 2012, 12:46 AM

I have a first person camera setup and working fine, i am shooting a ray from the camera pos and the direction the camera is facing, when the app first starts the intersect works fine , but when i move around the object to the otherside the is no intersect anymore, why can i only intersect the pologons head on and not all around?
heres a pic to show what i mean , the space the ray is in is object space inverse of (world*view)

thanks if you can help

Bad Sector

October 24, 2012, 07:29 AM

The link doesn't work.

But just a quick check from your description... do you check against all possible polygons and sort the intersection points based on their distance from the camera? Basically do you do this:

1. Find all interesection points in geometry
2. Sort points based on distance from camera
3. Pick the closest one - the polygon that has this point is the picked one

This thread contains 2 messages.

If you'd like to post a comment on this discussion thread, please log in or create an account.

Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.