Page 1 of 1

Screenshot problem

Posted: Wed Jun 15, 2016 12:25 pm
by nightwolfik
Hello,
I'm using Irrlicht 1.8.1 in my project for drawing some scenes.
I have a function to take a screenshot like in wiki - http://www.irrlicht3d.org/wiki/index.ph ... ScreenShot
Most users do not have problems with the rendering of scenes and taking a screenshot.
But some users have a problem with taking a screenshot, they get a black rectangle in the file, but scene renders fine.
One of them has PC with WinXP, 2GB RAM, Core i3 540, no graphic card.
What could be the problem?

Re: Screenshot problem

Posted: Wed Jun 15, 2016 12:48 pm
by CuteAlien
Is this OpenGL? I have troubles with screenshots on Linux/OpenGL when running tests. We have some ugly hacks in our tests for that, but even that often doesn't work. I spend an evening on that once, but unfortunately never found a working solution.

You could try using render-to-texture instead and saving that texture. The problem might have to do something with back-buffer handling. Maybe it fails when people enable trippe-buffering in their driver-settings or something like that.