Re: [osg-users] Intersect Point Cloud wth precision

2016-12-23 Thread Chris Hanson
Take the results from the PolytopeIntersector, project them to screen space, measure the distance from your mouse XY to the projected point, sort the result set by this metric and take the closest. On Fri, Dec 23, 2016 at 3:22 AM, Robert Osfield wrote: > HI Bruno, > > For a point cloud you may b

Re: [osg-users] Intersect Point Cloud wth precision

2016-12-23 Thread Robert Osfield
HI Bruno, For a point cloud you may be best to implement your own osgUtil::Intersector, the design is meant to facilitate this, LineSegmentIntersector and PolytopeIntersector are both examples of subclasses from Intersector so you could use these as inspriation. Robert On 22 December 2016 at 17:

[osg-users] Intersect Point Cloud wth precision

2016-12-22 Thread Bruno Oliveira
Hello, I have a point cloud and need to get the intersection of my mouse with that point cloud. For that I use a PolytopeIntersector. I use this intersector because I found out that a LineSegmentIntersector will not do the trick. I set the polytope width and height to 5.0 and therefore I get lots

Re: [osg-users] Intersect.

2009-08-25 Thread Maxim Gammer
> For example, GIMPACT GIMPACT - very slow use BULLET physic + convex decomposition (BULLET example) 2009/8/25 Paul Melis > Danny Lesnik wrote: > >> Thank you for your help. >> I think I understand now what LineSegmentIntersector is doing. >> What might be the correct approach to test wether bou

Re: [osg-users] Intersect.

2009-08-25 Thread Paul Melis
Danny Lesnik wrote: Thank you for your help. I think I understand now what LineSegmentIntersector is doing. What might be the correct approach to test wether bounding sphere intrsect with any other project? That depends on how coarse/precise you want the intersections to be. Testing boun

Re: [osg-users] Intersect.

2009-08-25 Thread Danny Lesnik
Hi Paul, Thank you for your help. I think I understand now what LineSegmentIntersector is doing. What might be the correct approach to test wether bounding sphere intrsect with any other project? My idea is to move object with UpdateCallBack and stop movement if I have any other object on i

Re: [osg-users] Intersect.

2009-08-25 Thread Paul Melis
Danny Lesnik wrote: Hi, I'm trying to use intersect for primitive collision detection. I load one 3DS file into my scene and test whether this object has any intersections. The problem is following: Although ,there is only one object in my scene, I can clearly see that this object intersects w

Re: [osg-users] Intersect.

2009-08-25 Thread Tomlinson, Gordon
: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Intersect. Hi Paul, I just can't realize I have only one object its bs radius os 43. what is the object that I can intersect with on x =12,5? There supposed to be nothing. Thank you! Cheers, Danny -- Read

Re: [osg-users] Intersect.

2009-08-25 Thread Paul Melis
Danny Lesnik wrote: I just can't realize I have only one object its bs radius os 43. what is the object that I can intersect with on x =12,5? There supposed to be nothing. Thank you! The only suggestion I have is to check out what is really going on by writing a small OSG app that shows b

Re: [osg-users] Intersect.

2009-08-25 Thread Danny Lesnik
Hi Paul, I just can't realize I have only one object its bs radius os 43. what is the object that I can intersect with on x =12,5? There supposed to be nothing. Thank you! Cheers, Danny -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16689#166

Re: [osg-users] Intersect.

2009-08-25 Thread Paul Melis
Danny Lesnik wrote: I'm trying to use intersect for primitive collision detection. I load one 3DS file into my scene and test whether this object has any intersections. The problem is following: Although ,there is only one object in my scene, I can clearly see that this object intersects with so

[osg-users] Intersect.

2009-08-25 Thread Danny Lesnik
Hi, I'm trying to use intersect for primitive collision detection. I load one 3DS file into my scene and test whether this object has any intersections. The problem is following: Although ,there is only one object in my scene, I can clearly see that this object intersects with something. Thi

Re: [osg-users] Intersect objects

2008-08-15 Thread Tomlinson, Gordon
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Friday, August 15, 2008 4:56 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Intersect objects On Fri, Aug 15, 2008 at 9:25 AM, Victor Hurdugaci <[EMAIL PROTECTED]> wrote: &

Re: [osg-users] Intersect objects

2008-08-15 Thread Robert Osfield
On Fri, Aug 15, 2008 at 9:25 AM, Victor Hurdugaci <[EMAIL PROTECTED]> wrote: > Hello everyone, > I have two geodes and I want to intersect them in order to obtain another > object. Something like in 3dsmax – Boolean operations. > > So I need to keep from two objects only the part that is common. >

[osg-users] Intersect objects

