Re: [osg-users] intersection tests

2017-02-19 Thread Trajce Nikolov NICK
Hi Robert, Julien, it is my bad :( .. Again, and I apologize for the noise. I studied the code, understood it, and it is just perfect and works great. The story is that in the system setup there is a HOT Server (with a copy of the database) and IG channels (with their own copy of the databases).

Re: [osg-users] intersection tests

2017-02-19 Thread Robert Osfield
On 18 February 2017 at 21:25, Trajce Nikolov NICK wrote: > yes ... > > Now, digging into the bits of the IntersectionVisitor::apply(osg::Transform& > transform) I am seeing it it keeps a stack of the ModelMatrices and they are > correct, as the visitor traverse the

Re: [osg-users] intersection tests

2017-02-18 Thread Trajce Nikolov NICK
yes ... Now, digging into the bits of the IntersectionVisitor::apply(osg::Transform& transform) I am seeing it it keeps a stack of the ModelMatrices and they are correct, as the visitor traverse the scene it premult the matrices from the MatrixTransforms, to this is ok the code (the osg

Re: [osg-users] intersection tests

2017-02-18 Thread Julien Valentin
Hi nick okay you're casting ray in world coordinates on model in world coordinates... I haven't understood Then You should not consider the CoordinateFrames as matrix are the same. After a look at osgViewer::View::comuteIntersections i noticed intersecrionvisitor is created by this line

Re: [osg-users] intersection tests

2017-02-18 Thread Trajce Nikolov NICK
Thanks Julien for your time to give it a look I went further, debugging view->computeIntersections(). The osgpick is my starting point and my code is only a mimic of what osgViewer::View::computeIntersection is doing, using the IntersectionVisitor A good sample for reproduction is to have some

Re: [osg-users] intersection tests

2017-02-18 Thread Julien Valentin
Hi nick At first glance, I don't see any problem with your code... If you just want to code a mousepicker osgViewer::View::computeIntersections(screenx,screeny,outintersections)) would fit your needs. Code: // class to handle events with a pick class PickHandler : public osgGA::GUIEventHandler {

Re: [osg-users] intersection tests

2017-02-17 Thread Trajce Nikolov NICK
It has to do with MatrixTransforms and probably the IntersectionVisitor. I had my scene rotated a bit and it was buggy. With identity matrix on top works well ... Trying to debug if I can find something On Thu, Feb 16, 2017 at 8:31 PM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote:

[osg-users] intersection tests

2017-02-16 Thread Trajce Nikolov NICK
Hi Community, I am experiencing some bad results from various intersection tests. I have a database with buildings and for some reason the intersection tests are failing to get me the roofs of the buildings ... Here some snippets of my tries: http://pastebin.com/s7aZk8wA

Re: [osg-users] Intersection tests on paged PagedLODs

2011-03-31 Thread Trystan Larey-Williams
I finally got some time to try this and it's exactly what I needed. Another point I was missing was setting the range on the PagedLODs. I had a bounding vol defined but not the range. Thanks for the tip! -Trystan -- Read this topic online here:

[osg-users] Intersection tests on paged PagedLODs

2011-03-13 Thread Trystan Larey-Williams
Hi all, I'm looking for a way to selectively load PagedLODs saved to files on an intersection test. I've built up an Octree represented by a PagedLOD node for each subdivision (similar to the quad-tree example in the 3.0 beginner's guide). Given an arbitrary point or line, I want to be able to

Re: [osg-users] Intersection tests on paged PagedLODs

2011-03-13 Thread Wang Rui
Hi Trystan, Try using IntersectionVisitor::setReadCallback() to set a custom callback for reading paged files into memory (or any other operation you wish). The node loaded at runtime will automatically be removed after the traversal of the subgraph. BTW, thanks for supporting the 3.0 Beginners