NeHe Lesson 36 + Upside Down Image

Hi there,
I’m working on an implementation based on NeHe’s radial blur, render to texture example ( lesson 36 : http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=36 , or rather, from the jogl one here : http://pepijn.fab4.be/nehe/lesson36.jar ). I’m developing it in processing, and I seem to have come up against a little problem.

It’s upside down.

I’m assuming this has something to do with the origin point being in the top left in processing , as opposed to the bottom left ? When I’m drawing the radial blur part, I can get that part to look right ( by assigning the correct coordinates in the GL_QUADS section ), however displaying the original image, for some reason it is upside down ( which is a problem, as it’s displaying my navigation upside-down too, and it hurts my eyes ).

There an easy way to flip it back around the right way ?

I’m not familiar with Processing, so I don’t know how much control it gives you, but can’t you just flip the y texture coord (1 becomes 0, 0 becomes 1) to invert the image as it’s drawn?

I think someone made a post last week about this problem ( there is a search function you know :)), here’s the link: http://www.java-gaming.org/forums/index.php?topic=17489.0

Jark