husker-dev / openglfx

OpenGL node for JavaFX
Apache License 2.0
86 stars 12 forks source link

Vertical flip #2

Closed husker-dev closed 3 years ago

husker-dev commented 3 years ago

At the moment, the image that is obtained from OpenGL is flipped vertically. This is a feature of OpenGL rendering, so I have to fix it manually.

There are two ways to fix it that GLJPanel uses:

Software

This method requires the usual iteration over the image line by line. In theory, this will consume huge resources.

Hardware

The most preferred way would be to use FBO/GLSL vertical flipping. It transforms the entire image in the buffer, so the way of reading will not change much.

husker-dev commented 3 years ago

Fixed in OpenGLFX 0.4