Re: [osg-users] HUD not resizing

2009-07-17 Thread Jean-Sébastien Guay
Hi Vincent, This sounds like a great idea, but the problem remain the same : the HUD will be resized automatically... just because it is a HUD... the callback is the same thing like a RESIZE event on a handler I have, it gave me the event, but do not forbid the HUD to resize with the window,

Re: [osg-users] HUD not resizing

2009-07-17 Thread Vincent Bourdier
Hi Jean Sebastien, This sounds like a great idea, but the problem remain the same : the HUD will be resized automatically... just because it is a HUD... the callback is the same thing like a RESIZE event on a handler I have, it gave me the event, but do not forbid the HUD to resize with the window

Re: [osg-users] HUD not resizing

2009-07-17 Thread Jean-Sébastien Guay
Hello Vincent, I'm looking at a way to keep the hud ratio constant even if the window ratio change. Not a complete answer, but the solution will probably be to implement a WindowResizeCallback that you set on the GraphicsWindow. This callback will be notified right after the window size chan

[osg-users] HUD not resizing

2009-07-17 Thread Vincent Bourdier
Hi all, As you know, and when you resize the windows (osgHud example) the hud resize with the window size ratio. So, the text in the hud in not readable anymore. I'm looking at a way to keep the hud ratio constant even if the window ratio change. Any idea ? because transforming the hud during th