1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Creative Chat

Source engine envmapmask doesn't work if $basealphaenvmapmask is used. Any solutions?

  • Geno
  • April 8, 2019 at 7:57 PM
  • Geno
    • April 8, 2019 at 7:57 PM
    • #1

    Objective: To create a texture for my model, such that different parts have different amount of reflectivity. (Uses $envmapmask) Also, I am aiming at using 1 single VTF file as the material doesn't have any bump map.Methods that can be used

    1. use a grayscale texture and $envmapmask command in vmt. This will need 2 vtf files, 1 will be base/diffuse and second will be grayscale specular map. 2. If the material has a bump map, we can use its alpha channel as specular mask. This will again require 2 vtf files. 1 will be diffuse/base texture and the other will be normal map. Uses $normalmapalphaenvmapmask. 3. We can use base texture's alpha channel as specular mask, and this will need only 1 VTF file. This uses $basealphaenvmapmask. (This also works inversely, black is reflective, white is matte.)Problem

    For some reason, 3rd method isn't working. It gives me 100% reflectivity all all surfaces. (Check attachments) Also, I wanna ask if there's any guide for all the flags and compression formats used by VTF.

    test.zip

  • esspho
    • April 9, 2019 at 12:07 AM
    • #2

    try using $basealphaenvmapmask

  • Geno
    • April 9, 2019 at 2:27 AM
    • #3
    Quote from esspho

    6 hours ago, esspho said: try using $basealphaenvmapmask

    I am using that itself in the test files. I wrote it "$basealphaenvmask" in this thread in a haste. In the files however, the correct thing is used.

  • +Rusty+
    • April 9, 2019 at 4:22 PM
    • #4

    Within your test vmt your using $basemapalphaenvmapmask instead of $basealphaenvmapmask. here's also a lil list of some vm param stuff:https://forum.tsgk.com/viewtopic.php?t=4965

    Spoiler Valves vtfedit texture formats.pdf

  • Geno
    • April 9, 2019 at 5:17 PM
    • #5
    Quote from +Rusty+

    55 minutes ago, +Rusty+ said: Within your test vmt your using $basemapalphaenvmapmask instead of $basealphaenvmapmask. here's also a lil list of some vm param stuff:https://forum.tsgk.com/viewtopic.php?t=4965

    http://# Hide contents Valves vtfedit texture formats.pdf

    I must be blind to leave that unnoticed. Thank you so much :). Correcting that resolved the issue.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  2. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  3. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  4. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  5. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  6. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  7. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  8. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  9. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  10. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™