- Timestamp:
- 09/15/10 14:00:12 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgoccluder/osgoccluder.cpp
r8998 r11763 165 165 osg::Node* createOccluder(const osg::Vec3& v1,const osg::Vec3& v2,const osg::Vec3& v3,const osg::Vec3& v4,float holeRatio=-1.0f) 166 166 { 167 // create an d occluder which will site along side the loadmodelmodel.167 // create an occluder which will sit alongside the loaded model. 168 168 osg::OccluderNode* occluderNode = new osg::OccluderNode; 169 169 170 // create the convex plan er occluder170 // create the convex planar occluder 171 171 osg::ConvexPlanarOccluder* cpo = new osg::ConvexPlanarOccluder; 172 172 … … 182 182 occluder.add(v4); 183 183 184 // create a whole at the center of the occluder if needed.184 // create a hole at the center of the occluder if needed. 185 185 if (holeRatio>0.0f) 186 186 { … … 229 229 // add the occluder geode as a child of the occluder, 230 230 // as the occluder can't self occlude its subgraph the 231 // geode will never be occlude rby this occluder.231 // geode will never be occluded by this occluder. 232 232 occluderNode->addChild(geode); 233 233 … … 305 305 } 306 306 307 // if user request help write it out to cout.307 // if user requests help write it out to cout. 308 308 if (arguments.read("-h") || arguments.read("--help")) 309 309 { … … 315 315 osg::Node* loadedmodel = osgDB::readNodeFiles(arguments); 316 316 317 // if not loaded assume no arguments passed in, try us edefault mode instead.317 // if not loaded assume no arguments passed in, try using default mode instead. 318 318 if (!loadedmodel) loadedmodel = osgDB::readNodeFile("glider.osg"); 319 319 320 320 if (!loadedmodel) 321 321 { 322 osg::notify(osg::NOTICE)<<"Please s epecify andmodel filename on the command line."<<std::endl;322 osg::notify(osg::NOTICE)<<"Please specify a model filename on the command line."<<std::endl; 323 323 return 1; 324 324 }
