Geno Posted April 8, 2019 Report Posted April 8, 2019 (edited) 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 April 9, 2019 by GenoCide Andre Valera 1 Quote
Geno Posted April 9, 2019 Author Report Posted April 9, 2019 (edited) 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 April 9, 2019 by GenoCide Quote
+Rusty+ Posted April 9, 2019 Report Posted April 9, 2019 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 1 Quote
Geno Posted April 9, 2019 Author Report Posted April 9, 2019 (edited) 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 Hide contents Valves vtfedit texture formats.pdf I must be blind to leave that unnoticed. Thank you so much . Correcting that resolved the issue. Edited April 9, 2019 by GenoCide +Rusty+ and That50'sGuy 2 Quote
Recommended Posts
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.