@Quadx117 wrote:
Hello, I’m very new to openFrameworks and OpenGL and I have the following 2 issues using oF version 0.10.1 on Windows 10.
1- I draw a simple 1px wide line with ofDrawLine() and use ofImage.grabScreen() followed by ofImage.save() to save the result in a png file. If I use the old renderer (using OpenGL 2.1 or 2.0), then the result is the same as what I see on the screen with anti-aliasing. But if I switch to the programmable renderer (using OpenGL 3.3), then the saved image does not look good and is not anti-aliased.
2- When using the programmalbe rendrer (OpenGL 3.3), ofBackground(0) clear the screen as expected, but the saved image has a transparent background and we can see artefacts of the previous draw (using the imageSaverExample, but extending the image to grab the whole screen and clear the background to black for example). For this issue, I can solve it by drawing a rectangle with the clear color (black in my case), but I don’t know if this is the right way to do it.
Any help would be greatly appreciated as I have searched the internet for hours but couldn’t find anything helpful.
Thanks
Posts: 1
Participants: 1