Re: [osg-users] Polytope from view frustum

2016-11-02 Thread Glenn Waldron
Also check out osgShadow::ConvexPolyhedron if you want to extract the corner verts or make geometry from it. Glenn Waldron On Wed, Nov 2, 2016 at 9:47 AM, Jeff Biggs wrote: > > try this... > > osg::Polytope GetViewPolytope( > const osg::Matrix , > const

Re: [osg-users] Polytope from view frustum

2016-11-02 Thread Jeff Biggs
try this... osg::Polytope GetViewPolytope( const osg::Matrix , const osg::Matrix , const osg::Matrix ) { osg::Polytope clipspace; clipspace.setToUnitFrustum(true, true); // composite matrix osg::Matrixd mvp = m * v * p; // transform from clip space to local

Re: [osg-users] Polytope from view frustum

2016-11-02 Thread Trajce Nikolov NICK
Thanks Robert On Wed, Nov 2, 2016 at 9:43 AM, Robert Osfield wrote: > On 1 November 2016 at 21:45, Trajce Nikolov NICK > wrote: > > Hi Community, > > > > anyone knowing how to achieve this and with will to share? > > > > Thanks a bunch

Re: [osg-users] Polytope from view frustum

2016-11-02 Thread Robert Osfield
On 1 November 2016 at 21:45, Trajce Nikolov NICK wrote: > Hi Community, > > anyone knowing how to achieve this and with will to share? > > Thanks a bunch as always !! Have a look at the API's... First one to look at is osg::Polytope, create one of these with a

[osg-users] Polytope from view frustum

2016-11-01 Thread Trajce Nikolov NICK
Hi Community, anyone knowing how to achieve this and with will to share? Thanks a bunch as always !! Cheers, Nick -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Polytope - Intersections sorted by distance of localIntersectionPoint and the reference plane

2012-09-27 Thread Ron Mayer
Hi again, After thinking about it here is what I think the answer is. Let's say our polytope intersects two circles (or rectangles) A and B, each at two points A1, A2 and B1, B2 The center point of A1 and A2 is computed, denote by centerA12 The center point of B1 and B2 is computed, denote by

[osg-users] Polytope - Intersections sorted by distance of localIntersectionPoint and the reference plane

2012-09-26 Thread Ron Mayer
Hi, I am trying to understand what are (1) distance of the localIntersectionPoint, (2) the reference plane in a polytope intersector, and (3) last plane of the polytope, which are used to sort the intersections of a Polytope intersector. I know that a volume is created with half-planes in a

[osg-users] Polytope

2011-09-29 Thread Peter Wraae Marino
Hi, I just started to use the polytope and polytopeintersect and have some results I did not expect. In the code there are 3 cases that creates an osg::Box which is the cube I want to intersect with the plane. The 3 cases have each a different solution, where I expect them all to have the

[osg-users] Polytope intersector

2007-12-19 Thread Tim Moore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 From: Paul Martz [EMAIL PROTECTED] Subject: Re: Mouse Picking (again...) Newsgroups: gmane.comp.graphics.openscenegraph.user Date: 2007-12-13 20:44:13 GMT (5 days, 19 hours and 28 minutes ago) Here I am, then, asking anyone that can answer