Hi

Okay the first was a simple error I agree, but even after changing that
too:

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

The scene doesn't alternate between the two models for some reason. 
It must be crazy friday or something.

Thanks
Tristan

On Fri, 2006-11-17 at 13:51 +0000, David Spilling wrote:
> 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/

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

Reply via email to