Changeset 73 for osgVisual/src/cluster
- Timestamp:
- Jul 24, 2010, 10:48:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/cluster/dataIO_clusterENet.cpp
r72 r73 125 125 sendContainer->setFrameID(viewer->getFrameStamp()->getFrameNumber()); 126 126 sendContainer->setViewMatrix(viewer->getCamera()->getViewMatrix()); 127 sendContainer->setProjectionMatrix(viewer->getCamera()->getProjectionMatrix()); 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; 128 133 129 134 // Writing node to stream … … 166 171 //OSG_NOTIFY( osg::ALWAYS ) << "dataIO_clusterENet::readTO_OBJvaluesFromMaster() - Bytes received: " << bytes_received << std::endl; 167 172 OSG_NOTIFY( osg::ALWAYS ) << "Received: " << std::endl << receivedTransportContainer << std::endl; 173 168 174 169 175 // Unserialize data … … 179 185 { 180 186 OSG_NOTIFY( osg::ALWAYS ) << "Received:: Settings Viewmatrix...FrameID is: " << sendContainer->getFrameID() << std::endl; 181 // Restore Viewmatrix / Projectionmatrix187 // Restore Viewmatrix 182 188 viewer->getCamera()->setViewMatrix(sendContainer->getViewMatrix()); 183 viewer->getCamera()->setProjectionMatrix(sendContainer->getProjectionMatrix()); 189 //viewer->getCamera()->setViewMatrixAsLookAt(sendContainer->getEye(),sendContainer->getCenter(),sendContainer->getUp()); 190 //std::cout << "receiving lookat: eye:"<<eye.x()<<", center:"<<center<<", up:" << up << std::endl; 184 191 } 185 192 else
Note: See TracChangeset
for help on using the changeset viewer.