Jump to content
GenoCide

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

Recommended Posts

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

Edited by GenoCide

Share this post


Link to post
Share on other sites
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.

Edited by GenoCide

Share this post


Link to post
Share on other sites
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
 

 

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

Edited by GenoCide

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...