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.
Diana
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=40200#40200
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org