Hello everybody,
 in the 06_clipnode example...

      //                            Group:model
        //                             .             .
        //                            .                .
        //                           .                  .
//                Subgraph:dumptruck   Transform:pat
        //                                                .
        //                                                .
        //                                             ClipNode

How is the clipnode supposed to influence the dumptruck.. Am I missing
something here. this is the thirdblock of the code in the example ... Here
is how I interpretted and coded it

      osg::ClipNode* n = new osg::ClipNode;
      n->createClipBox(osg::BoundingBox(-2.5,-2.5,-2.5,2.5,2.5,2.5));
      osg::PositionAttitudeTransform* pat = new
osg::PositionAttitudeTransform;
      pat->setPosition(osg::Vec3(0,0,0));
      osg::Group* model = new osg::Group;
      model->addChild(dumptruck);
      model->addChild(pat);
      pat->addChild(n);
      viewer.setSceneData(model);

  The complete code (example program) is pasted in

http://pastebin.com/Hs6Q1Wb3

I got the first block to work .. I was trying to get the 3rd block to work
.. but was not very successfull. How is it supposed to clip the dumptruck?
as indicated above.. dumptruck is not a child of the ClipNode.. can anybody
explain?

Thanks in advance..
Sunil
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to