Is it possible to use cutoutcomplex shader on weapons?

Started by ziame, September 01, 2017, 12:01:38 PM

Previous topic - Next topic

ziame

I have made some masks for melee weapons (so that the hilt is wooden brownish and the rest is stuffed) but if I use shader complex, they just use the base texture, instead of the coloured, while simple cutout and no shader specified stuff-color entire texture. Any advice?

(tl;dr: i want to have part of weapon with constant colour and part of it stuff colour)

mrofa

Shader will only apply when weapon is on the ground, when its equiped on pawn its draw with cutout only.
All i do is clutter all around.

CannibarRechter

CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

CannibarRechter

I just got this to work. I actually had to read the code to find a mistake I struggled with for a while. If you have knife.png, the mask file must be knife_m.png. I thought that it was knifem.png, because beds are funny. Apparently if you have a multi and a complex, it's _frontm, so I though the m would be added without a _.
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

ziame

Works for me:
CutoutComplex
GraphicsSingle
_m.png instead of m.png

Thanks all!

CannibarRechter

You're welcome. As it turns out, figuring out the answer to your question helped me with a big texture overhaul mod I'm working on. You'd think the base game would have this, it isn't very hard to implement. I feel like I should submit the original games graphics back to Tynan with the masks added. ;-P
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Distman

But still no way to have CutoutComplex for worn apparel and weapons?
Would love to have that for some shaman head dresses i'm working on...

CannibarRechter

I don't know, but beds have multiple rotations, and are also cutout complex, so I would not conclude without trying it that it wouldn't work for apparel. If it were to work, I would expect it to follow the pattern of Duster_Thin_backm.png and so forth.
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

ziame

Quote from: Distman on September 12, 2017, 12:14:10 PM
But still no way to have CutoutComplex for worn apparel and weapons?
Would love to have that for some shaman head dresses i'm working on...

Uh i Just wrote that it works mate
Use CutoutCopmlex and GraphicsSingle. Make a mask texture ending with _m.png
For example
Shaman_head_dress.png and Shaman_head_dress_m.png

Then you have to make the shaman head dress makable from Stuff, and they will be stuff-coloured.

I attached an example of working mask (BoarSpear from Medieval Times mod, mask is mine)

[attachment deleted by admin: too old]