Changeset 145 for trunk/VUT/Ogre/src
- Timestamp:
- 06/22/05 10:05:06 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgrePlatformQueryManager.cpp
r144 r145 130 130 ++visQueryIt; 131 131 132 // nodes with visibilty 0 in queue: 133 // happens if node is intersected by near plane 132 // node with visibilty 0 in queue (e.g., if node is intersected by near plane) 134 133 if (visiblePixels > 0) 135 134 { … … 161 160 if (visiblePixels > 0) 162 161 { 163 visibleGeometry->push_back(GtpVisibility::MeshInfo(*geometryIt, 164 visiblePixels,projectedPixels));162 visibleGeometry->push_back(GtpVisibility::MeshInfo(*geometryIt, visiblePixels, 163 projectedPixels)); 165 164 } 166 165 } … … 209 208 cam->setAspectRatio(1.0); 210 209 cam->setFOVy(Radian(Math::HALF_PI)); 211 212 std::stringstream d;213 d << "old camera: " + StringConverter::toString(savedCam->getDerivedPosition()) +214 " " + "O: " + StringConverter::toString(savedCam->getDerivedOrientation());215 LogManager::getSingleton().logMessage(d.str());216 210 217 211 int sign = -1; … … 230 224 ComputeCameraVisibility(*cam, visibleNodes, visibleGeometry, relativeVisibility); 231 225 232 //mViewport->getTarget()->update(); for(int j=0; j<10000000; j++) printf(" HAAHHAHAHAHAH");226 //mViewport->getTarget()->update(); for(int j=0; j<10000000; j++) printf("wait"); 233 227 234 228 // permute directions … … 254 248 255 249 for (visibleNodesIt = visibleNodes->begin(); visibleNodesIt != visibleNodesIt_end; 256 ++visibleNodesIt) ;250 ++visibleNodesIt) 257 251 { 258 252 if (!nodeInfo || (nodeInfo->GetNode() != (*visibleNodesIt).GetNode())) … … 260 254 nodeInfo = &(*visibleNodesIt); 261 255 } 262 else 263 { 264 // add visibility 265 nodeInfo->SetVisiblePixels(nodeInfo->GetVisiblePixels() + 266 (*visibleNodesIt).GetVisiblePixels()); 267 268 nodeInfo->SetProjectedPixels(nodeInfo->GetProjectedPixels() + 269 (*visibleNodesIt).GetProjectedPixels()); 256 else // add visibility 257 { 258 nodeInfo->AddVisibility(*visibleNodesIt); 270 259 } 271 260 … … 283 272 GtpVisibility::MeshInfo *geomInfo = NULL; 284 273 274 int i=0; 285 275 for (visibleGeomIt = visibleGeometry->begin(); visibleGeomIt != visibleGeomIt_end; 286 ++visibleGeomIt) ;276 ++visibleGeomIt) 287 277 { 288 278 if (!geomInfo || (geomInfo->GetMesh() != (*visibleGeomIt).GetMesh())) … … 290 280 geomInfo = &(*visibleGeomIt); 291 281 } 292 else // info points to equal mesh 293 { 294 // add visibility 295 geomInfo->SetVisiblePixels(geomInfo->GetVisiblePixels() + 296 (*visibleGeomIt).GetVisiblePixels()); 297 298 geomInfo->SetProjectedPixels(nodeInfo->GetProjectedPixels() + 299 (*visibleNodesIt).GetProjectedPixels()); 282 else // info points to same mesh, just add visibility 283 { 284 geomInfo->AddVisibility(*visibleGeomIt); 300 285 } 301 286 }
Note: See TracChangeset
for help on using the changeset viewer.