[Ardev-users] Picking with openGL and ARDev
Status: Beta
Brought to you by:
thjc
From: cbar141 c. <cb...@au...> - 2010-01-28 03:53:34
|
Hey, I am currently trying to implement picking using OpenGL with ARDev. I got your code to implement picking from http://gpwiki.org/index.php/OpenGL:Tutorials:Picking but I am having some issues. What my program does is it renders a cube on top of a fiducial marker on a robot. I use picking to select each face on the cube individually. The program is able to correctly use picking to select the faces of the cube while the robot is in the centre of the screen. But when the robot is moved to either side of the screen the faces of the cube cannot be selected when they are clicked on. Instead if the mouse is clicked a little bit away from a face, the face is then selected. It seems as though when the robot is not in the middle of the screen the program thinks the cube has been rendered to the side of where it is being displayed. Is picking compatible with ARDev? and if so do you have any suggestions as to how I could fix the problem? Kind regards, Christine Barber. |