Posted 19 December 2012 - 09:49 PM
Hi guys ,
Please check the above link . I don't know how to post images here . Any one know how to calculate this and solve this issuel.Thanks in advance.
Posted 19 December 2012 - 10:01 PM
The basic idea is to use the mouse click position to generate a ray in the 3D world space. It will start at the camera and pass through the pixel you clicked. Then you find where the ray intersects the scene. In your case you'd do a ray-plane intersection with the ground plane, and use the coordinates of the intersection point to tell which tile was clicked.
Posted 20 December 2012 - 05:06 AM
Posted 20 December 2012 - 09:13 PM
how the peoples used to calculate the input(mouse click) to select tiles in farm vile like games . I really need that farm vile like solution please help me guys . thank you
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users