News:

If you like the game and can afford to, please donate to support MegaGlest.

Main Menu

Team Colour on unit Icons.

Started by Psychedelic_hands, 3 December 2010, 05:53:06

Psychedelic_hands

Can this be done?
Possibly the same way the faction icon way was done. With two separate images?

Zoythrus

hello, I'm Zoythrus, and i endorse this thread.  :thumbup:

the warlord of the reich

so the point here is to change the icon colors?

does'nt need an entire thread at all

Psychedelic_hands

Quote from: the warlord of the reich on  3 December 2010, 08:53:51
so the point here is to change the icon colors?

No, please read more carefully.

This is about TEAM colour on unit icon's.
Say if I were Blue player, the background on my unit's icons will be blue. If I was red player they would be red, etc. This is not for Magitech either, this is for other new mods.

Zoythrus

Quote from: Psychedelic_hands on  3 December 2010, 09:24:07
Quote from: the warlord of the reich on  3 December 2010, 08:53:51
so the point here is to change the icon colors?

No, please read more carefully.

This is about TEAM colour on unit icon's.
Say if I were Blue player, the background on my unit's icons will be blue. If I was red player they would be red, etc. This is not for Magitech either, this is for other new mods.

not just backgrounds, but also unit clothing, emblems, and stuff that are shown in the picture

John.d.h

Theoretically, I suppose it could be done using the alpha channel, much like how it's done with our textures already.  Of course, we'd have to use a format other than bitmap (targa or portable network graphic).

Zoythrus

also, we need a way of making the background invisible, but the unit in the picture teamcolor (you cant just use tons of alpha)

Mark

Quote from: John.d.h on  3 December 2010, 21:28:34
Theoretically, I suppose it could be done using the alpha channel, much like how it's done with our textures already.  Of course, we'd have to use a format other than bitmap (targa or portable network graphic).
I was thinking maybe png would be best, but doesn't alpha in a png make a pixel see-through?  Maybe a particular shade of gray?

John.d.h

Quote from: Mark on  3 December 2010, 23:02:10
I was thinking maybe png would be best, but doesn't alpha in a png make a pixel see-through?  Maybe a particular shade of gray?
Yes, but same goes for targa.  It's the engine that interprets it as team color.  Think of it like taking the transparent image and putting it on top of a colored layer.

Psychedelic_hands

But what I have is the unit on transparency.... But I want the unit to be in team colour... hold on a sec and I'll show you.

silnarm

Tickets #261 and #262.

No milestone has been set at this stage.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Psychedelic_hands



As you can see the background is transparent, and the unit is heavy on teamcolour. It looks quite strange when you are green team, and in all your unit icons they're red.

Edit: Thanks Silnarm!   ;D

Omega

Support, but how would you, say, take an image of your unit with that team color? It'd be better off with solid, simple parts like the backs of buttons being that team color, unless you want to manually modify that image... Perhaps taking a page from Silnarm's book and using 2 images (like faction logos) to create both transparency and teamcolor? Abet, it seems a bit complicated, but works at least...

Then again, I don't know of any mods that use transparency in their buttons??
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Psychedelic_hands

Quote from: Omega on  4 December 2010, 06:33:32
Support, but how would you, say, take an image of your unit with that team color? It'd be better off with solid, simple parts like the backs of buttons being that team color, unless you want to manually modify that image... Perhaps taking a page from Silnarm's book and using 2 images (like faction logos) to create both transparency and teamcolor? Abet, it seems a bit complicated, but works at least...
It wouldn't be to hard just to select the colour of the units, then make an alpha channel would it?
Quote
Then again, I don't know of any mods that use transparency in their buttons??

We do.  :D

John.d.h

Quote from: Omega on  4 December 2010, 06:33:32
Support, but how would you, say, take an image of your unit with that team color?
Add an underlying layer of a particular color on the texture.  Render.  Color to alpha.

Yggdrasil

I don't like this idea. Isn't the point of icons to be instantly recognisable? Changing them just because you're a different player doesn't make sense to me.

Psychedelic_hands

Quote from: Yggdrasil on  4 December 2010, 16:17:44
I don't like this idea. Isn't the point of icons to be instantly recognisable? Changing them just because you're a different player doesn't make sense to me.

Well the Crincillin don't really have a defined stlye without teamcolour....
The icons would still be very recognizable, they just match your units!