Page 1 of 1

OpenGl DirectX screenshoots

Posted: Sat Jan 19, 2008 10:02 am
by jeandaniel
Hi, i need to developp an app which take screenshoot of Windows 3d games (DirectX,openGL).
I have made a Python app that take screenshoot but when i launch my app and for example Quake3 all my screenshoot are gray images.
So i wonder if i need to developp an DirectX app or not.
And if yes, how can i put a DirectX app in front of another DirectX app which is in fullscreen mode ?
Thx all

Posted: Sat Jan 19, 2008 2:32 pm
by neon
Why not just use the prtscr key?

Posted: Mon Jan 21, 2008 4:32 pm
by Combuster
Since graphics applications can and do trade-off between speed and the ability to allow screenshots, you might be in serious trouble. It is not always possible to get the exact contents of the screen back in memory, as that image does not exist. Rather, it is generated on the fly when sending data to the monitor.

Try alt+printscreen as suggested. If that does not work either, chances are likely you are looking at an side effect of the above.

Posted: Sat Jan 26, 2008 5:30 am
by Candy
If you're really really sure you want to hard-core screenshot opengl/directx programs, make a hook on the buffer swap command and take the contents after the swap. That should give you the content.