We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a problem where it draws the images upside down in OpenGL. What is a quick way to draw a image upside down to counter it?
I would think this:
image(canvas, 0, height, width, -height);
But that doesn't work.
Answers
NM.
I think it should be scale(1, -1) But even if i do that i see nothing :(
when you call
scale(1,-1)
the coordinate system goes in the other direction. this means that positive coordinates go "up", eg.line(10,10,110,110)
won't be visible because now it starts outside of the window (above the window to be exact). to draw in the correct place you need bring your coordinates "down".here is some code that works:
hope the explanation helps.
ps. i've made you a little image, that's always better than text:
http://i.imgur.com/Ouw0HLE.png
Thanks, it really helped!