On Thu, 2011-01-20 at 17:35 +0100, Gareth Penfold wrote:
> Hi,
> 
> I have been trying to implement a compass widget which the user can 
> manipulate. I have been trying this with osg widget. 
> 
> When using addRotate to my widget's window the widget is clipped to the area 
> it was previously in.
> 
> How would i get around this problem?

By default, the clip area is the size of the window without rotation.
This is called "VisibilityMode" in osgWidget terms. Set this to
VM_ENTIRE and you'll be fine:

w->setVisibilityMode(osgWidget::Window::VM_ENTIRE)

> ... 
> 
> Thank you!
> 
> Cheers,
> Gareth
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=35814#35814
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 


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

Reply via email to