Ray Picking animated mesh
Members - Reputation: 104
Posted 19 August 2012 - 09:25 PM
I am currently working on ray picking stuffs and I am happy and successfully done ray picking with static mesh.
But now, I found that my ray picking code, which is commonly posted on the internet and in the DirectX sdk demo (the D3DXIntersect()), cannot work in animated mesh, like characters.
So, what should I change the code so that I can pick the animated mesh accurately?
Thanks all guys!
Members - Reputation: 143
Posted 20 August 2012 - 01:45 AM
Members - Reputation: 1638
Posted 22 August 2012 - 01:49 AM
You should even consider whether you need the second step, maybe a hitbox picking is enough? This of course depends solely on what you are doing and what you want/need to achieve.
If you got multiple objects (e.g. units on a battlefield) I would first do a picking via a normal hitbox, and then check for intersection with the detailed animated mesh.
Members - Reputation: 1373
Posted 22 August 2012 - 02:17 PM