MegaGlest Forum

Archives (read only) => Glest Advanced Engine => Feature requests => Topic started by: Omega on 11 January 2011, 23:29:17

Title: G3D Viewer: Take image with Alpha
Post by: Omega on 11 January 2011, 23:29:17
Feature Request: A button or menu option to let us take a screenshot of the model instantly with transparency (or an option between transparency and the default grey, maybe even the ability to choose the background color?). This would be VERY useful as I have to super impose units on top backgrounds (such as for icons) as well as transparency is so handy. This should take the image from the viewpoint the viewer is currently in, with the current team color. The images should be saves as a PNG or TGA (which the user can convert themselves. Keeping the choices simple for exporting means it's easier to implement)

Pros: Ability to easily take screen shots with alpha background, no bad AA clip-off when trying to manually remove a background

Cons: Besides the effort of implementing, none.

Having seen this attempted in another topic (about a script that generated information about mods for the web), and having seen examples of such with a solid background and mentioning that alpha works, but is a bad idea for GIFs, I think this should be wholly possible for a single, still image in PNG format. :)
Title: Re: G3D Viewer: Take image with Alpha
Post by: John.d.h on 12 January 2011, 01:21:04
Do want. :thumbup:  Much more convenient and relevant than rendering in Blender.
Title: Re: G3D Viewer: Take image with Alpha
Post by: Psychedelic_hands on 12 January 2011, 10:25:50
I agree, Print-screening and then removing the background is rather time consuming.
But we could do without it  :|
Title: Re: G3D Viewer: Take image with Alpha
Post by: silnarm on 19 January 2011, 10:58:29
Yeah, this would obviously be handy... I've created a ticket for it (#296), but haven't set a milestone, because I hate wxWidgets :P
Title: Re: G3D Viewer: Take image with Alpha
Post by: softcoder on 20 January 2011, 18:05:49
Hi guys, just added this to G3d Viewer in MG (screenshots and changing background color)

Thanks
Title: Re: G3D Viewer: Take image with Alpha
Post by: Omega on 20 January 2011, 21:19:51
*Pokes silnarm to steal MG's code*

 ;)
Title: Re: G3D Viewer: Take image with Alpha
Post by: silnarm on 21 January 2011, 07:07:53
Hi guys, just added this to G3d Viewer in MG (screenshots and changing background color)
Sweet, cheers softcoder :thumbup:

*Pokes silnarm to steal MG's code*
It's still wx, poke someone else!  :P
Title: Re: G3D Viewer: Take image with Alpha
Post by: softcoder on 21 January 2011, 16:38:48
P.S. just added the ability to make the background transparent when saving the PNG.