MegaGlest Forum

Modding and game content creation => Mods => Topic started by: Coldfusionstorm on 27 January 2015, 12:16:43

Title: Teamcolour Behavior [Request to change it]
Post by: Coldfusionstorm 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).
Title: Re: Teamcolour Behavior [Request to change it]
Post by: Ishmaru 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.
Title: Re: Teamcolour Behavior [Request to change it]
Post by: John.d.h 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.)
Title: Re: Teamcolour Behavior [Request to change it]
Post by: Coldfusionstorm on 28 January 2015, 13:24:04
Thanks, I did not know this, :), Il try it out, and il report back!
Title: Re: Teamcolour Behavior [Request to change it]
Post by: MuwuM on 28 January 2015, 15:43:13
(If there's a more up-to-date link, somebody please provide it.)
Simply replace https://docs.megaglest.org/ with https://docs.megaglest.org/
https://docs.megaglest.org/Transparent_teamcolor (https://docs.megaglest.org/Transparent_teamcolor)
Title: Re: Teamcolour Behavior [Request to change it]
Post by: titi 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 ;) )
Title: Re: Teamcolour Behavior [Request to change it]
Post by: Coldfusionstorm 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!