Screenshot problem

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
nightwolfik
Posts: 3
Joined: Tue Feb 19, 2013 4:49 pm

Screenshot problem

Post 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?
CuteAlien
Admin
Posts: 9674
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Screenshot problem

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply