Re: [Ardev-users] Picking with openGL and ARDev
Status: Beta
Brought to you by:
thjc
From: David O. <raz...@gm...> - 2010-01-28 21:39:25
|
Hi Christine, fancy seeing you here! I didn't realize you were doing robotics work too. I know there are some issues with the way ardev does it's camera transforms, which is on my list of things to fix, but as long as you are using the same transform in select mode as in render mode, that shouldn't be an issue. The way it only works in the center of the screen makes it sound like some kind of projection problem. It would also be worth checking that the mouse coordinates are what you expect them to be. I'm afraid I can't assist much without more detail. I can't think of any reason why opengl picking wouldn't work with ARDev. One thing to be aware of is that ARDev objects are drawn in random order, and translucent objects are not written into the depth buffer. This could mean that you end up picking something behind the object you intended. If you do get it working, it would be nice if you could submit a patch. ARDev does have some sort picking built in, but it is broken too and as far as I know just selects objects in the general area, not on a per pixel basis. Thanks, David 2010/1/28 cbar141 cbar141 <cb...@au...>: > 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. > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Ardev-users mailing list > Ard...@li... > https://lists.sourceforge.net/lists/listinfo/ardev-users > |