<div dir="ltr">Hello vtkusers,<div><br></div><div><div>I'm working on integrating VTK in into the Qt Quick Scene Graph using an FBO approach. <br></div></div><div><br></div><div><div>I currently have something that is close, but not quite there - the first frame rendered to the FBO by VTK works as expected - the VTK rendered scene shows up in the Qt Quick window with correct layering and Qt Quick Item properties and animations work like any other Qt Quick component. Great! But then... the second time the Qt Scene graph requests VTK to render to the FBO nothing shows up.</div>
<div><br></div><div>Here is my minimal example to demonstrate the problem I'm having:</div><div><br></div><div><a href="https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6">https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6</a></div>
<div><br></div><div>It includes a README.md with some simple build instructions. To trigger a second VTK-render-to-FBO, you can resize the window by one pixel (or uncomment the update() call at line 64 of QVTKFrameBufferObjectItem.cpp)</div>
<div><br></div></div><div>Thanks in advance for any pointers or suggestions!</div><div><br></div><div>Taylor</div><div><br></div><div>PS - Here are some links to provide more context and information:</div><div><br></div>
<div>
<div>Relevant Qt Quick 2 Docs</div><div><a href="http://qt-project.org/doc/qt-5/qquickframebufferobject.html">http://qt-project.org/doc/qt-5/qquickframebufferobject.html</a></div><div><a href="http://qt-project.org/doc/qt-5/qsgsimpletexturenode.html">http://qt-project.org/doc/qt-5/qsgsimpletexturenode.html</a></div>
<div><a href="http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph-renderer.html">http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph-renderer.html</a></div><div><br></div><div>Presentation by James Turner at Qt Developer Days<br>
</div><div><a href="http://www.qtdeveloperdays.com/sites/default/files/presentation_pdf/james-turner-devdays-2013-talk.pdf">http://www.qtdeveloperdays.com/sites/default/files/presentation_pdf/james-turner-devdays-2013-talk.pdf</a> (video: <a href="https://www.youtube.com/watch?v=BfIaTccy6HQ">https://www.youtube.com/watch?v=BfIaTccy6HQ</a>)</div>
<div><br></div><div>Qt's example of what I'm trying to do except using "raw" OpenGL instead of VTK and not using the QQuickFramebufferObject convenience class:<br></div><div><a href="http://qt-project.org/doc/qt-5/qtquick-scenegraph-textureinsgnode-example.html">http://qt-project.org/doc/qt-5/qtquick-scenegraph-textureinsgnode-example.html</a></div>
</div><div><br></div></div>