Source Filmmaker

Source Filmmaker

Phobias Apr 19, 2019 @ 3:35am
Anyone know how to write proxy commands for selfillum? (Unsolved)
Basically like the "$colorbase_tint" code in a model's VMT:

"$blendtintcoloroverbase" "0"
"$colortint_base" "{ R255 G255 B255 }"
"$colortint_tmp" "[0 0 0]"
"$color2" "{ R255 G255 B255 }"

"proxies"
{
"ItemTintColor"
{
"resultVar" "$colortint_tmp"
}
"SelectFirstIfNonZero"
{
"srcVar1" "$colortint_tmp"
"srcVar2" "$colortint_base"
"resultVar" "$color2"
}
}

Results in being able to color a model with the element viewer material overrides. So I wonder if there's in anyway a chance to be able to to be able to change the glow color in element viewer without it affecting the glow strength and all without having to go on SFM to add an attribute into the element viewer.
Last edited by Phobias; Apr 19, 2019 @ 7:49am
< >
Showing 1-7 of 7 comments
episoder Apr 19, 2019 @ 3:40am 
$selfillumtint?
Phobias Apr 19, 2019 @ 3:52am 
Originally posted by episoder:
$selfillumtint?
I wish it were as simple as replacing "$selfillumtint" where "$colortint_tmp" is but it didn't seem to work.
Zappy Apr 19, 2019 @ 4:00am 
Originally posted by Phobias:
I wish it were as simple as replacing "$selfillumtint" where "$colortint_tmp" is but it didn't seem to work.
Have you tried replacing $Color2 in the "SelectfirstIfNonZero" proxy with $SelfIllumTint, and/or adding an Equals proxy after it that copies $Color2 to $SelfIllumTint?
Phobias Apr 19, 2019 @ 4:18am 
Originally posted by Zappy:
Originally posted by Phobias:
I wish it were as simple as replacing "$selfillumtint" where "$colortint_tmp" is but it didn't seem to work.
Have you tried replacing $Color2 in the "SelectfirstIfNonZero" proxy with $SelfIllumTint, and/or adding an Equals proxy after it that copies $Color2 to $SelfIllumTint?

Okay I seem to have got it to kind of work.
The selfillum can change color but the actual glow isn't present just that the model's color is brighter.

This is the code:

"$selfillum" "1"
"$selfillumtint" "[5 0 0]"

"$blendtintcoloroverbase" "0"
"$colortint_base" "{ 255 0 0 }"
"$colortint_tmp" "[0 0 0]"

"proxies"
{
"ItemTintColor"
{
"resultVar" "$selfillumtint"
}
"SelectFirstIfNonZero"
{
"srcVar1" "$colortint_tmp"
"srcVar2" "$colortint_base"
"resultVar" "$selfillumtint"
}
}
Last edited by Phobias; Apr 19, 2019 @ 4:19am
episoder Apr 19, 2019 @ 4:44am 
well. the pure selfillum depends on the color of the basetexture and if combined with a paintable item can only selfillum the parts that are paintable and using the color. to seperate the selfillum and the paint you gotta use the $selfillummask. i'm not sure right now if this shader combo even works. if it does, keep in mind tho, that colors blend. means a red base and green selfillum will just become yellow. the selfillum aka emission is not bloomed seperately either. that is something that could have been done, but... blah.
Phobias Apr 19, 2019 @ 4:57am 
Originally posted by episoder:
well. the pure selfillum depends on the color of the basetexture and if combined with a paintable item can only selfillum the parts that are paintable and using the color. to seperate the selfillum and the paint you gotta use the $selfillummask. i'm not sure right now if this shader combo even works. if it does, keep in mind tho, that colors blend. means a red base and green selfillum will just become yellow. the selfillum aka emission is not bloomed seperately either. that is something that could have been done, but... blah.

Well basically all that needs to happen is to be able to change the glow color in element viewer without it affecting the glow strength and all without having to add an attribute into the element viewer.
Zappy Apr 19, 2019 @ 5:55am 
Originally posted by Phobias:
- The selfillum can change color but the actual glow isn't present just that the model's color is brighter. This is the code: -Snipped to keep the quote short-
$SelfIllumTint defaults to "[5 0 0]". You may wish to add a Multiply proxy after the SelectFirstIfNonZero proxy, to multiply $SelfIllumTint by its intended 5.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Apr 19, 2019 @ 3:35am
Posts: 7