Showing the faction's symbol during selection [Implemented v0.3.2]

Started by Zoythrus, 30 September 2010, 03:00:34

wyvern

Its a gear, i always thought it was a targetting cross at any rate it would be a good tech symbol

silnarm

Ok, using two images I can get what I wanted,



So you can specifiy a 'team-colour' image and/or a 'rgba-image'.
You can use none, one, or both.

The team-colour one just multiplies the colour intensity at every pixel with the team colour, idealy a two channel image (grey, alpha) would do here, but the engine wont read 2 channel images at the moment, so use 4 and confine yourself to greys.

The rgba one is just a straight image, if you use both, the team-colour image is read first and then the rgba one is blended over the top.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

Omega

Quote from: silnarm on 29 October 2010, 02:31:42
Ok, using two images I can get what I wanted,



So you can specifiy a 'team-colour' image and/or a 'rgba-image'.
You can use none, one, or both.

The team-colour one just multiplies the colour intensity at every pixel with the team colour, idealy a two channel image (grey, alpha) would do here, but the engine wont read 2 channel images at the moment, so use 4 and confine yourself to greys.

The rgba one is just a straight image, if you use both, the team-colour image is read first and then the rgba one is blended over the top.

Looks great silnarm. Not completely sure I understand what you mean though... Can you post the two images that would be used to make a demo logo?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

silnarm

Here's the ones I'm currently using for Magic,



The one on the left is the 'team-colour' texture, the colour intensity from the rgb channels is multiplied in with the team colour (so just use greys), the one on the right is just a straight rgba image, which is blended over the team colour texture (if present).
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Zoythrus

so, does it work? i mean, can we use it now?

Omega

That looks fantastic silnarm. Precisely what I had in mind a bit earlier (and better). This will be in 0.3.2 I assume?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

silnarm

Quote from: Omega on 10 November 2010, 22:15:12
...Precisely what I had in mind a bit earlier (and better). This will be in 0.3.2 I assume?

Yes, was done in the 0.3.x branch and will be in 0.3.2
Glest Advanced Engine - Code Monkey

Timeline | Downloads