[osg-users] Some questions on osgWidget's double click

2013-06-28 Thread Mooneast
Questions are as following :
 To the class osgWidget , there're many event callback funtion applyed to 
support its availability except the double click event . So can I get your 
consideration on this operation ?
 And on the other hand , I have tried the way to replace the double click with 
two quick clicks . 
 But in the process , I find that OSG thinks the two quick clicks as two clicks 
when the interval between them is enough soon .
 And from the source code , I can't find the reason , and can you please give 
some suggestion ? I'm a new hand from China in OSG development , and my name is 
Jordan Lee .
 Thank you anyway !___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osgDB::ReentrantMutex ?

2013-06-28 Thread Trajce Nikolov NICK
Hi Community,

I am upgrading the txp plugin from the latest code drop from Presagis and
it seam it is really out of date (1.somthing is the osg used). Anyone can
recall osgDB::ReentrantMutex and why it is not available anymore?

Thanks for any hint

Nick

-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Viewer QT Freeze (refresh problem).

2013-06-28 Thread Dario Minieri
Hi Robert

In your QT viewer example you have 5 statics scenes. A single viewer shows a 
single object and never changes: you update the widgets using a QTimer. 

Now, I have a dynamic system where the scene graph changes continuously and 
there is OsgOcean. I think that the QT problem is the next: If I change the 
scene graph tree when QT updates the viewer QGLWidget (paintGL() calls a new 
frame()), there is a race condition.

The chain is: 

1. I make osg tree scene changes.
2. I call the QWidget::update() which call the relative paintGL() slot.
3. paintGL() slot call the osg frame(). 

This slot (paintGL()) is asynchronous (means we have no garantees when the 
paintGL() comes...), so I can return to change the osg scene tree again even if 
the frame() (an "old" frame() call) is still in execution. I have tried to use 
a mutex but without luck at now.  The crash report is next: 


Code:
0x706e1e5a in osg::Group::traverse(osg::NodeVisitor&) () from 
/usr/local/lib/libosg.so.80
(gdb) bt
#0  0x706e1e5a in osg::Group::traverse(osg::NodeVisitor&) () from 
/usr/local/lib/libosg.so.80
#1  0x7211858c in osg::Group::accept(osg::NodeVisitor&) () from 
/usr/local/lib/libosgOcean.so
#2  0x7fffef94f962 in osgViewer::Viewer::updateTraversal() () from 
/usr/local/lib/libosgViewer.so.80
#3  0x7fffef958f62 in osgViewer::ViewerBase::frame(double) () from 
/usr/local/lib/libosgViewer.so.80
#4  0x75d37633 in GfxViewer::paintGL() () from 
/usr/local/lib/libSimViewer.so
#5  0x7fffefe3b450 in QGLWidget::glDraw() () from 
/usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#6  0x7fffefe3ade9 in QGLWidget::paintEvent(QPaintEvent*) () from 
/usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#7  0x76e3a802 in QWidget::event(QEvent*) () from 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8  0x7fffefe3cc38 in QGLWidget::event(QEvent*) () from 
/usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#9  0x76deae9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x76def30a in QApplication::notify(QObject*, QEvent*) () from 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x768c656e in QCoreApplication::notifyInternal(QObject*, QEvent*) 
() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x76e36524 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x76fff68c in QWidgetPrivate::repaint_sys(QRegion const&) () from 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x76e2b794 in QWidgetPrivate::syncBackingStore() () from 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x76e3ae4c in QWidget::event(QEvent*) () from 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x7fffefe3cc38 in QGLWidget::event(QEvent*) () from 
/usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#17 0x76deae9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x76def30a in QApplication::notify(QObject*, QEvent*) () from 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x768c656e in QCoreApplication::notifyInternal(QObject*, QEvent*) 
() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x768ca3f1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, 
int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x768f4a63 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x73e62ab5 in g_main_context_dispatch () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x73e62de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x73e62ea4 in g_main_context_iteration () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x768f4bf6 in 
QEventDispatcherGlib::processEvents(QFlags) () 
from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#26 0x76e8fc1e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x768c52bf in 
QEventLoop::processEvents(QFlags) () from 
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x768c5548 in 
QEventLoop::exec(QFlags) () from 
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x768ca708 in QCoreApplication::exec() () from 
/usr/lib/x86_64-linux-gnu/libQtCore.so.4

 


You can suggest to me some example to look, using QTViewer and dynamics scenes?

Thank you!

Cheers,
Dario

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54965#54965





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgDB::ReentrantMutex ?

2013-06-28 Thread Trajce Nikolov NICK
Found it, it was moved to OpenThreads

Nick


On Fri, Jun 28, 2013 at 1:22 PM, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> wrote:

> Hi Community,
>
> I am upgrading the txp plugin from the latest code drop from Presagis and
> it seam it is really out of date (1.somthing is the osg used). Anyone can
> recall osgDB::ReentrantMutex and why it is not available anymore?
>
> Thanks for any hint
>
> Nick
>
> --
> trajce nikolov nick
>



-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OpenGL 3.2 support in OS X 10.7 (Lion)

2013-06-28 Thread Robert Osfield
Hi Roman,

I'm currently looking through my archives for pending submissions and
spotted this post from you, it was never formally addressed as a
submission though, is it intended to be merged?  Could you get things
working under svn/trunk and send me the whole files zipped up to avoid
the forum mangling the attachments.

Thanks,
Robert.

On 2 November 2012 13:08, Roman Grigoriev  wrote:
> Hi, I followed to advice of David Garcia
> to modify buffer object as he said but it doesn't work on linux.
> To use forward context we definitly need VAO.
> Here is my modified versions to support VAO.
> In submissions there is GraphicsContextX11.cpp to open true 3.1 and up window.
> Thank you!
> Cheers,
> Roman
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=50952#50952
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/266_1351861595._536.
> http://forum.openscenegraph.org//files/bufferobject_202.cpp
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] adding barrel distortion for stereoscopic rendering in Oculus Rift head set

2013-06-28 Thread Roy Arents
Hi,

Jeff (jbail) pm'd me as his post is not approved yet. He has posted some code 
on the Oculus developer forum: 

https://developer.oculusvr.com/forums/viewtopic.php?f=39&t=1885&sid=4a751a276c8632e6671109c636244188
 

I did not tested it myself, but it looks great! Until his reply gets approved, 
he asked me to post this link here on his behalf. Hopefully this can get 
everyone started and we take osg/oculus to the next level

Thank you!

Cheers,
Roy

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54987#54987





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org