• Animating Spy invisibility?
    29 replies, posted
  • Is it possible? I've animated a hwm model of a spy from scratch and I really need to make him go invisible but I can't see anything that would make this possible.
  • Only possible through game logic, I'm pretty sure. You could do a new shot with a player controlled spy that goes invisible. Then remove the animation from the player and pose it to match up with your animation from the previous shot.
  • That being said, if you had an item locked to the spy and you had the spy go invisible, how would the item go invisible as well? Would it happen automatically?
  • [QUOTE=Dogchow33;36594382]That being said, if you had an item locked to the spy and you had the spy go invisible, how would the item go invisible as well? Would it happen automatically?[/QUOTE] pretty sure that's game logic as well, pretty much all player items have the cloak material proxy in their vmts and TF2 tells the items to go invisible, stuff like that i doubt it'd work like that in SFM, locking is most likely only lock from a position/rotation standpoint, not any other parameters
  • I guess spies invisibility is controlled by shader in vmt file which is the material file for vtf texture files, I think it's worth a try to replace one of the skins or add skin to the model so you can just switch skin and it's invisible.
  • You could render the part where he cloaks/uncloaks with the Spy and without him, lay both videos onto each other, then fade one out.
  • You can animate material proxies in the element viewer - if you want I can try to make a tutorial later.
  • [QUOTE=Gran PC;36631087]You can animate material proxies in the element viewer - if you want I can try to make a tutorial later.[/QUOTE] Please do. I think I might need it when I get my hands on SFM.
  • [QUOTE=Gran PC;36631087]You can animate material proxies in the element viewer - if you want I can try to make a tutorial later.[/QUOTE] Words could not describe how thankful I would be If you were to do such a thing.
  • [QUOTE=Gran PC;36631087]You can animate material proxies in the element viewer - if you want I can try to make a tutorial later.[/QUOTE] That would be fantastic.
  • Following that question, would it be possible to apply cloak effect to other player models, like Heavy?
  • Yes. [editline]6th July 2012[/editline] Incoming tutorial, about to record it after having tested it. [editline]6th July 2012[/editline] [media]http://www.youtube.com/watch?v=DfeUfOEBg5k[/media] For this tutorial you'll most likely need this file from my server: [url]http://peniscorp.com/proxymats.dmx[/url] I screwed up the material path when I was setting it - it's hvyweapon, not heavy. Please let me know if there's anything you don't understand or you need help with.
  • [QUOTE=Gran PC;36646112]Yes. [editline]6th July 2012[/editline] Incoming tutorial, about to record it after having tested it. [editline]6th July 2012[/editline] [media]http://www.youtube.com/watch?v=DfeUfOEBg5k[/media] For this tutorial you'll most likely need this file from my server: [url]http://peniscorp.com/proxymats.dmx[/url] I screwed up the material path when I was setting it - it's hvyweapon, not heavy. Please let me know if there's anything you don't understand or you need help with.[/QUOTE] I love you. [editline]6th July 2012[/editline] This is how much I love you. [video=youtube;uwQ5bJXxF6M]http://www.youtube.com/watch?v=uwQ5bJXxF6M[/video]
  • [QUOTE=Gran PC;36646112] For this tutorial you'll most likely need this file from my server: [url]http://peniscorp.com/proxymats.dmx[/url] I screwed up the material path when I was setting it - it's hvyweapon, not heavy. Please let me know if there's anything you don't understand or you need help with.[/QUOTE] Well Just one thing...Where do I Put Proxymats.dmx
  • [QUOTE=Doc ock rokc;36654880]Well Just one thing...Where do I Put Proxymats.dmx[/QUOTE] anywhere you can open it up with sfm. so something like SourceFilmmaker\game\usermod\elements\sessions
  • Ok I thought I understood what was going on but whenever I tried to do what Gran PC did it didn't seem to work. Any ideas? Edit Nevermind Figured everything but heads out. The head of the Spy to be exact.
  • Yeah, it's in another folder - I don't have access to a working copy of SFM right now but if you haven't figured it out in ~2 hours I'll try making a list of materials for every model.
  • [QUOTE=Gran PC;36660089]Yeah, it's in another folder - I don't have access to a working copy of SFM right now but if you haven't figured it out in ~2 hours I'll try making a list of materials for every model.[/QUOTE] I'm just working on a script to add these materials automatically, and their naming is godawful. :suicide: Consistency? Nope.
  • Yeah I was hoping to make a script to extract the material list from the models and then generate DMX files out of it - I'd love to get some specs on the DMX files.
  • [QUOTE=Gran PC;36661191]Yeah I was hoping to make a script to extract the material list from the models and then generate DMX files out of it - I'd love to get some specs on the DMX files.[/QUOTE] Everyone would love to get some specs on them, lol Since Orange Box was introduced there was been strictly zero communication on them from Valve. It's really annoying :/ Daimao has been reverse engineering quite a few things on DMXes, you should go hit him up
  • Needs some work, but yeah, script: [url]https://github.com/miek/sfm_scripts/tree/master/setup_cloaking[/url] :v:
  • [t]http://horobox.reager.org/u/Jojje_1342954757.jpg[/t] Did it as per Gran PCs tutorial but shit ain't cloakin'. I'm sure the material names are correct, there aren't really any other ones to choose from anyway.
  • [QUOTE=Gran PC;36884199]You need to move the proxy material children to the materials element.[/QUOTE] Oooh. I see. Thanks, will do that.
  • [url]https://dl.dropbox.com/u/897064/setup_cloaking.rar[/url] Contains a blue and red variant. Place in C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\platform\scripts\sfm\animset Rig > setup_cloaking_<COLOR>
  • GranPC, your tutorial helped me greatly in making my spy transparent, however it's caused me some kind of ambient occlusion issue ( [url=http://i.imgur.com/TJFOl.jpg]screenshot[/url] ) I was wondering if you had any idea what might be causing it, and how to stop it happening; does it matter that the spy I'm using is a hwm model? Thanks for any help you can give me.
  • [QUOTE=Smashman;36890215][url]https://dl.dropbox.com/u/897064/setup_cloaking.rar[/url] Contains a blue and red variant. Place in C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\platform\scripts\sfm\animset Rig > setup_cloaking_<COLOR>[/QUOTE] The rigs don't work for weapons.