How to flip/mirror a Jitter matrix?

Mar 18, 2011 at 11:47pm

How to flip/mirror a Jitter matrix?

What’s a good way to flip (top to bottom) or mirror (left to right) a Jitter matrix?

I’ve grown used to using OpenGL for display, in which case I use a @scale -1 type construct, but in this particular case I am using all Jitter matrices.

#55656
Mar 19, 2011 at 12:24am

[jit.dimmap] should do what you need, with combinations of “invert” and “map” commands. the “map” commands will flip the X Y dimensions, so use the [fpsgui] and check the outcoming dimensions to be sure it’s doing what you want.

#200198
Mar 19, 2011 at 6:19am

FWIW it is also possible to flip a matrix with the srcdimstart, srcdimend and usedstdim attributes (or the destination equivalents). (see Jitter Tutorial 14 for clues)

#200199
Nov 5, 2013 at 12:46pm

can you flip it in openGL? Some shader maybe?

#270247

You must be logged in to reply to this topic.