Ludeon Forums

RimWorld => Mods => Help => Topic started by: ziame on September 01, 2017, 12:01:38 PM

Title: Is it possible to use cutoutcomplex shader on weapons?
Post by: ziame on September 01, 2017, 12:01:38 PM
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)
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: mrofa on September 02, 2017, 07:23:53 AM
Shader will only apply when weapon is on the ground, when its equiped on pawn its draw with cutout only.
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: CannibarRechter on September 02, 2017, 05:04:49 PM
Is it working properly on ground?
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: CannibarRechter on September 03, 2017, 09:43:25 AM
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 _.
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: ziame on September 10, 2017, 08:28:32 AM
Works for me:
CutoutComplex
GraphicsSingle
_m.png instead of m.png

Thanks all!
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: CannibarRechter on September 11, 2017, 07:27:01 AM
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
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: 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...
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: CannibarRechter on September 12, 2017, 04:25:50 PM
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.
Title: Re: Is it possible to use cutoutcomplex shader on weapons?
Post by: ziame on September 23, 2017, 07:10:33 AM
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]