Changeset 107 for osgVisual/include/sky_Silverlining
- Timestamp:
- Jul 30, 2010, 8:56:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/include/sky_Silverlining/skySilverLining_ProjectionMatrixCallback.h
r88 r107 99 99 //OSG_NOTIFY( osg::ALWAYS ) << "znear: " << znear << ", zfar: " << zfar << std::endl; 100 100 101 if (skyDrawable )101 if (skyDrawable.valid()) 102 102 { 103 103 skyDrawable->setSkyboxSize(((zfar - znear) * 0.5 + znear) * 2.0); … … 124 124 //OSG_NOTIFY( osg::ALWAYS ) << "znear: " << znear << ", zfar: " << zfar << std::endl; 125 125 126 if (skyDrawable )126 if (skyDrawable.valid()) 127 127 { 128 128 skyDrawable->setSkyboxSize(((zfar - znear) * 0.5 + znear) * 2.0); … … 222 222 //clamp the near plane if low above ground. 223 223 double x,y,z,hat; 224 util::getXYZofCamera( camera, x, y, z );225 if( util::queryHeightAboveTerrainInWorld( hat, csn , x, y, z ) )224 util::getXYZofCamera( camera.get(), x, y, z ); 225 if( util::queryHeightAboveTerrainInWorld( hat, csn.get(), x, y, z ) ) 226 226 { 227 227 if (hat < 80 ) … … 238 238 near_ = 2; 239 239 far_ = 125000; 240 util::getXYZofCamera( camera , x, y, z );241 if( util::queryHeightAboveTerrainInWorld( hat, csn , x, y, z ) )240 util::getXYZofCamera( camera.get(), x, y, z ); 241 if( util::queryHeightAboveTerrainInWorld( hat, csn.get(), x, y, z ) ) 242 242 { 243 243 osg::Vec2 planesNearFar; … … 259 259 * Pointer to the Cullvisitor which applies the projection matrix. 260 260 */ 261 osg Util::CullVisitor *stockCullVisitor;261 osg::ref_ptr<osgUtil::CullVisitor> stockCullVisitor; 262 262 263 263 /** 264 264 * Pointer to silverlinings atmosphere instance. 265 * It has to be a pure C++ Pointer, because SilverLining::athmosphere is not derived from osg/Referenced 265 266 */ 266 267 SilverLining::Atmosphere *atmosphere; … … 269 270 * Pointer to the camera on which the callback is installed 270 271 */ 271 osg::Camera *camera;272 osg::observer_ptr<osg::Camera> camera; 272 273 273 274 /** 274 275 * Pointer to the skyDrawable 275 276 */ 276 skySilverLining_skyDrawable *skyDrawable;277 osg::observer_ptr<skySilverLining_skyDrawable> skyDrawable; 277 278 278 279 /** … … 280 281 * @todo: wofür ist diese variable nötig? 281 282 */ 282 osg:: CoordinateSystemNode *csn;283 osg::observer_ptr<osg::CoordinateSystemNode> csn; 283 284 284 285
Note: See TracChangeset
for help on using the changeset viewer.