About rays
- crioto
- Halfling
- Posts: 59
- Joined: Fri Aug 11, 2006 8:34 pm
- Location: Bishkek, Kyrgyzstan
- Contact:
About rays
How to get position where the mouse ray intersects with 0 co-ordinate by Y-axis?
Do your work, don't be stupid
- crioto
- Halfling
- Posts: 59
- Joined: Fri Aug 11, 2006 8:34 pm
- Location: Bishkek, Kyrgyzstan
- Contact:
- sivael
- Halfling
- Posts: 95
- Joined: Thu Jul 10, 2008 9:46 am
Well... I don't know how to actually implement it, but having the angle of the camera and the osition on the screen You can interpolate a vector and then You just do the math - Tales works well and it's simple.
That's it for the theory. Once I finish my own implementation of the picking system I'll post it here(if I remember of course:P)
That's it for the theory. Once I finish my own implementation of the picking system I'll post it here(if I remember of course:P)
- crioto
- Halfling
- Posts: 59
- Joined: Fri Aug 11, 2006 8:34 pm
- Location: Bishkek, Kyrgyzstan
- Contact:
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.