Changeset 75 for osgVisual/src/cluster
- Timestamp:
- Jul 25, 2010, 1:46:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/cluster/dataIO_clusterENet.cpp
r74 r75 125 125 sendContainer->setFrameID(viewer->getFrameStamp()->getFrameNumber()); 126 126 sendContainer->setViewMatrix(viewer->getCamera()->getViewMatrix()); 127 osg::Vec3d eye, center, up;128 viewer->getCamera()->getViewMatrixAsLookAt(eye,center,up);129 sendContainer->setEye(eye);130 sendContainer->setCenter(center);131 sendContainer->setUp(up);132 //std::cout << "sending lookat: eye:"<<eye<<", center:"<<center<<", up:" << up << std::endl;133 127 134 128 // Writing node to stream … … 188 182 // Restore Viewmatrix 189 183 viewer->getCamera()->setViewMatrix(sendContainer->getViewMatrix()); 190 //viewer->getCamera()->setViewMatrixAsLookAt(sendContainer->getEye(),sendContainer->getCenter(),sendContainer->getUp());191 //std::cout << "receiving lookat: eye:"<<eye.x()<<", center:"<<center<<", up:" << up << std::endl;192 184 } 193 185 else
Note: See TracChangeset
for help on using the changeset viewer.