Changeset 20121
- Timestamp:
- 05/03/07 06:42:45 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OSG/OsgApp.h
r19729 r20121 35 35 36 36 #include <vrj/Display/CameraProjection.h> 37 38 #include <vpr/Sync/Mutex.h> 39 #include <vpr/Sync/Guard.h> 37 40 38 41 #include <osg/Vec3> … … 273 276 int mFrameNumber; 274 277 gadget::PositionInterface mHead; 278 vpr::Mutex mSceneViewLock; 275 279 }; 276 280 … … 283 287 this->configSceneView(new_sv.get()); // Configure the new viewer 284 288 new_sv->getState()->setContextID(unique_context_id); 289 // Add the tree to the scene viewer and set properties 290 { 291 vpr::Guard<vpr::Mutex> sv_guard(mSceneViewLock); 292 new_sv->setSceneData(getScene()); 293 } 285 294 286 295 // This will eventually be changed to no light and all lighting will be handled … … 364 373 unsigned y_size = unsigned(vp_sy*float(w_height)); 365 374 366 // Add the tree to the scene viewer and set properties367 sv->setSceneData(getScene());368 375 //sv->setCalcNearFar(false); 369 376 sv->setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR);
