Hi Michael, I'm not an expert in QT, but probably you can take a look to osgviewerQT example inside OSG source tree.
Rafa. On Dec 27, 2007 4:35 AM, Michael W. Hall <[EMAIL PROTECTED]> wrote: > I have created a KDevelop project using the Application framework > template. I have made my kmapview.cpp class derive from QGLWidget. I > created a member variable, m_Viewer in the KMapView class. I have in my > constructor for KMapView the following: > > m_Viewer.getCamera()->setProjectionMatrixAsPerspective( > 40., 1., 1., 100. ); > m_Viewer.getCamera()->setClearColor( osg::Vec4( 0., 0., 0., 1. ) ); > > However, it doesn't appear that anything is changing. I ran the > application after creating the project to see how it looked. With the > above changes, it appears that nothing is being effected. The window > still looks the same as when I first ran it. I have still have a window > with a white background. I have attached a picture of the application > running. > > I was hoping the big white field would have changed to an osgViewer as > the window where the white field is. Any ideas as how to replace the > white field with an osgViewer? I am a beginner with OSG. I am playing > to learn. I have read the OpenSceneGraph Quick Start Quide. > > Thanks for any help. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Rafael Gaitán Linares Instituto de Automática e Informática Industrial http://www.ai2.upv.es Ciudad Politécnica de la Innovación Universidad Politécnica de Valencia
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

