Re: [osg-users] [forum] Resize Geometry in a HUD on Resize of Window

2014-12-19 Thread John-Luke Laue
Hi Robert, Thanks for your help but I think I might have not asked my question very well. Regardless, I was able to find a solution to my problem. I case anybody wants my answer, it is below: Using osgHud as a reference. 1) Set up the camera's projection matrix such that hud_camera->setProjec

Re: [osg-users] [forum] Resize Geometry in a HUD on Resize of Window

2014-12-18 Thread Robert Osfield
Hi John-Luke, Uf the HUD camera is assigned to the GraphicsContext then when it's resized the projection matrix can be adjusted automatically if required. In osg::Camera there is the following control: enum ProjectionResizePolicy { FIXED, /**< Keep the projection matr

[osg-users] [forum] Resize Geometry in a HUD on Resize of Window

2014-12-18 Thread John-Luke
Hi all, My goal is to have a HUD that consists of one circle drawn programmatically. I followed the osgHUD example and was able remove the text they draw and draw my circle instead. I did this by adding a (circle) Geometry to the Geode and removing the text and bounding box from the Geode. My p