Source Filmmaker > 일반 토론 > 제목 정보
L Λ M B D λ #LFT Pyro 2014년 2월 15일 오전 11시 52분
Burning texture for models?
When you burn someonee in TF2, theres a burning kind of texture over them. How do I get that in SFM?
6개 중 1-6 표시중
< >
PenguinOfPwnage 2014년 2월 15일 오후 1시 48분 
I think it has something to do with particles.
R234 2014년 2월 15일 오후 3시 06분 
There is a particle system, but I think Lambda is talking about the animated fire overlay that's on models.

It's possible to control it in SFM, but it's a bit compex. You first have to find the material (.vmt) files that are associated with the model you want the overlay on, and open them in notepad. Say for instance I want to activate the fire overlay on the RED Sniper. I have to go to C:\Program Files (x86)\Steam\SteamApps\common\SourceFilmmaker\game\tf_movies\materials\models\player\sniper\, and open sfm_sniper_red.vmt, sfm_sniper_skin.vmt and hwm\sniper_head_red.vmt.

In all of the .vmt's, you need to do two things: first, if "$detailblendfactor" isn't 0, change it to that. If it already is at zero, don't touch it. Second, you need to comment out the whole BurnLevel proxy, by adding two slashes (//) in front of all of its lines, like so:
// "BurnLevel"
// {
// "resultVar" "$detailblendfactor"
// }
Save your changes. You can then launch SFM (if it was already, type mat_reloadallmaterials in the console to refresh the material definition).

Once you have the model you want to set ablaze, right-click its animation set > add override materials. Right-click it again > show in element viewer > model. Once in the element viewer, expand the materials array at the bottom, and look for the materials whose vmt's you messed with earlier.

Righ-click one of them > add attribute > float. Call it $detailblendfactor. Right-click the material again > create animationset for element. Click OK. Do the same for all the needed materials.

Back in the animation set editor, you should notice (a) new set(s) with the material name(s):
Which, when selected, give you a slider that controls the intensity of the fire overlay:
raptornx01 2014년 2월 15일 오후 3시 44분 
can you do this kind of thing with any model?
R234 2014년 2월 15일 오후 3시 52분 
As long as all of those lines are present in the .vmt, it should work:
"$detail" "effects/tiledfire/fireLayeredSlowTiled512.vtf"
"$detailscale" "5"
"$detailblendfactor" 0
"$detailblendmode" 6
"animatedtexturevar" "$detail"
"animatedtextureframenumvar" "$detailframe"
"animatedtextureframerate" 30
As we saw many times, some models don't like detailblendmode 6 in SFM, so that rules those out. As far as I know there's no other restriction though.
R234님이 마지막으로 수정; 2014년 2월 15일 오후 3시 53분
raptornx01 2014년 2월 15일 오후 4시 12분 
hmmm.... interesting.
0bsidianFire 2014년 7월 29일 오후 2시 37분 
Thanks for this, it works like a charm. Just wanted to add that in the current version of SFM, making an animation set for the materials will not give you a $detailblendfactor variable. What you can do instead is edit the $detailblendfactor value right in the element viewer.
6개 중 1-6 표시중
< >
페이지당: 15 30 50
게시된 날짜: 2014년 2월 15일 오전 11시 52분
게시글: 6