Thanks Robert,

 

I will have a look into the Producer code.

 

If I can’t disable window resize, I have to solve another problem. I have several cameranodes with attached textures. What do I have to do if the viewport size changes? I tried to change the texture size and the viewport size of the cameranode. That didn’t work. I tried to detach the texture, changed the texture size and attached the texture again. Also didn’t work. I also tried an dirtyTextureParameters, but I never get the correct result. Do you have an idea what else I have to change?

 

Matthias

 


Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Robert Osfield
Gesendet: Mittwoch, 10. Mai 2006 09:40
An: osg users
Betreff: Re: [osg-users] How to disable the resize of a viewer window

 

Hi Matthias,

I don't know if Producer supports disabling window resize, but I can say the place to look is include/Producer/RenderSurface rather than osgProducuer::Viewer.

Robert.

On 5/10/06, Matthias Kreiser <[EMAIL PROTECTED]> wrote:

Hi Everyone,

 

How can I set the an osg::Viewer window to a constant size? I don't want that the users can change the window size. Is there a possibility? And if not, can I at least set the window to a constant aspect ratio? I tried viewer.setLensAutoAspect(true) but that has no effect.

 

Regards,

Matthias


_______________________________________________
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/

Reply via email to