Changeset 82
- Timestamp:
- Jul 27, 2010, 8:55:01 PM (14 years ago)
- Location:
- osgVisual/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/cluster/dataIO_clusterENet.cpp
r80 r82 116 116 117 117 118 bool dataIO_clusterENet::sendTO_OBJvaluesToSlaves( )118 bool dataIO_clusterENet::sendTO_OBJvaluesToSlaves(osg::Matrixd viewMatrix_) 119 119 { 120 120 //OSG_NOTIFY( osg::ALWAYS ) << "clusterENet sendTO_OBJvaluesToSlaves()" << std::endl; 121 121 122 122 if(sendContainer.valid()) 123 123 { 124 124 // Pack FrameID & Viewmatrix 125 125 sendContainer->setFrameID(viewer->getFrameStamp()->getFrameNumber()); 126 sendContainer->setViewMatrix(view er->getCamera()->getViewMatrix());126 sendContainer->setViewMatrix(viewMatrix_); 127 127 128 128 // Writing node to stream -
osgVisual/src/dataIO/visual_dataIO.cpp
r75 r82 137 137 { 138 138 dataIO->extLink->readTO_OBJvalues(); 139 dataIO->cluster->sendTO_OBJvaluesToSlaves( );139 dataIO->cluster->sendTO_OBJvaluesToSlaves(dataIO->calcViewMatrix()); 140 140 } 141 141 break; … … 308 308 } 309 309 } 310 311 osg::Matrixd visual_dataIO::calcViewMatrix() 312 { 313 return viewer->getCameraManipulator()->getInverseMatrix(); 314 }
Note: See TracChangeset
for help on using the changeset viewer.