Author Topic: Teamcolour Behavior [Request to change it]  (Read 1334 times)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Teamcolour Behavior [Request to change it]
« on: 27 January 2015, 12:16:43 »
Teamcolor right now works that you define alpha color in your texture however, This removes the possibilty of making glasslike surfaces or low poly fences, (and properly a few more options im not currently aware of).

So i was thinking what about being able to mark mesh plates and let the engine teamcolor those instead of the on the texture, Or use a certain obscure color code for teamcolor. (not the beautifull solution tho).
WiP Game developer.
I do danish translations.
"i break stuff"

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Teamcolour Behavior [Request to change it]
« Reply #1 on: 27 January 2015, 14:33:24 »
I would recommend not doing transparency through alpha channels as the detection is a little off.   My experience is that alpha channels with areas less than 50% are not rendered at all, and areas greater than 80% are rendered fully opaque.

Instead use G3DHack to define mesh opacity, and this way you can have team color alpha channel and define opacity on same mesh. Using different meshes to define zones of different degrees of transparency.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Teamcolour Behavior [Request to change it]
« Reply #2 on: 28 January 2015, 01:11:06 »
Transparent surfaces have always existed in Glest, and here's how to achieve them: https://docs.megaglest.org/Transparent_teamcolor

(If there's a more up-to-date link, somebody please provide it.)
« Last Edit: 18 June 2016, 17:57:03 by filux »

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: Teamcolour Behavior [Request to change it]
« Reply #3 on: 28 January 2015, 13:24:04 »
Thanks, I did not know this, :), Il try it out, and il report back!
WiP Game developer.
I do danish translations.
"i break stuff"

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Teamcolour Behavior [Request to change it]
« Reply #4 on: 28 January 2015, 15:43:13 »
« Last Edit: 18 June 2016, 15:49:14 by filux »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Re: Teamcolour Behavior [Request to change it]
« Reply #5 on: 28 January 2015, 16:22:39 »
I think Coldfusionstorms question was about transparent parts in the model. This is not transparent team color ( which is very tricky ).
Its very easy to do because you just need a second object in blender where you can set team color to false. So you can have objects with team color and objects without. In MG those are called Meshes, so in MG a mesh can have a teamcolor effect ( transparency is replaced with team color)  or it has no such effect and is by this transparent like the texture shows it. Combine multiple of theses Meshes to one final model and you get what you want.

see here : https://docs.megaglest.org/Teamcolor

[ this is no feature request, more a question for the mod section ;) )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: Teamcolour Behavior [Request to change it]
« Reply #6 on: 29 January 2015, 21:31:38 »
Ah Titi, Thanks that was exactly what i was looking for!, Even better you gave solution! Many thanks!
WiP Game developer.
I do danish translations.
"i break stuff"

 

anything