On 30/12/09 11:12 AM, alessandro terenzi wrote:
> I'd like to flip (horizontally and/or vertically) the current frame just
> before it gets drawn on screen, what is the best way to do this?
> 
> I thought about post-multiplying a projection matrix (that is already
> available) by a scaling (or) rotation matrix, but of course this
> approach acts on the scene and not on the frame and has two undesired
> effects:
> 
> 1. normals are flipped
> 2. HUDs are NOT flipped
> 
> Is it possible to flip the frame that is going to be drawn? If not, how
> can I avoid the normals from being flipped because of the scaling/mirroring?

Render to a texture and draw that flipped?  This gets around all the 
aforementioned
problems and doesn't affect the scene/shaders, it's completely transparent.

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to