- Timestamp:
- 04/02/03 12:50:15 (10 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osglightpoint/osglightpoint.cpp
r1747 r1791 6 6 #include <osg/Geode> 7 7 #include <osg/Group> 8 #include <osg/ShapeDrawable> 8 9 #include <osg/Notify> 9 10 … … 33 34 float rdelta = 1.0f/((float)noSteps-1.0f); 34 35 35 lpn. _lightPointList.reserve(noSteps);36 lpn.getLightPointList().reserve(noSteps); 36 37 37 38 for(unsigned int i=0;i<noSteps;++i,rend+=rdelta) … … 43 44 INTERPOLATE(_color); 44 45 INTERPOLATE(_radius); 45 //INTERPOLATE(_minPixelSize);46 //INTERPOLATE(_maxPixelSize);47 // INTERPOLATE(_maxVisibileDistance2);48 46 49 47 lpn.addLightPoint(lp); … … 157 155 rootnode->addChild(osgDB::readNodeFiles(arguments)); 158 156 rootnode->addChild(createLightPointsDatabase()); 159 if (!rootnode) 160 { 161 return 1; 162 } 157 163 158 164 159 // run optimization over the scene graph
