[osg-users] The problem disappeared! (problem with osgUtil::LineSegmentIntersector) Make it please in the next version.
GammerMax at yandex.ru
Tue Jul 29 11:17:32 PDT 2008
I decided my issue. I removed the code from the file. (as was the case previously in 2.5.2). The problem disappeared! Make it please in the next version.
removed the code from the file: line 290 ..
double epsilon = 1e-8;
osg::Vec3d delta_e_end = _end - e;
osg::Vec3d delta_s_start = _start - s;
double scale = 0.001;
s += (delta_s_start * scale);
e += (delta_e_end * scale);
code version 2.5.2:
s = _start;
e = _end;
The problem disappeared! Make it please in the next version.
28.07.08, 22:44, "GMD GammerMaxyandex.ru" <GammerMax at yandex.ru>:
> Here is the small example, where described problem appeares. Example is modified example of osgpick (chenged code which returns name of object and osg scene). To see this problem you must go in the deep of room (way is showen in 00.jpeg). Then you need make several clicks in different positions (movements bitween positions must be small) and you will see that cursor often falls throught the object over which cursor is (possible positions is showen on 11.jpg). There is two archives in attachement (with textures and without them). Code is in osgpick.zip file which taken from example osgpick. I hope this is enough to illustrate described problem. And I think it will be not good if this error appeares in this release (2.6.0).
> Thanks, Max.
> (download: enter number, click green button)
> Thanks, Max.
> 28.07.08, 10:47, "GMD GammerMaxyandex.ru" <GammerMax at yandex.ru>:
> > Ok, I'll make small example and show where problem occures. I'll try do this today.
> > 28.07.08, 00:33, "sherman wilcox" <wilcox.sherman at gmail.com>:
> > > Can you make a small and simple prototype that *reliably* reproduces
> > > the problem? You have a better chance of getting help that way.
> > > On Sun, Jul 27, 2008 at 2:50 AM, GMD GammerMaxyandex.ru
> > > <GammerMax at yandex.ru> wrote:
> > > > Some offers of OSG 2.6.0( problems with new version).
> > > > Let's wait with OSG 2.6.0 release. I asked this because I found a problem with osgUtil::LineSegmentIntersector function.
> > > > In OSG v 2.5.5 version of OSG function viewer->computeIntersections(x,y, hlist) works very strange - when cursor movements over object is short it(cursor) falls throught the object and function returns name of object which is behind current(object over which cursor is). In earlyer(less 2.5.2) versions of OSG this error has never appeared. How can I solve this problem in this(2.5.5) version of OSG?
> > > > It is necessary to solve the problem until OSG 2.6.0 release.
> > > > Thanks in advance. Best regards, Max.
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > osg-users at lists.openscenegraph.org
> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > > >
> > > _______________________________________________
> > > osg-users mailing list
> > > osg-users at lists.openscenegraph.org
> > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Яндекс.Открытки на все случаи жизни http://cards.yandex.ru/
osg-users mailing list
osg-users at lists.openscenegraph.org
More information about the osg-users