Source Filmmaker > Общие обсуждения > Подробности темы
Among the Marked.j2 16 авг, 2013 @ 6:31
How to change lighting from items?
Ex: The briefcase from ctf has two glowing buttons, and the keypad from hl2 has a large glowing screen at the top

In pitch black these lighting effects stick out like a sore thumb, and personally I am wanting to find a way to "turn them off" so I can bring in some alternate light choices
Показано 19 из 9 комментариев
< >
R234 16 авг, 2013 @ 13:48 
Here's how you can turn off the lights on the CTF intel:

right-click the model's animation set and click Add Override Materials. Right-click it again, go to Show in Element Viewer > Model. There should be an array called materials at the bottom, expand it. Now, right-click either briefcase (if you want to modify the RED intel) or briefcase_blue (for the BLU one). Select Add Attribute > float. Call the attribute $detailblendfactor. When the new attribute is created, it defaults to 0, which automatically turns the lights off. You can also make them dimmer by setting it to 0.2 or something like that.

That doesn't work with the HL2 keypad though, I'll see if I can find a way to turn the screen off in the Element Viewer.
Последний раз отредактировал R234; 16 авг, 2013 @ 13:59
raptornx01 16 авг, 2013 @ 13:53 
Is there a list somewhere about this override material thing and all it does? It seems quite a useful addition.
R234 16 авг, 2013 @ 14:13 
Изначально опубликовано raptornx01:
Is there a list somewhere about this override material thing and all it does? It seems quite a useful addition.
It's the parametres that are present in the material file. briefcase.vmt reads:
"VertexLitGeneric"
{
"$baseTexture" "models\flag/briefcase"
"$envmap" "env_cubemap"
"$basealphaenvmapmask" 1
"$envmaptint" .5 .5 .5

"$detail" "models\flag/briefcase_light_red"
"$detailscale" "1"
"$detailblendfactor" .9
"$detailblendmode" 6

}
Judging by that, the lights use the detail texture function. All I had to do was control $detailblendfactor to change the opacity of the lights ;)

As for concrete info on what they are and what their type is (float, int, bool, etc.), the Valve Developer Wiki has that, more or less:
https://developer.valvesoftware.com/wiki/Category:List_of_Shader_Parameters
https://developer.valvesoftware.com/wiki/List_Of_Material_Proxies
raptornx01 16 авг, 2013 @ 14:20 
oh, so it's case specific.

still, seems useful.
R234 16 авг, 2013 @ 14:24 
Okay, got the HL2 keypad working. Just use the same process, but instead of adding an attribute of type "float" called $detailblendfactor, add a "color" called $selfillumtint. You can then control the lightness of the screen by seting the colour to different shades of grey (or even change its colour entirely, cool stuff). The materials are keypad_sheet (blank screen), keypad_granted (*ACCESS*) and keypad_denied (*ERROR*).
Among the Marked.j2 16 авг, 2013 @ 16:26 
Alright thx!
Among the Marked.j2 18 авг, 2013 @ 5:59 
Actually, when you say "setting the color to different shades of grey", how do you do that?
R234 18 авг, 2013 @ 12:50 
See the black rectangle that appears next to $selfillumtint? Just click that and you'll get a colour selection tool. Just stay to the far left so you remain in greyscales.
Among the Marked.j2 18 авг, 2013 @ 19:37 
Ah, totally failed to see $selfillumtint pop up on the list(forgot to expand it)
Thx again
I should link the video when done here so you can see XD(will be awhile, but still)
Показано 19 из 9 комментариев
< >
На страницу: 15 30 50
Дата создания: 16 авг, 2013 @ 6:31
Сообщений: 9