Hi,
I have an osg:Camera (beyond the viewer's default camera) and I need to resize 
the viewport of that camera when a RESIZE event occurs (actually when the user 
resizes the app window).

So I thought to handle the viewer's RESIZE event by calling the setViewport(.) 
method on my custom camera because my custom osg::Camera viewport is not 
resized automatically.

I wonder if it is safe to call setViewport(.) in the handle() method of an 
event handler or if I'm supposed to change camera's properties (like the 
viewport) somewhere else (for example in an UpdateCallback or in a 
CullCallback...).

I'm asking this because I often experience a system crash when toggling 
fullscreen on/off...but I'm not sure that this is related to the way I call 
setViewport(.).

One more question: what are 'slave' cameras used for? Are them supposed to be 
used only if they need to follow a parent's transform?

Thanks.
Alessandro

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41187#41187





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to