[visionegg] Re: Mirroring a viewport?

If you're just trying to do a 2D rotation of an image, the easiest thing
to do is simply to draw the corners of the textured quad in their new
positions. If you want to draw everything in the viewport flipped, you
could do something like use the OrthographicProjection class with the
top and bottom coordinates flipped.

I hope that helped...

Cheers!
Andrew

Neil Halelamien wrote:
> This is kind of a basic question, but how do I rotate/flip a viewport's
> perspective? My OpenGL knowledge is pretty limited so I might be doing
> something silly, but my attempts so far at using
> view.parameters.projection.rotate () and
> view.parameters.projection.stateless_rotate() on a viewport with default
> parameters have just resulted in making the viewport invisible.
> 
> On 9/4/07, * Andrew Straw* <astraw@xxxxxxxxxxx
> <mailto:astraw@xxxxxxxxxxx>> wrote:
> 
>     Hi Neil,
> 
>     See the multi_stim.py demo, in particular the put_new_framebuffer()
>     call.
> 
>     -Andrew
> 
>     Neil Halelamien wrote:
>     > Quick question: What's a straightforward way to mirror the
>     contents of a
>     > viewport onto another part of the screen?
>     >
>     > -- Neil
> 
>     ======================================
>     The Vision Egg mailing list
>     Archives: http://www.freelists.org/archives/visionegg
>     <http://www.freelists.org/archives/visionegg>
>     Website: http://www.visionegg.org/mailinglist.html
> 
> 

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: