Screenshots - how to?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Screenshots - how to?

Post by Bob Wya »

Hi

Ok this might sound a bit dumb but I wanted to submit a screenshot for World In Conflict. This runs quite well in DX9.0c mode in WINE 1.3.5. 8)

Uhmm anyway the problem is visual artefacts in the screenshots that are not present in the game (blocky colour banding, etc.). I presume it's just the keyboard printscreen button frame capture app. is catching partly drawn OpenGL frames.

So how can I get clean screenshots for games running under WINE?

Thanks
Bob
3vi1
Level 4
Level 4
Posts: 125
Joined: Sun Feb 24, 2008 8:24 pm

Re: Screenshots - how to?

Post by 3vi1 »

I've never seen the color banding myself.

Are you sure it's not caused by the format you're saving them in? Try saving them in a lossless format like PNG's instead of JPEG's.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Post by Bob Wya »

Hi

I just used the default Ubuntu functionality (i.e. the Print Screen button!!) which saves as PNG by default. The background has some large colour blocks (e.g. like the ol' ZX Spectrum actually :wink: ). I presumed the screenshot was occuring mid-frame refresh or something like that. Perhaps I need to turn on Vertical frame lock in WIC??

Bob
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

That's not possible because the screenshot app just captures whatever is on the screen right now, not what's being prepared in the video buffer. What could happen though is that you see some tearing because the game doesn't have VSync on, but that doesn't have anything to do with colors.

Could you post one of these screenshots here so we can see what it looks like?

Perhaps you could try turning off Compiz.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Post by Bob Wya »

@DaVince

Compiz is always off when I am gaming in Ubuntu.

I've tried some different screenshot applications. Still the same problem with colour banding in my World in Conflict screenshots (see link below). The actual display quality is very high (with no visual glitches) while I'm playing. I even tried running FRAPs under WINE - but the shortcut key to capture frames doesn't work!!

Any more ideas anyone?? Just trying to do my community bit and submit some screenshots to AppDB... 8)

Bob

World in Conflict screenshot : Steam Install : WINE 1.3.5
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Post by Bob Wya »

Uhmm should have said I've enabled VSync in WIC... It's had no effect unfortunately...
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

A new tactic

Post by Bob Wya »

Can anyone think of a way to suspend a game running in WINE without losing screen output? I tried the following:

Code: Select all

$ ps aux | grep wic.exe
$ skill -STOP <pid>
in the TTY0 console... However the screen is blank in the X-Session (CTRL+ALT+F7) until I resume the World in Conflict process!!

There must be a way to suspend the X-Session/game/WINE server with the display output frozen!! Obviously I still need to have access to the PRINT-SCREEN button/application... Any thoughts?

Like I said before - this is a big issue... World in Conflict has no screenshots submitted for it (in AppDB). I can't submit screenshots which have colour bars all down the frame (when they are the result of a capture issue/bug) - it doesn't help paint the WINE project in a very good light!
:wink:
Thanks
Bob
[/code]
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Problem Solved

Post by Bob Wya »

Hi

Solved this problem with some help from the guys on the Ubuntu forums.

Please refer to my thread there:
http://ubuntuforums.org/showthread.php?t=1601834
if you need to screenshots in WINE.

Bob
[/url]
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Yet more problems ... :-(

Post by Bob Wya »

OK

More problems folks. I can't screenshot Crysis - which I am doing to test a possible shader regression - in the latest Git.

I am using:

Code: Select all

#!/bin/bash
for (( c=1; c<=1000; c++ ))
do
    scrot --delay 30 --quality 50 --thumb 58 "~/Pictures/screenshot($c).png" --exec 'rm \"$f\"'
done
I have also tried (in place of Scrot with appropriate switches obviously!!):

Code: Select all

import
All I am getting is black screenshots when the game is running (Gnome 2.30 both with Metacity and Compiz w/undirect 3D apps. switch).

ATI 4650 + Catalyst 11.6 at fault??

Any suggestions??

Bob
Locked