The error is similar to one which I had with the API. You could check in
oculusdevice.cpp, if the position array is 3 dimensional instead of 2?
Similar check that the update the shaderprogram to let the position be a
Vec3 instead of Vec2.

Kind regards
Patrik


On Thu, Sep 4, 2014 at 3:18 PM, Felipe Ramos <[email protected]> wrote:

> Hi,
>
> I'm having some trouble trying to integrate OSG (3.2.1) with Oculus Rift
> (SDK 0.4.1) using OculusViewer library. I'm using Mac OS X 10.9 (Mavericks)
> and Xcore (5.1).
> I can compile my code without any problem, but when I try to run it
> crashes. Here is a small of the log where the crash occurs (the complete
> log is attached to this message):
>
> Thread 7 Crashed:
> 0   com.apple.driver.AppleIntelHD5000GraphicsGLDriver   0x00001234003a5708
> IntelVertexArray::setElemData(unsigned int, unsigned int, unsigned short,
> unsigned int) + 140
> 1   com.apple.driver.AppleIntelHD5000GraphicsGLDriver   0x00001234003a5667
> IntelVertexArray::extractState(GLDVertexArrayDataRec const*, unsigned long
> long) + 81
> 2   libGPUSupportMercury.dylib          0x00007fff9118d6b6
> gpusLoadCurrentVertexArray + 188
> 3   com.apple.driver.AppleIntelHD5000GraphicsGLDriver   0x00001234003a3227
> updateDispatch + 1355
> 4   GLEngine                            0x00007fff9aecf2a0
> gleDoDrawDispatchCore + 502
> 5   GLEngine                            0x00007fff9ae76712
> gleSetupAndDrawArraysOrElementsOutOfLine_ListExec + 841
> 6   GLEngine                            0x00007fff9ae0bc91 gleCallList +
> 165
> 7   libosgUtil.100.dylib                0x000000010e8bea59
> osgUtil::RenderLeaf::render(osg::RenderInfo&, osgUtil::RenderLeaf*) + 181
> 8   libosgUtil.100.dylib                0x000000010e8bb665
> osgUtil::RenderBin::drawImplementation(osg::RenderInfo&,
> osgUtil::RenderLeaf*&) + 309
> 9   libosgUtil.100.dylib                0x000000010e8c2e27
> osgUtil::RenderStage::drawImplementation(osg::RenderInfo&,
> osgUtil::RenderLeaf*&) + 709
> 10  libosgUtil.100.dylib                0x000000010e8c1f31
> osgUtil::RenderStage::drawInner(osg::RenderInfo&, osgUtil::RenderLeaf*&,
> bool&) + 293
> 11  libosgUtil.100.dylib                0x000000010e8c28c8
> osgUtil::RenderStage::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&) + 1058
> 12  libosgUtil.100.dylib                0x000000010e8ca724
> osgUtil::SceneView::draw() + 938
> 13  libosgViewer.100.dylib              0x000000010e789396
> osgViewer::Renderer::draw() + 856
> 14  libosg.100.dylib                    0x000000010e417673
> osg::GraphicsContext::runOperations() + 185
> 15  libosg.100.dylib                    0x000000010e456325
> osg::OperationThread::run() + 413
> 16  libosg.100.dylib                    0x000000010e419e31
> osg::GraphicsThread::run() + 89
> 17  libOpenThreads.20.dylib             0x000000010e39ebc2
> OpenThreads::ThreadPrivateActions::StartThread(void*) + 178
> 18  libsystem_pthread.dylib             0x00007fff9924a899 _pthread_body +
> 138
> 19  libsystem_pthread.dylib             0x00007fff9924a72a _pthread_start
> + 137
> 20  libsystem_pthread.dylib             0x00007fff9924efc9 thread_start +
> 13
>
> Can anyone help me to solve this? I don't know how to fix it...
>
> Thank you!
>
> Cheers,
> Felipe
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60950#60950
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to