[osg-users] replace tile with my own Node in VPB generated QuadTree

2016-12-02 Thread Trajce Nikolov NICK
Hi Robert, Community, I am hacking the VPB process again :-). The story is this: I transform tiles back from ECEF to local, do something with the Geometry and I want to replace the tile with my own Node. Spent already hours reading and trying to understand the SceneGraph with all this

Re: [osg-users] PrimitiveSets and performance

2016-12-02 Thread Robert Osfield
Hi Riccardo, I'm a surprised you saw a significant change in performance, in particular for the worse, this suggest that the merging has some kind of error in it or the driver isn't handling the larger sized primitives efficiently for some reason. One thing of note is that both the draw dispatch

Re: [osg-users] PrimitiveSets and performance

2016-12-02 Thread Glenn Waldron
Riccardo, In my experience VBOs that are too large will reduce performance (on NVIDIA at least). So you need to cap the size you use for each draw call. OSG's MergeGeometryVisitor has a parameter for "target number of vertices" that defaults to 10K per primitive set. On modern cards this can

Re: [osg-users] x and y coordinates

2016-12-02 Thread Christian Buchner
Basic OpenGL utilities libraries like GLUT that provide some mouse events in the mouseEvent(int button, int state, int x, int y); function, but this functionality is not native to OpenGL. Event->x()/y() sounds more like an OSG event handling, and there are plenty of OSG examples out there that

Re: [osg-users] x and y coordinates

2016-12-02 Thread Sebastian Messerschmidt
Hi, Hi,In opengl we can get event->x() and event->y() mouse events are there.For osg how to get these events. Thats non-sense. OpenGL doesn't deal with input events. See the osgkeyboardmouse example. Apart from the usual "try to use your brain first and present some questions with actual

[osg-users] x and y coordinates

2016-12-02 Thread Rambabu Repaka
Hi,In opengl we can get event->x() and event->y() mouse events are there.For osg how to get these events. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69577#69577