On 8/06/11 10:59 , Diana Kittelmann wrote: > Yeah, I'm just seeing the blue background. And yaeh im struggeling with the > math to set up my matrix. > > I set it up like this: > > while(!viewer.done()) > { > osg::EllipsoidModel convert; > convert.convertLatLonHeightToXYZ(lat, lon, height, x, y, z); > > osg::Vec3 pos(x, y, z); > osg::Matrixd matrix; > matrix.setRotate(osg::Quat(osg::DegreesToRadians(0.0), osg::X_AXIS, > osg::DegreesToRadians(0.0), osg::Y_AXIS, osg::DegreesToRadians(0.0), > osg::Z_AXIS)); > matrix.setTrans(pos); > viewer.getCamera(); > viewer.frame(); > } > > But I'm not sure if this is right.
Did you forget to include the bit where you set the matrix to the camera? Something like: viewer.getCamera()->setViewMatrix(matrix); /ulrich _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org