Re: [osg-users] osgText SCREEN_COORDS picking problem
It looks like the bounding box is not being calculate correctly, but if the bounding box can be drawn when using SCREEN_COORDS correctly, why can't the bounding box be returned correctly? Kurt -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41357#41357 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgText SCREEN_COORDS picking problem
Hi Kurt, osgText bounds seem to be an ongoing issue. There have been some changes made since OSG 2.8, so you should probably try using the trunk and see if it behaves differently. Here's some possibly (but probably not) related reading: http://www.openscenegraph.org/projects/osg/changeset/12467 http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2011-June/052394.html -- Terry Welsh mogumbo 'at' gmail.com www.reallyslick.com Message: 10 Date: Wed, 13 Jul 2011 20:33:17 +0200 From: Kurt Sierens ksier...@msn.com To: osg-users@lists.openscenegraph.org Subject: [osg-users] osgText SCREEN_COORDS picking problem Message-ID: 1310581997.m2f.41...@forum.openscenegraph.org Content-Type: text/plain; charset=UTF-8 Hi, We are using OSG 2.8, and I am currently trying to add picking to osgText objects. When I use OBJECT_COORDS, it works fine, but when I use SCREEN_COORDS, it will only pick the text when the cursor is close to the position, almost like the bounding box is not scaled correctly. Is there anyway to get around this? Also, the text is being displayed using SCREEN axis alignment and LEFT_TOP alignment. Thank you! Cheers, Kurt ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgText SCREEN_COORDS picking problem
Thanks Terry, I found that if I use an auto transform with scale and rotate to screen, user defined axis alignment, and object character size mode, it displays correctly and picking works. Kurt -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41365#41365 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgText SCREEN_COORDS picking problem
Hi, We are using OSG 2.8, and I am currently trying to add picking to osgText objects. When I use OBJECT_COORDS, it works fine, but when I use SCREEN_COORDS, it will only pick the text when the cursor is close to the position, almost like the bounding box is not scaled correctly. Is there anyway to get around this? Also, the text is being displayed using SCREEN axis alignment and LEFT_TOP alignment. Thank you! Cheers, Kurt -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41344#41344 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org