MegaGlest Forum

Archives (read only) => Glest Advanced Engine => Bug reports => Topic started by: John.d.h on 31 December 2011, 23:44:34

Title: Screen shot weirdness 7ea69b
Post by: John.d.h on 31 December 2011, 23:44:34
When taken from my operating system's own screenshooter, everything looks fine, but when pressing 'e' within game, this is what I get:

(http://img13.imageshack.us/img13/6458/screen0o.th.jpg) (http://imageshack.us/photo/my-images/13/screen0o.jpg/)
Title: Re: Screen shot weirdness 7ea69b
Post by: Omega on 1 January 2012, 00:12:28
When taken from my operating system's own screenshooter, everything looks fine, but when pressing 'e' within game, this is what I get:

(http://img13.imageshack.us/img13/6458/screen0o.th.jpg) (http://imageshack.us/photo/my-images/13/screen0o.jpg/)
What resolution are you playing at?
Title: Re: Screen shot weirdness 7ea69b
Post by: softcoder on 1 January 2012, 00:30:58
Pretty sure we fixed this in mg, i think you need to wrap the readpixel call like this:

Code: [Select]
glPixelStorei(GL_PACK_ALIGNMENT, 1);

glReadPixels(0, 0, pixmapScreenShot->getW(), pixmapScreenShot->getH(),
GL_RGB, GL_UNSIGNED_BYTE, pixmapScreenShot->getPixels());

glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
Title: Re: Screen shot weirdness 7ea69b
Post by: John.d.h on 1 January 2012, 00:45:05
I've got it set to 1275 by 750 (i.e. my screen dimensions, minus the window border and task bar).  Yeah, I know it's not a conventional ratio.
Title: Re: Screen shot weirdness 7ea69b
Post by: Psychedelic_hands on 1 January 2012, 06:25:59
I'd love for this bug to be fixed. I Get it at all resolutions.
Title: Re: Screen shot weirdness 7ea69b
Post by: Coldfusionstorm on 1 January 2012, 15:21:45
I have also noticed this to be bugged sometime in the past, i don't care to use the game's own screen capture, fraps does it better. Perhaps because its a separate process