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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to