Firstly, you do this, which I'm sure you don't mean (note the models you are
actually adding).


   Switchg->insertChild(2,model2Node.get());
   Switchg->insertChild(1,model2Node.get());


Secondly, you do this, which I'm also sure you don't mean (your temp counter
will flicker between true and false)

    if ( counter > 1000)
     {
        counter = 0;
        temp = !temp;
     }
     else
     {
        counter++;
     }


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to