News:

MegaGlests' game mods menu let's you install many new mods. Even more are available on the MegaGlest Wiki and the Mods forum.

Main Menu

G3D Viewer: Take image with Alpha

Started by Omega, 11 January 2011, 23:29:17

Omega

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. :)
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

John.d.h

Do want. :thumbup:  Much more convenient and relevant than rendering in Blender.

Psychedelic_hands

I agree, Print-screening and then removing the background is rather time consuming.
But we could do without it  :|

silnarm

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
Glest Advanced Engine - Code Monkey

Timeline | Downloads

softcoder

Hi guys, just added this to G3d Viewer in MG (screenshots and changing background color)

Thanks

Omega

*Pokes silnarm to steal MG's code*

;)
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

Quote from: softcoder on 20 January 2011, 18:05:49
Hi guys, just added this to G3d Viewer in MG (screenshots and changing background color)
Sweet, cheers softcoder :thumbup:

Quote from: Omega on 20 January 2011, 21:19:51
*Pokes silnarm to steal MG's code*
It's still wx, poke someone else!  :P
Glest Advanced Engine - Code Monkey

Timeline | Downloads

softcoder

P.S. just added the ability to make the background transparent when saving the PNG.