Re: [osg-users] addSlave messup main cameras stateset

2011-04-19 Thread suneel suresh
thank you for getting back robet, i agree that i didnt present all the code, however its mostly standard from the examples. one thing i ought to mention is that i am using osg with wxWidgets. I tried to go back and look at the code and i found that even if i just add a new camera it screws with

Re: [osg-users] addSlave messup main cameras stateset

2011-04-19 Thread Robert Osfield
HI Suneel, >From reading your post there is no way I can guess what is going on in your app. There is no reason for the OSG to detach a StateSet from a master Camera so would presume there is something wrong in your code, as to what I can't not guess as there is too little information. I would r

[osg-users] addSlave messup main cameras stateset

2011-04-18 Thread suneel suresh
hi in order to display a rectangle roi over the 3d scene i use the example provided in osg hud. however before drawing the roi i press a toggle selection button which gets the stateset of the main camera as given below Code: osg::StateSet *stateSet = osg_viewer->getCamera()->getOrCreateStateSe