Re: [osg-users] Hide mouse cursor from CameraManipulator

2016-01-11 Thread Bernard Dalton
Thanks for your reply and sorry for the late answer (week-end  :) ).
This work as intended and my CameraManipulator is nearly done, I still have one 
issue :

In the Trackball Manipulator (or other manipulator which move with the mouse) 
when you push the mouse button, move the mouse and then release the button 
before stopping the mouse, the camera keep moving as the same speed as before 
you release the button.

I want to remove this behavior in my Manipulator and stop the movement when the 
mouse is released. I have looked in the inherited method performMovement() and 
performMovementLeftMouseButton() but I didn't find what I needed to change.

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





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


Re: [osg-users] Migration from OSG 3.1.5 to 3.4.0 / Qt 4 to Qt 5

2016-01-11 Thread Andrew Cunningham
Ok, now I am having a new problem.
I am now transitioning to QT 5.5 and Visual Studio 2015 Update 1 from QT 5.4 
and VS 2010 ( using OSG 3.4.0)

I rebuilt OSG for Visual Studio 2015 Update 1
I built QT5.5  for Visual Studio 2015 Update 1

The OSG examples all work fine, except OSGViewerQT

When osgViewerQT starts up

>   osg130-osgd.dll!osg::State::initializeExtensionProcs() Line 959 C++
osg130-osgd.dll!osg::GraphicsContext::makeCurrent() Line 620C++
osg130-osgQtd.dll!osgQt::GraphicsWindowQt::realizeImplementation() Line 
777 C++
osg130-osgd.dll!osg::GraphicsContext::realize() Line 511C++
osg130-osgViewerd.dll!osgViewer::CompositeViewer::realize() Line 612
C++
osg130-osgViewerd.dll!osgViewer::ViewerBase::frame(double 
simulationTime) Line 681  C++
osgviewerQtd.exe!ViewerWidget::paintEvent(QPaintEvent * event) Line 85  
C++



   const char* vendor = (const char*) glGetString( GL_VENDOR );

 returns NULL, so of course nothing will work from now on.

Digging through the code, I found that  in QGLContext::makeCurrent
>   Qt5OpenGLd.dll!QGLContext::makeCurrent() Line 3578  C++
Qt5OpenGLd.dll!QGLWidget::makeCurrent() Line 4071   C++
osg130-osgQtd.dll!osgQt::GraphicsWindowQt::makeCurrentImplementation() 
Line 840 C++
osg130-osgd.dll!osg::GraphicsContext::makeCurrent() Line 611C++
osg130-osgQtd.dll!osgQt::GraphicsWindowQt::realizeImplementation() Line 
777 C++
osg130-osgd.dll!osg::GraphicsContext::realize() Line 511C++


const char *renderer = reinterpret_cast(d->guiGlContext->functions()->glGetString(GL_RENDERER));

returns a valid string...

Any ideas on this one? It looks like we do not have a valid GL context when OSG 
needs it.

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





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


Re: [osg-users] Migration from OSG 3.1.5 to 3.4.0 / Qt 4 to Qt 5

2016-01-11 Thread Andrew Cunningham
I see my error, I built QT 5.5 with OpenGL ES 2 support, not desktop OpenGL 
support.

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





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