Jump to content

Changing Armor Tint Starter Guide


rdngmikey

Recommended Posts

Just did a quick analysis of the first 7 colors (with the corrected RGB floats order above) and i've found something interesting.

 

All the translated RGB sets are probably Lightened by a(nother!) tricky specular Layer applied to the Model-Texturing at run-time. Most of the Hues were darker than the actual pictures. So, i've experimented with HSL sliders and discovered that a majority of these Hues are (re-)approximated to the real thing when i added between 50 to 80% Lightness (Which *IS* a darkening method, btw).

Thus the conclusion that a specular process is in use. There's also the ambient reflection that may interfere with perceived variables... but that has to do with how everyone considers a valid color within the game "spectrum" range -- so to speak.

 

Which proves Dracous observations with the screenshot that matches Texture "Channels" with actual rendering in a previous post of his.

 

Soooooo... as a guide -- if someone were to select a specific coloring schema for any given number of extra tints as wished for, they'd have to use some basic source palette and simply throw in various amounts of "darkened" effects (Mostly Hue & Lightness) to obtain the nearest equivalent values to calculate the necessary Patcher equation. It's still a matter of guess'timates but better than nothing!

:wink:

Edited by Zyxpsilon
Link to comment
Share on other sites

  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

Alright, the article "Changing colors and tints - XCOM:EU 2012" is up, including everything up to this point. (Suggestion on re-organizing the content welcome.) I put all the images under the CC-SA license.

 

@rdngmikey: Your permission to use your images is assumed as you are the originator of the thread, and listed as under CC-SA license terms. Please rubber-stamp or object. If I don't hear this week I'm going to yank them. (I'm admittedly skating on thin ice here, but implied consent is there.)

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

Consent is always given, just remember that as stated in an earlier post, I based all of my work around info garnered from the wiki here.

 

http://wiki.tesnexus.com/index.php/Color_Palettes_-_XCOM:EU_2012

Thanks. It's just that images are slightly different than text in that they require separate permissions. Merely including them in text you originate doesn't make them legal to use elsewhere. Which is why I used a couple of different "public" images than you, because the permissions weren't clear. "Fair Use" in commentary is one thing, use in an article is another.

 

But we are all good now.

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

Here are the mods for

PantsColor

 

 

 

UPK_FILE=Startup.upk

OBJECT=UnitPalettes.PantsColor
REL_OFFSET=32
[MODDED_CODE]
// entry #0
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.8977553> <%f 0.4828416> <%f 0.103634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #1
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.492044> <%f 0.892044> <%f 0.036099> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #2
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.39> <%f 0.39> <%f 0.89> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #3
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.8918813> <%f 0.496099> <%f 0.88676> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #4
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.3813> <%f 0.87871> <%f 0.82908> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #5
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.4977553> <%f 0.8828416> <%f 0.103634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #6
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.492044> <%f 0.492044> <%f 0.836099> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #7
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.89> <%f 0.89> <%f 0.89> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #8
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 1.4918813> <%f 0.496099> <%f 0.18676> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #9
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.3813> <%f 1.37871> <%f 0.42908> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #10
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.4977553> <%f 0.4828416> <%f 1.103634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>

 

 

ShirtColor

 

 

UPK_FILE=Startup.upk

OBJECT=UnitPalettes.ShirtColor
REL_OFFSET=32
[MODDED_CODE]
// entry #0
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.8977553> <%f 0.4828416> <%f 0.103634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #1
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.492044> <%f 0.892044> <%f 0.036099> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #2
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.39> <%f 0.39> <%f 0.89> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #3
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.8918813> <%f 0.496099> <%f 0.88676> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #4
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.3813> <%f 0.87871> <%f 0.82908> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #5
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.4977553> <%f 0.8828416> <%f 0.103634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #6
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.492044> <%f 0.492044> <%f 0.836099> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #7
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.89> <%f 0.89> <%f 0.89> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #8
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 1.4918813> <%f 0.496099> <%f 0.18676> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #9
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.3813> <%f 1.37871> <%f 0.42908> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #10
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.4977553> <%f 0.4828416> <%f 1.103634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #11
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.292044> <%f 0.292044> <%f 0.236099> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #12
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 3.39> <%f 1.39> <%f 0.59> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #13
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.5918813> <%f 0.96099> <%f 0.8676> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #14
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.813> <%f 0.37871> <%f 1.42908> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #15
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 1.4977553> <%f 0.828416> <%f 0.903634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #16
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.92044> <%f 0.492044> <%f 0.036099> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>
// entry #17
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.39> <%f 0.9> <%f 0.29> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>

 

 

And

FormalClothesColor

 

 

UPK_FILE=Startup.upk

OBJECT=UnitPalettes.FormalClothesColor
REL_OFFSET=32
[MODDED_CODE]
// entry #0
<Primary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f 0.8977553> <%f 0.4828416> <%f 0.103634> <%f 1.0> // (R, G, B, A)
<Secondary>
<StructProperty>
<%u 0x00000010>
<%u 0x00000000>
<LinearColor>
<%f -1.07374e+008> <%f -1.07374e+008> <%f -1.07374e+008> <%f 1.0> // (R, G, B, A)
<None>

 

 

 

This should be everything in UnitPalettes Object file.

Please remember these are useing random colors, at some point in time I'll try and go back and put in the original colors, however seeing that the purpose of these mods is to change the colors, it's not exactly on my to do list at the moment.

Edited by rdngmikey
Link to comment
Share on other sites

I note that you left out the "<Primary>" and similar (section? field?) identifiers that wghost81 included. Do I take it correctly that those are not required and everything is really positional in nature from the relative offset? This could be confusing to someone reading the article and we should say something about it, if true.

 

Added to the "PatcherGUI mods" section.

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

rdngmikey, those won't work. You can't delete DefaultProperty sections.

So, those "<Primary>", etc., section labels need to be present?

 

What about the "<None>" lines? Are they just spacers/blank lines, or sections followed by nothing (effectively terminating the previous section)?

 

Or are you meaning something else entirely?

 

-Dubious-

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...