I currently have the very rigid requirement for my app that is has to draw images absolutely pixel perfect. Though this doesn’t seem to be the case with standard settings in oF.
As a test I have a FullHD picture with vertical black and white 1px lines. You can find the test pattern here: http://i.imgur.com/1m2TDa2.png
If I load that image with image.loadImage("testpattern.png") and then draw it with image.draw(0,0) the result looks like this:
You can clearly see the diagonal line going through the picture.
If you take a closer look at that “edge” you can see that the white pixels at the “bottom half”, bleed into the black pixels:
In DirectX the cause of that issue is the way the pixels are drawn to the screen (see: http://msdn.microsoft.com/en-us/library/windows/desktop/bb219690(v=vs.85).aspx). You simply have to draw your texture at 0.5,0.5 instead of 0,0. Though in oF with OpenGL it doesn’t seem to solve the issue.
I have no clue what could cause this. I would be glad about any help with this weird issue.
I should have mentioned. I’m running raspbian on a Rasbperry Pi. GL_TEXTURE_RECTANGLE_ARB doesn’t seem to exist in that version. It throws me an error that it wasn’t declared.
The output with cout << myImage.getTextureReference().texData.textureTarget << " " << GL_TEXTURE_2D << endl; looks likes this:
3553 3553
Seems like glinfo example was also not ported to raspbian. Its not located in the examples/gl/ folder.