Hi Stefan, 

 

Sry I forgot to mention that I already built mitk (superbuild) with
DESIRED_QT_VERSION to 5 using the Qt5.3.2 Desktop OpenGL version. 

VTK and mitk built just fine with qt5.  All qt dependencies are properly
linked to mitk and vtk.

 

I can imagine that qt is not the problem, all widgets are working well. But
setting the QmitkRenderWindow to a 3D View by:

 

renderWindow.GetRenderer()->SetMapperID(mitk::BaseRenderer::Standard3D);

 

produces an error from vtk, telling me "vtkLodProp3D Index out of Range" and
as a result of that nothing is shown in the renderwindow.

I tested switching the mapperID to Standard2D and everything works as
expected. 

 

I only can assume that there is no problem with the widgets itself, but
rather with the mitk(vtk) rendering? 

We also tested it on Mac OS X 10.9 with the same result. All widgets are
working, but not the 3D view, producing the same vtk error. 

 

 

Thank you,

Alex

 

 

 

 

Von: Kislinskiy, Stefan [mailto:[email protected]] 
Gesendet: Mittwoch, 26. November 2014 11:16
An: Alexander Zehner; [email protected]
Betreff: AW: [mitk-users] 3D render error with qt5 widgets

 

Hi,

 

We just merged Qt5 support into the MITK master, it is not even officially
announced yet. :-) To get things up and running you have to switch the CMake
variable DESIRED_QT_VERSION from 4 to 5 (superbuild level). You most
probably see a new variable appearing then after configuration:
QT5_INSTALL_PREFIX. Set this variable to the path in which the bin folder of
Qt5 resides, not the bin folder itself. The MITK superbuild will build all
third-party libraries including VTL with Qt5-support then and apply
according patches if necessary. I would recommend to do a superbuild from
scratch. Make also sure to install a Qt5 version with Desktop OpenGL support
instead of ANGLE.

 

Best,

Stefan

 

Von: Alexander Zehner [ <mailto:[email protected]>
mailto:[email protected]] 
Gesendet: Dienstag, 25. November 2014 12:24
An:  <mailto:[email protected]>
[email protected]
Betreff: [mitk-users] 3D render error with qt5 widgets

 

Hi all,

 

I pulled the current master branch of the MITK git repo (24.11) and I
successfully compiled from source, switching the use MITK_USE_QT to ON. 

Since we are using Qt5 in our application, we are able to embed the ported
QmitkWidgets (to Qt5) in our application. 

Everything works fine except the 3D rendering.

 

My example code looks like this:

 

mitk::RenderingManager::GetInstance()->InitializeViewsByBoundingObjects(this
->dataStorage); 

 

QmitkRenderWindow renderWindow;

renderWindow.GetRenderer()->SetDataStorage(this->dataStorage); 

renderWindow.GetRenderer()->SetMapperID(mitk::BaseRenderer::Standard3D);

 

When I'm running this code I get a runtime error from VTK and nothing is
displayed on the window:

 

ERROR: In ..\MITK\VTK-src\Rendering\Core\vtkLODProp3D.cxx, line 925

vtkLODProp3D (000000C9A62197E0): Index out of range!

 

Am I missing something to properly initialize a 3D view, or is the 3D
rendering option not yet supported with the new Qt5 port? 

 

Thanks!

 

Alex

 

 

 

 

 

 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to