Original Post
Hi can anyone help me with this:
I want to enable my user to use a mouse click to pick an object in 3d space. I have used the code from the directX 8.1 SDK "PICK" demo, and all seems to be fine.... as long as my objects are placed at 0,0,0
In my program I use D3DXMatrixTranslation in FRAMEMOVE to place my objects in 3d... It seems that when I check the mesh for intersection, directx insists that it is still in 0,0,0.
What can I do ? is there another way to place my objects so that they actual changes their position in 3d... or should I use some king of extra transfor when intersecting ?
Please keep in mind that Im very new to directx (under one week) so I would very much like if you both give me an c++ or pascal eksample + a description of what I should do.
Thank you
Regards
Jimmy Borch
P.s. I did not include my source code here, as it is from delphi (dunno how may people that know the pascal syntax *grin*).. but you just say the word, and I send it