Author Topic: G3D Viewer: Take image with Alpha  (Read 1887 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
G3D Viewer: Take image with Alpha
« 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. :)
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: G3D Viewer: Take image with Alpha
« Reply #1 on: 12 January 2011, 01:21:04 »
Do want. :thumbup:  Much more convenient and relevant than rendering in Blender.

Psychedelic_hands

  • Guest
Re: G3D Viewer: Take image with Alpha
« Reply #2 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  :|

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: G3D Viewer: Take image with Alpha
« Reply #3 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
Glest Advanced Engine - Code Monkey

Timeline | Downloads

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: G3D Viewer: Take image with Alpha
« Reply #4 on: 20 January 2011, 18:05:49 »
Hi guys, just added this to G3d Viewer in MG (screenshots and changing background color)

Thanks

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: G3D Viewer: Take image with Alpha
« Reply #5 on: 20 January 2011, 21:19:51 »
*Pokes silnarm to steal MG's code*

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

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

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: G3D Viewer: Take image with Alpha
« Reply #6 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
Glest Advanced Engine - Code Monkey

Timeline | Downloads

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: G3D Viewer: Take image with Alpha
« Reply #7 on: 21 January 2011, 16:38:48 »
P.S. just added the ability to make the background transparent when saving the PNG.