Author Topic: Showing the faction's symbol during selection [Implemented v0.3.2]  (Read 6236 times)

wyvern

  • Guest
Re: Showing the faction's symbol during selection
« Reply #25 on: 26 October 2010, 01:06:42 »
Its a gear, i always thought it was a targetting cross at any rate it would be a good tech symbol

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Showing the faction's symbol during selection
« Reply #26 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.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Showing the faction's symbol during selection
« Reply #27 on: 29 October 2010, 06:10:08 »
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

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Showing the faction's symbol during selection
« Reply #28 on: 10 November 2010, 11:55:31 »
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

  • Guest
Re: Showing the faction's symbol during selection
« Reply #29 on: 10 November 2010, 15:13:49 »
so, does it work? i mean, can we use it now?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Showing the faction's symbol during selection
« Reply #30 on: 10 November 2010, 22:15:12 »
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

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Showing the faction's symbol during selection
« Reply #31 on: 15 November 2010, 12:42:59 »
...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

 

anything