Changeset 112 for osgVisual/include
- Timestamp:
- Jul 30, 2010, 10:08:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/include/sky_Silverlining/skySilverLining_ProjectionMatrixCallback.h
r107 r112 99 99 //OSG_NOTIFY( osg::ALWAYS ) << "znear: " << znear << ", zfar: " << zfar << std::endl; 100 100 101 if (skyDrawable .valid())101 if (skyDrawable) 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 .valid())126 if (skyDrawable) 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.get(), x, y, z );225 if( util::queryHeightAboveTerrainInWorld( hat, csn .get(), x, y, z ) )224 util::getXYZofCamera( camera, x, y, z ); 225 if( util::queryHeightAboveTerrainInWorld( hat, csn, x, y, z ) ) 226 226 { 227 227 if (hat < 80 ) … … 238 238 near_ = 2; 239 239 far_ = 125000; 240 util::getXYZofCamera( camera .get(), x, y, z );241 if( util::queryHeightAboveTerrainInWorld( hat, csn .get(), x, y, z ) )240 util::getXYZofCamera( camera, x, y, z ); 241 if( util::queryHeightAboveTerrainInWorld( hat, csn, x, y, z ) ) 242 242 { 243 243 osg::Vec2 planesNearFar; … … 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/Referenced266 265 */ 267 266 SilverLining::Atmosphere *atmosphere; … … 270 269 * Pointer to the camera on which the callback is installed 271 270 */ 272 osg::observer_ptr<osg::Camera>camera;271 osg::Camera *camera; 273 272 274 273 /** 275 274 * Pointer to the skyDrawable 276 275 */ 277 osg::observer_ptr<skySilverLining_skyDrawable>skyDrawable;276 skySilverLining_skyDrawable *skyDrawable; 278 277 279 278 /** … … 281 280 * @todo: wofür ist diese variable nötig? 282 281 */ 283 osg:: observer_ptr<osg::CoordinateSystemNode>csn;282 osg::CoordinateSystemNode *csn; 284 283 285 284
Note: See TracChangeset
for help on using the changeset viewer.