Djoef
30-10-2008 14:32:47
Hi,
I need to record which triangles are under a given 2D position on the screen. (you can think of mouseposition)
So I think I need raycasting that records :
1) which object is hit
2) what index the hitted triangle has
In post processing I need to match the recorded triangle index with the triangle index of the original mesh. If possible I would like to have the hitted triangle index match with the index of my mesh in Blender.
Is this possible ? Can someone give me at least a roadmap on how to achieve this ?
Connected to this, should I only use NxOgre Body or should I create my own Scenenodes attach an Entity and create a separated Actor ?
Thanks alot !
kind regards,
Geoffrey.
I need to record which triangles are under a given 2D position on the screen. (you can think of mouseposition)
So I think I need raycasting that records :
1) which object is hit
2) what index the hitted triangle has
In post processing I need to match the recorded triangle index with the triangle index of the original mesh. If possible I would like to have the hitted triangle index match with the index of my mesh in Blender.
Is this possible ? Can someone give me at least a roadmap on how to achieve this ?
Connected to this, should I only use NxOgre Body or should I create my own Scenenodes attach an Entity and create a separated Actor ?
Thanks alot !
kind regards,
Geoffrey.