$envmapmask Failing

A Forum Thread for Team Fortress 2

Made a reskin for the Brass Beast, but I'm having trouble. The environment mask I'm using doesn't want to seem to work, but instead the alpha channel of the diffuse (or something else entirely) is being used despite having $basealphaenvmapmask commented out and $envmapmask pointing to the texture I want it to use. I'm not using $bumpmap either, so I don't know if this is me screwing up somewhere and not realizing it, or an undocumented bug in TF2's branch of Source. Here's my VMT.

I know it's not working because parts where the envmask is black clearly have a reflection in-game:
The white areas are supposed to be copper and the black is supposed to be Valve's albedo coloring, sans reflection.
Sign up to access this!

Replies

  • DrSquish avatar
    DrSquish Joined 3y ago
    Offline
    998 points Ranked 5337th
    3mo
    If anyone was curious, it turns out $basemapalphaphongmask being set to 1 also forces $basealphaenvmapmask to 1 (unless $normalmapalphaenvmapmask is also set to 1, in which case the whole specular mask fails to load spectacularly and you're left with a fully reflective model).  Even if you manually set $basealphaenvmapmask to 0 and declare a separate environment mask, the separate mask is ignored as if it wasn't in the VMT to begin with and the alpha of the diffuse is used in its place.

    It doesn't look like this particular issue is addressed anywhere from what I could find, including the Valve Developer Wiki.
    The Great Cornholio avatar
    Mantra
    The Great Cornholio
    URL to post:
  • [N-Cognito] avatar
    [N-Cognito] username pic Joined 7y ago
    TF2 Manager
    Offline
    26,925 points Ranked 164th
    39 medals 5 legendary 7 rare
    • 1st Place - Halloween Concept Art Contest 2014 Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 30 submissions featured Medal icon
    • 2017 Top Contributor Medal icon
    • Received thanks 50 times Medal icon
    3mo 3mo
    I don't think there's any way to separate the Phong and the Enviroment shading using material commands in TF2. The only thing I think you can do is to edit the model to use a different material that doesn't have $envmap for the parts that you don't want to shine.
    Who even finishes mods, right?
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Author

DrSquish avatar
DrSquish Joined 3y ago
Offline
998 points Ranked 5337th

DrSquish
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 218 Views
  • 3 Posts
  • 3moSubmitted

More from Submitter

More Help Threads

bcp.crwdcntrl.net tracking pixel