Re: [osg-users] qmlosg (QtQuick + osg integration)

2013-07-05 Thread René Schmitz
Hi,

after trying to create a osgQML item myself and finding both of your
projects, I thought I'd let you know that I ended up using
QuickPaintedItem as it can draw to a FBO (I had to use the y-inverted one).

This solution works charming and spares me the hussle of creating FBOs
myself or switch contexts. I have to admit though that I don't need
permanent updates of the scene, just reacting to mouse and keyboard
events and that there might be a drawback in performance if the scene is
updated permanently using a timer. For that maybe the textureinthread
example coming with the Qt sources might offer a better way.

Hope that helps.

Cheers,
  René

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





___
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-07-05 Thread Björn Blissing

Jan Ciger wrote:
 
 Just a quick report - I have managed to compile your code and it does
 indeed work with the Oculus SDK on Linux. I have send you a pull
 request with a modification already.
 


Great!

I have merged your changes. On windows the CMake module path started searching 
from the wrong path, so I changed it so that it always starts searching from 
the current CMakeLists.txt file directory. 

I also made the style of the CMake files consistent with what OpenSceneGraph 
uses. Found and removed some unused CMake code parts as well.

Best regards
Björn

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





___
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-07-05 Thread Jan Ciger
On Fri, Jul 5, 2013 at 11:01 AM, Björn Blissing bjorn.bliss...@vti.se wrote:
 Great!

 I have merged your changes. On windows the CMake module path started 
 searching from the wrong path, so I changed it so that it always starts 
 searching from the current CMakeLists.txt file directory.

 I also made the style of the CMake files consistent with what OpenSceneGraph 
 uses. Found and removed some unused CMake code parts as well.


OK, nice. I will check it out later tonight.

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


[osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2013-07-05 Thread Lokesh
I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32
compiler after configuring with cmake 2.8.11 on windows 7 (basic).

But, in the compilation process i got the following errors :-


In file included from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtGui/qopengl.h:55:0,
 from C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/qgl.h:47,
 from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/QGLWidget:1,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:24,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/GLES2/gl2.h:38:26: error: conflicting
declaration 'typedef khronos_intptr_t GLintptr'
In file included from C:/OpenSceneGraph-3.1.8/include/osg/Array:34:0,
 from C:/OpenSceneGraph-3.1.8/include/osg/Uniform:23,
 from C:/OpenSceneGraph-3.1.8/include/osg/StateSet:20,
 from C:/OpenSceneGraph-3.1.8/include/osg/State:18,
 from C:/OpenSceneGraph-3.1.8/include/osg/GraphicsContext:17,
 from
C:/OpenSceneGraph-3.1.8/include/osgViewer/GraphicsWindow:17,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:17,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/OpenSceneGraph-3.1.8/include/osg/BufferObject:47:21: error: 'GLintptr'
has a previous declaration as 'typedef int GLintptr'
In file included from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtGui/qopengl.h:55:0,
 from C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/qgl.h:47,
 from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/QGLWidget:1,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:24,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/GLES2/gl2.h:39:26: error: conflicting
declaration 'typedef khronos_ssize_t GLsizeiptr'
In file included from C:/OpenSceneGraph-3.1.8/include/osg/Array:34:0,
 from C:/OpenSceneGraph-3.1.8/include/osg/Uniform:23,
 from C:/OpenSceneGraph-3.1.8/include/osg/StateSet:20,
 from C:/OpenSceneGraph-3.1.8/include/osg/State:18,  
 from C:/OpenSceneGraph-3.1.8/include/osg/GraphicsContext:17,
 from
C:/OpenSceneGraph-3.1.8/include/osgViewer/GraphicsWindow:17,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:17,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/OpenSceneGraph-3.1.8/include/osg/BufferObject:48:21: error: 'GLsizeiptr'
has a previous declaration as 'typedef int GLsizeiptr'


i googled regarding these conflicting declaration errors, but didn't find
anything. 

Please help me.

Regards
Lokesh


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


Re: [osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2013-07-05 Thread Jan Ciger
On Fri, Jul 5, 2013 at 1:47 PM, Lokesh lokeshkumar.2...@msit.in wrote:
 I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32
 compiler after configuring with cmake 2.8.11 on windows 7 (basic).

 But, in the compilation process i got the following errors :-

I assume you are not trying to use OpenGL ES with Qt on desktop. In
that case that is likely another occurrence of a Qt bug, where they
expect some things to be #defines instead of typedefs - that breaks
their macros. There were similar issues with other compilers too. Try
the latest Qt 5.1, perhaps it is fixed. If not, you can try building
with Visual Studio Express, for that one I have submitted some fixes.

Regards,

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


Re: [osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2013-07-05 Thread Jan Ciger
On Fri, Jul 5, 2013 at 1:47 PM, Lokesh lokeshkumar.2...@msit.in wrote:
 I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32
 compiler after configuring with cmake 2.8.11 on windows 7 (basic).

 But, in the compilation process i got the following errors :-

Oh another thing - http://qt-project.org/forums/viewthread/24535
Make sure that you are building against the correct version of Qt -
the one with the -opengl suffix. The normal one has its own minimal
OpenGL ES implementation using Direct3D and causes conflicts when you
try using normal OpenGL.

Regards,

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