PAYDAY 2

PAYDAY 2

View Stats:
[Community] Mask Simulator
Hello everyone!

I'm proud to announce the beta release of one of the most popular community requests: a Mask Simulator tool. Yes, you read it correctly. Your masks will never be the same.

However, I ask you to read the entire post before throwing yourself at it, otherwise you might get frustrated or a big disappointed.

A great share of the work was done by guessing, not code mining.

Without access to the game shaders, I had to pretty much guess how every mask template is rendered. All I had to work with were model/texture files and variable values. Therefore, it does not look exactly like in-game, but it should look close enough to give you an idea -- and whether you will like it or not.

Important Remarks
  1. Lighting. Although it is easy to guess how many lights there are in the scene, their exact colors/intensities are still a mystery, so I'm using values that look reasonable. Edit: Lolnoobwut1 on Reddit tipped me their location in the LUA files, thanks!
  2. Materials. I've not yet figured out the exact algorithm to parse the spherical textures. The game seems to bend the edges of the texture inwards before selecting the texel, and this is something I could not achieve yet. My version also has the original mask outlines a bit stronger on the repeat textures than the game does.
  3. Sweep effect: I've added the effect to the COP masks and it looks remarkably close to the game's effect -- for that you have to thank our friend Malidictus for coming up with the main algorithm.
  4. Particle effects: I've not added any smoke or additional particle effects to the scene. It takes a great deal of experimentation to do them properly, and I didn't want to hold the release of the tool because of that.

Modders

Yes. I have plans for including community content (masks, materials & patterns) to the site. I don't know exactly when this will happen, but you can expect it at some point. Hopefully this is also an incentive for OVERKILL to add more community content to the game.

Notes
  • I've also added the option to share your customization by clicking on the chain icon at the bottom right corner of the canvas. The link will be copied to your clipboard so all you need to do is paste it wherever you need it.
  • Special thanks to AJValentine for helping me deal with some of the textures.
  • You need a browser with WebGL support to use this tool.

I hope this is of some use to the community.

http://pd2weapons.com/masks

Have a nice day,
BsoD
Last edited by Blue Screen of Death; Oct 18, 2016 @ 8:51am
< >
Showing 1-15 of 60 comments
76561198162727631 Oct 18, 2016 @ 7:44am 
Dear BsoD,
Why are you not working for OVK yet?
lexilogo Oct 18, 2016 @ 7:45am 
To quote Hoxton:

"♥♥♥♥♥♥' nice one"
Captain Toast Oct 18, 2016 @ 7:46am 
Wow, it really works well. Great work on this!
Originally posted by Pepsiman! #HalloweenNShit:
Dear BsoD,
Why are you not working for OVK yet?

You'll have to ask them ;)
KFC Nimbus Oct 18, 2016 @ 7:56am 
*Breathes heavily* WHAT IS THIS BLACK MAGIC?
76561198162727631 Oct 18, 2016 @ 7:57am 
Originally posted by Renekage The Spookster:
*Breathes heavily* WHAT IS THIS BLACK MAGIC?
Good programming.
KFC Nimbus Oct 18, 2016 @ 7:58am 
Originally posted by Pepsiman! #HalloweenNShit:
Originally posted by Renekage The Spookster:
*Breathes heavily* WHAT IS THIS BLACK MAGIC?
Good programming.
Indeed it is :)
Peanits Oct 18, 2016 @ 7:59am 
The next step is just making PAYDAY 2 in a browser, right?

That's impressive. It would be super cool if you could do the same for weapons too, but that would probably take a long time since a lot of the mods would have to be manually coded.
KFC Nimbus Oct 18, 2016 @ 8:00am 
Originally posted by Peanits:
The next step is just making PAYDAY 2 in a browser, right?

That's impressive. It would be super cool if you could do the same for weapons too, but that would probably take a long time since a lot of the mods would have to be manually coded.
If masks are possible then guns might be possible.
I've discussed the possibility of doing weapon skins, but I'd have to look into how that system works from the code perspective. I'm sure it is possible. There's also a some drama that I don't want to get into
Demoni Foxy Oct 18, 2016 @ 8:06am 
Blue Screen of Death, you're really amazing. thank you for this!!
Baum Oct 18, 2016 @ 8:08am 
Wow, this is an awesome tool! Very well done!
Malidictus Oct 18, 2016 @ 8:12am 
Sadly, I failed pretty hard when it came to texture projection algorithms. Still, glad you got the tool working, though. It looks pretty damn awesome :)
Toyfan1 Oct 18, 2016 @ 8:48am 
Hot damn..
It works on my J3 too.

Outstanding BSOD.
Props to you and Mal.
chrom[K]a Oct 18, 2016 @ 9:45am 
nice
< >
Showing 1-15 of 60 comments
Per page: 1530 50

Date Posted: Oct 18, 2016 @ 7:43am
Posts: 60