DirectX 9 D3DXIntersect with first person camera

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Anddos
Posts: 4
Joined: October 23rd, 2012, 5:03 am

DirectX 9 D3DXIntersect with first person camera

Post by Anddos » October 23rd, 2012, 5:08 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)

http://imageshack.us/f/31/fpsintersect.jpg

thanks if you can help

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: DirectX 9 D3DXIntersect with first person camera

Post by LuX » October 23rd, 2012, 1:49 pm

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.
ʕ •ᴥ•ʔ

Anddos
Posts: 4
Joined: October 23rd, 2012, 5:03 am

Re: DirectX 9 D3DXIntersect with first person camera

Post by Anddos » October 23rd, 2012, 3:41 pm

its not from any tutorial , i am self teaching my self :) , which bit of the code do you want to see

User avatar
Asimov
Posts: 814
Joined: May 19th, 2012, 11:38 pm

Re: DirectX 9 D3DXIntersect with first person camera

Post by Asimov » October 23rd, 2012, 4:06 pm

Hi Anddos,

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

User avatar
npissoawsome
Posts: 114
Joined: June 8th, 2012, 3:01 pm

Re: DirectX 9 D3DXIntersect with first person camera

Post by npissoawsome » October 23rd, 2012, 6:02 pm

LuX 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.
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 something

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: DirectX 9 D3DXIntersect with first person camera

Post by chili » October 24th, 2012, 2:48 pm

What is D3DX Intersect supposed to do? Never seen it.
Chili

User avatar
Asimov
Posts: 814
Joined: May 19th, 2012, 11:38 pm

Re: DirectX 9 D3DXIntersect with first person camera

Post by Asimov » October 24th, 2012, 8:02 pm

Hi Chilli,
What is D3DX Intersect supposed to do? Never seen it.
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.
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk

User avatar
npissoawsome
Posts: 114
Joined: June 8th, 2012, 3:01 pm

Re: DirectX 9 D3DXIntersect with first person camera

Post by npissoawsome » October 25th, 2012, 7:17 pm

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?

Post Reply