Changeset 10070
- Timestamp:
- 04/22/09 14:52:22 (3 years ago)
- Location:
- OpenSceneGraph/trunk/examples/osghangglide
- Files:
-
- 2 modified
-
osghangglide.cpp (modified) (5 diffs)
-
tank.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osghangglide/osghangglide.cpp
r8868 r10070 77 77 osg::Group* createModel() 78 78 { 79 // no database loaded so automatically create Ed Levin Park ..79 // no database loaded so automatically create Ed Levin Park 80 80 osg::Group* group = new osg::Group; 81 81 … … 88 88 clearNode->setRequiresClear(false); // we've got base and sky to do it. 89 89 90 // use a transform to make the sky and base around with the eye point.90 // use a transform to make the sky and base move around with the eye point. 91 91 osg::Transform* transform = new MoveEarthySkyWithEyePointTransform; 92 92 93 93 // transform's value isn't knowm until in the cull traversal so its bounding 94 94 // volume is can't be determined, therefore culling will be invalid, 95 // so switch it off, this cause all our paresnts to switch culling96 // off as well. But don't worry culling will be back on once underneath95 // so switch it off, this causes all our paresnts to switch culling 96 // off as well. But don't worry, culling will be back on once underneath 97 97 // this node or any other branch above this transform. 98 98 transform->setCullingActive(false); … … 108 108 group->addChild(clearNode); 109 109 110 // the rest of the scene drawn after the base and sky above.110 // the rest of the scene is drawn after the base and sky above. 111 111 group->addChild(makeTrees()); // will drop into a transparent, depth sorted bin (1) 112 112 group->addChild(makeTerrain()); // will drop into default bin - state sorted 0 … … 133 133 osgViewer::Viewer viewer; 134 134 135 // if user request help write it out to cout.135 // if user requests help write it out to cout. 136 136 if (arguments.read("-h") || arguments.read("--help")) 137 137 { … … 194 194 } 195 195 196 // set up the camera manipulation with ou tcustom manipultor196 // set up the camera manipulation with our custom manipultor 197 197 viewer.setCameraManipulator(new GliderManipulator()); 198 198 -
OpenSceneGraph/trunk/examples/osghangglide/tank.cpp
r6941 r10070 77 77 ); 78 78 79 // 42 required for s odes, 22 for the top.79 // 42 required for sides, 22 for the top. 80 80 Vec3Array& vc = *(new Vec3Array(42+22)); 81 81 Vec2Array& tc = *(new Vec2Array(42+22));
