Robert, The problem is that I have to support multisampling and Windows. I haven't been able to use PIXEL_BUFFER modes. Is there any way that I can accomplish what I'm trying to do without reallocating a texture on every window size event? It's killing my memory.
Thanks, John P.S. When is your next visit to I/ITSEC scheduled? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Wednesday, May 21, 2008 12:29 PM To: OpenSceneGraph Users Subject: Re: [osg-users] osg::Camera, Viewport, FRAME_BUFFER,and the meaning of life Hi John, Relying upon Render To Texture when using the frame bufffer is not reliable as the results are dependant on the frame buffer management of the window manager/OpenGL driver. What you are seeing is nothing out of the ordinary and there is nothing the OSG can do to prevent this problem if you insist on using the frame buffer for RTT. Robert. On Wed, May 21, 2008 at 5:20 PM, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote: > Robert, > > It seems I've got my pixels all up in a bunch! > > I have: > > 1) a SceneView with: > View matrix = identity > Projection matrix = identity > Viewport = 0,0 to window width, window height > > 2) a pre render camera (renders texture successfully) with: > RELATIVE_RF > Target = FRAME_BUFFER > View matrix = identity > Projection matrix = ortho2d from 0,0 to texture width, texture height > Viewport = 0,0 to texture width, texture height > > 3) a nested render camera that draws a textured quad with: > ABSOLUTE_RF > View matrix = identity > Projection matrix = ortho2d from 0,0 to texture width, texture height > Viewport = 0,0 to window width, window height Geometry = quad from 0,0 > to texture width, texture height Tex coords from 0,0 to 1,1 > > When I resize the window, I change only the viewports of the scene > view and the ABSOLUTE_RF camera. > > When I run this in a window ~0.25 of desktop area, I only see ~0.25 of > the texture in the bottom left. > When I run this in a maximized window I see ~1.0 of the texture. > > The biggest weirdness is that if I make the change to set the > RELATIVE_RF camera to FRAME_BUFFER_OBJECT, it works 100%. > > Can you identify something that I've done wrong? > > A thousand thanks. > > John Argentieri > Software Engineer > GENERAL DYNAMICS > C4 Systems > (407) 281-5568 > [EMAIL PROTECTED] > > "This email message is for the sole use of the intended recipient(s) > and may contain GDC4S confidential or privileged information. Any > unauthorized review, use, disclosure or distribution is prohibited. If > you are not an intended recipient, please contact the sender by reply > email and destroy all copies of the original message." > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org