Hi Miguel, You can switch the View's cameras off using their setNodeMask(0) and renenable via setNodeMask(0xffffffff);
Or just add and remove the views using addView/removeView. Robert. On 6/18/07, Miguel Martinez <[EMAIL PROTECTED]> wrote:
Hi Robert, I have 3dsmax-like aplication. I have 4 views and I want to switch to a 1view mode, and vice versa. This means that the "disabled" views will not render at all (temporarily). Later I'll need to enable them again to switch to the 4views mode. Before I used Producer::Camera::disable() / enable() to get this behaviour. Robert Osfield escribió: > Hi Miguel, > > On 6/18/07, Miguel Martinez <[EMAIL PROTECTED]> wrote: >> Hi, I just wanted to know how do I change the current cursor. >> Before I used Producer::RenderSurface::setCursor but now I'm using >> osgViewer and I don't know >> how to do it. > > osgViewer::GraphicsWindow has a setCursor method... :-) > >> I'm also using osgViewer::CompositeViewer with 4 Views. >> I'd like to hide three of this views and show just one in real time. >> I've seen the functions >> >> osgViewer::CompositeViewer::addView >> osgViewer::CompositeViewer::removeView >> >> Do I must use these functions or is there any other way ? > > What do you mean by hide? For these views not to be rendered at all? > Do you mean to have empty windows? Do you mean to render to texture > with these views? There really is a dozen ways to interpret this. > _______________________________________________ > 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/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
