Re: [Development] QSG render thread crashes during volumetric rendering

2014-12-15 Thread Cartik Sharma
Thanks. The volume rendering seems to work fine with just one problem. When I rotate an image in a 2d window and get back to the 3d window, and try to rotate the 3d object, it crashes again. VTK must be changing the gl state and so I must call resetOpenGLState before I rotate the view except I can

Re: [Development] QSG render thread crashes during volumetric rendering

2014-12-15 Thread Sean Harmer
On Monday 15 December 2014 14:16:17 Cartik Sharma wrote: > Thanks so much. I tried a view.resetOpenGLState and it works without > crashing. One of the common ways this crashes the driver is inside calls to glDrawElements if you have a bad element buffer bound which then indexes into some random

Re: [Development] QSG render thread crashes during volumetric rendering

2014-12-15 Thread Cartik Sharma
Thanks so much. I tried a view.resetOpenGLState and it works without crashing. Best regards, Cartik On Mon, Dec 15, 2014 at 1:53 PM, Gunnar Sletta wrote: > > Maybe try a call to QQuickWindow::resetOpenGLState() after VTK finishes. > It may be some dangling GL state that messes up for the rendere

Re: [Development] QSG render thread crashes during volumetric rendering

2014-12-15 Thread Gunnar Sletta
Maybe try a call to QQuickWindow::resetOpenGLState() after VTK finishes. It may be some dangling GL state that messes up for the renderer. cheers, Gunnar > On 12 Dec 2014, at 21:19, Cartik Sharma wrote: > > Hello, > > I'm trying to do volumetric rendering with VTK using the > QVTKFramebuffer

[Development] QSG render thread crashes during volumetric rendering

2014-12-12 Thread Cartik Sharma
Hello, I'm trying to do volumetric rendering with VTK using the QVTKFramebufferObject class from https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6 Essentially this is a class based on QQuickFramebufferObject and over rides rendering with certain presets for OpenGL states. It works well for