[osg-users] The problem disappeared! (problem withosgUtil::LineSegmentIntersector) Make it please in the next version.
Paul Martz
pmartz at skew-matrix.com
Tue Jul 29 12:14:01 PDT 2008
You'll need to post a changed copy of the entire file to osg-submissions.
-Paul
> -----Original Message-----
> From: osg-users-bounces at lists.openscenegraph.org
> [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf
> Of GMD GammerMaxyandex.ru
> Sent: Tuesday, July 29, 2008 12:18 PM
> To: osg-users at lists.openscenegraph.org; Robert Osfield
> Subject: [osg-users] The problem disappeared! (problem
> withosgUtil::LineSegmentIntersector) Make it please in the
> next version.
>
> 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.
>
> LineSegmentIntersector.cpp
>
> removed the code from the file: line 290 ..
>
> double epsilon = 1e-8;
> if ((s-e).length()<epsilon)
> {
> 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.
> > files:
> > (download: enter number, click green button)
> > http://narod.ru/disk/1711280000/osgpick.zip.html
> > http://narod.ru/disk/1711073000/00.JPG.html
> > http://narod.ru/disk/1711279000/11.JPG.html
> > http://narod.ru/disk/1712663000/museum_with_textures.zip.html
> > 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-opensce
> negraph.org
> > > > >
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > osg-users at lists.openscenegraph.org
> > > >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
> negraph.org
>
>
> --
> Яндекс.Открытки на все случаи жизни http://cards.yandex.ru/
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
> negraph.org
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
> negraph.org
>
More information about the osg-users
mailing list