2008-08-15 Thread Victor Hurdugaci
Hello everyone, I have two geodes and I want to intersect them in order to obtain another object. Something like in 3dsmax - Boolean operations. So I need to keep from two objects only the part that is common. Any way to do that? Thanks, Victor ___

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-15 Thread Jean-Sébastien Guay
Hello Laurent, > How can I test this kdtree? I'm using LineIntersectors to compute a few > visibility tests in my app and anything that speeds them would really help. How many is a few? I don't think it's quite worth it unless you're doing a lot. In any case, I can't send you the code, it's up

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-15 Thread Laurent Di Cesare
Jean-Sébastien Guay wrote : > I did some tests last night. Full results below. The "executive summary" > is this: > > For 2,244,800 samples (individual ray tests), > Floats: 113.121566 seconds (original) > Doubles: 113.954178 seconds (your patch) > > Difference: ~0.730655 % > > Floats: 19844.138

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-12 Thread Andy Skinner
Thanks! Hopefully Robert can give it a look when he gets back. thanks, andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay Sent: Tuesday, February 12, 2008 9:21 AM To: OpenSceneGraph Users Subject: Re: [osg-users] intersect

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-12 Thread Jean-Sébastien Guay
Hi Andy, > J-S, did you get to do any timing with my proposed use of doubles in the > intersection code? I did some tests last night. Full results below. The "executive summary" is this: For 2,244,800 samples (individual ray tests), Floats: 113.121566 seconds (original) Doubles: 113.954178 sec

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-11 Thread Jean-Sébastien Guay
Hello Andy, > J-S, did you get to do any timing with my proposed use of doubles in the > intersection code? Sorry, I was out of town finally this weekend. I will try it out tonight. J-S -- __ Jean-Sebastien Guay[EMAIL PROTECTED]

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-11 Thread Andy Skinner
J-S, did you get to do any timing with my proposed use of doubles in the intersection code? Thanks, andy ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-07 Thread Jean-Sébastien Guay
Hello Andy, > I've submitted a change to the submission list. Please take a look and tell > me if and how much it affects timing. > Great, I'll try and check it out tonight and get back to you. J-S -- __ Jean-Sebastien Guay[EMAIL PRO

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Andy Skinner
AM To: OpenSceneGraph Users Subject: Re: [osg-users] intersect() methods in LineSegment (probably others) Hello Adrian, > :-) only the first version of my kd.tree. latest i still extermly slow > with about 700K-800K intersection test per second. there are latest > kd-Tree ray check with more than

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Adrian Egli OpenSceneGraph (3D)
:-) 2008/2/6, Jean-Sébastien Guay <[EMAIL PROTECTED]>: > > Hello Adrian, > > > :-) only the first version of my kd.tree. latest i still extermly slow > > with about 700K-800K intersection test per second. there are latest > > kd-Tree ray check with more than ++ 6M rays per second. www.ompf.org > >

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Jean-Sébastien Guay
Hello Adrian, > :-) only the first version of my kd.tree. latest i still extermly slow > with about 700K-800K intersection test per second. there are latest > kd-Tree ray check with more than ++ 6M rays per second. www.ompf.org > :-) Don't take it personally, I didn't mea

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Adrian Egli OpenSceneGraph (3D)
:-) only the first version of my kd.tree. latest i still extermly slow with about 700K-800K intersection test per second. there are latest kd-Tree ray check with more than ++ 6M rays per second. www.ompf.org :-) so if we will have such a datastructure, we can do lot special effects, like global il

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Jean-Sébastien Guay
Hi Andy, > In your work, could you give me an idea of how often you intersect with a > particular line segment object? I'm trying to decide if it is worth it to > keep a Vec3d in the class (marking whether it is valid), or keeping double > versions of _s and _e. > In general terms, my prog

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Adrian Egli OpenSceneGraph (3D)
astien > Guay > Sent: Wednesday, February 06, 2008 9:52 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] intersect() methods in LineSegment (probably > others) > > Hello Andy, > > > So is anyone counting on this being floats for performance? Would > > any

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Andy Skinner
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay Sent: Wednesday, February 06, 2008 9:52 AM To: OpenSceneGraph Users Subject: Re: [osg-users] intersect() methods in LineSegment (probably others) Hello Andy, > So is anyone counting on this being floats for per

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Adrian Egli OpenSceneGraph (3D)
andy > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Andy > Skinner > Sent: Tuesday, February 05, 2008 8:57 AM > To: OpenSceneGraph Users > Subject: [osg-users] intersect() methods in LineSegment (probably > others) &g

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Jean-Sébastien Guay
Hello Andy, > So is anyone counting on this being floats for performance? Would > anyone else welcome this calculation in doubles? If you submit a patch, I can test it out in my Masters project which uses LineSegmentIntersector pretty heavily (not-quite-realtime raytracing :-) ) so that will

Re: [osg-users] intersect() methods in LineSegment (probably others)

2008-02-06 Thread Andy Skinner
d. I think I'll submit a version of LineSegment, and you (Robert and the mailing list) can tell me what you think. andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Skinner Sent: Tuesday, February 05, 2008 8:57 AM To: OpenSceneGraph Users

[osg-users] intersect() methods in LineSegment (probably others)

2008-02-05 Thread Andy Skinner
I'm not sure what changed (in OSG or our code), but one of our unittests is failing on Windows as I try to upgrade our software to OSG 2.3.3. The picking I'm doing isn't hitting anything. It appears that the use of floats in the LineSegment::intersect(BoundingSphere) method may be hurting us. I'v