DirectX 9 D3DXIntersect with first person camera
DirectX 9 D3DXIntersect with first person camera
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)
http://imageshack.us/f/31/fpsintersect.jpg
thanks if you can help
heres a pic to show what i mean , the space the ray is in is object space inverse of (world*view)
http://imageshack.us/f/31/fpsintersect.jpg
thanks if you can help
Re: DirectX 9 D3DXIntersect with first person camera
Hmm... Looks like you are following some completely different tutorial. Not that it's a problem, but I doubt anyone can help you here, especially with no code to look at.
ʕ •ᴥ•ʔ
Re: DirectX 9 D3DXIntersect with first person camera
its not from any tutorial , i am self teaching my self , which bit of the code do you want to see
Re: DirectX 9 D3DXIntersect with first person camera
Hi Anddos,
We are still in 2D here. We haven't got to 3D yet
We are still in 2D here. We haven't got to 3D yet
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
- npissoawsome
- Posts: 114
- Joined: June 8th, 2012, 3:01 pm
Re: DirectX 9 D3DXIntersect with first person camera
Keep trying to do the thing in different ways, and try to figure out what's causing the error. Doing it your self is always better than having someone tell you the answer, you actually learn somethingLuX wrote:Hmm... Looks like you are following some completely different tutorial. Not that it's a problem, but I doubt anyone can help you here, especially with no code to look at.
Re: DirectX 9 D3DXIntersect with first person camera
What is D3DX Intersect supposed to do? Never seen it.
Chili
Re: DirectX 9 D3DXIntersect with first person camera
Hi Chilli,
I have never heard of this either. I am wondering if he is talking about raycasting. In raycasting you cast an invisible line which when instersects with something, runs an action.What is D3DX Intersect supposed to do? Never seen it.
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
- npissoawsome
- Posts: 114
- Joined: June 8th, 2012, 3:01 pm
Re: DirectX 9 D3DXIntersect with first person camera
From a quick look at this
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
it looks like it has something to do with rays, maybe that's ray casting?
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
it looks like it has something to do with rays, maybe that's ray casting?