loopy wrote:Hi,
I am struggling mightily to get OSG 3.4.0 to work with QT 5.4.2 on Windows 7 (64).
- The sample application, OSGViewerQT works as expected with OSG_FILE_PATH set.
- However, when I ( as a quick test) embed the "ViewerWidget" from OSGViewerQT inside a QHBoxLayout inside a MainWindow, the ViewerWidget does not show any geometry ( e.g. the "cow.osgt" etc). Interestingly the "popupWidget" that displays the "truck" geometry works as expected - presumably as it is a separate Window. So there is some issue with embedding the OSG Widget(s) inside other QWidgets?
OK, I sorted this one out. It was confusion over 'old ways' to use OSG/QT and the new, improved ways to do this.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65929#65929
Hi Andrew
The reason why z buffer etc. Is off is the your setup hasn't set it up as there is no global stateset to the camera you are passing to the Viewer.
I have discussed this topic quite a but since OSG-3.2. Please see the archives.
Robert.