[SOLVED] Partial recolor for stuffed objects?

Started by jecrell, October 01, 2016, 06:24:13 AM

Previous topic - Next topic

jecrell

So, I'm creating some lovely candelabras and chandeliers for RimWorld, and I noticed that they are fully recolored by the game when they are set to stuffed -- candles and all.

How can I keep my candles a separate color and still enjoy the different colors from stuffed properties like steel and slate?
...Psst. Still there? If you'd like to support
me and my works, do check out my Patreon.
Someday, I could work for RimWorld full time!

https://www.patreon.com/jecrell

skullywag

you need a mask file, which is a file with the same name that ends with an _m
see here for an example:
https://github.com/Skullywag/MedievalShields/blob/master/Textures/Things/Item/Equipment/Apparel/Accessory/BucklerSingle/buckler1_m.png
the vanilla bed among other things in the A15 art resources will show you this as well. Some people use a black/white mask, I tend to use the red/green mask ala vanilla.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

jecrell

#2
So, documenting the results.

First, I created a Candelabra.png file.

Then, I created a very rudimentary mask Candelabra_m.png file.


I also had to add this line in the XML for the building definition.
<ThingDef Name="Blahblahblah">
...
<graphicData>
...
<shaderType>CutoutComplex</shaderType>
</graphicData>
</ThingDef>
   
The result?


Thanks so much!
...Psst. Still there? If you'd like to support
me and my works, do check out my Patreon.
Someday, I could work for RimWorld full time!

https://www.patreon.com/jecrell

skullywag

Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?