Portal 2: $envmapmask and MultiBlend. Something's Wrong.

While making custom content for the Portal 2 Authoring Tools, I’ve hit a few dead ends. First is the $envmapmask parameter for textures. I cannot get it to work at all. I’ve tried alternatives, different compression methods and versions and there still no results. Here’s one of the vmts that refuse to work:



"LightmappedGeneric"
{
	"$basetexture" "custom/mudfloor002"
	"$surfaceprop" "mud"
	"$bumpmap" "custom/mudfloor002_normal"
	"$envmap" "env_cubemap"
	"$envmapmask" "custom/mudfloor002_specular"
}


MultiBlend textures are causing me trouble as well. In hammer, I can see all four different textures, but ingame the fourth is black. Here’s the vmt for the MultiBlend texture:



MultiBlend
{
	"$basetexture" "custom/grassfloor002"
	"$scale" "1.0"
	"$rotation" "0.0"
	
	"$basetexture2" "custom/grassfloor003"
	"$scale2" "1.0"
	"$rotation2" "15.0"

	"$basetexture3" "custom/multi/mudfloor001_multi"
	"$scale3" "1.0"
	"$rotation3" "175.0"

	"$basetexture4" "custom/multi/mudfloor002_multi"
	"$scale4" "1.0"
	"$rotation4" "60.0"
}


Here’s the compile log of the map I tested everything on:



materialPath: C:\Program Files (x86)\Steam\steamapps\common\portal 2\portal2\materials
Loading C:\Users\<User>\Desktop\map\p2\multiblendbumpspectest.vmf
ConVarRef gpu_level doesn't point to an existing ConVar
nummapplanes:     (    34 / 65536 )
nummapbrushes:    (    10 /  8192 )
nummapbrushsides: (    84 / 65536 )
num_map_overlays: (     0 /   512 )
nummodels:		(     0 /  1024 )
fixing up env_cubemap materials on brush sides...
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Processing areas...done (0)
Building Faces...done (0)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
writing C:\Users\<User>\Desktop\map\p2\multiblendbumpspectest.prt...Building visibility clusters...
done (0)
Finding displacement neighbors...
Finding lightmap sample positions...
Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10
Building Physics collision data...
done (0) (3711 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Compacting texture/material tables...
Reduced 14 texinfos to 10
Reduced 7 texdatas to 7 (142 bytes to 142)
Writing C:\Users\<User>\Desktop\map\p2\multiblendbumpspectest.bsp
0 seconds elapsed



2 threads
reading c:\users\<User>\desktop\map\p2\multiblendbumpspectest.bsp
reading c:\users\<User>\desktop\map\p2\multiblendbumpspectest.prt
   4 portalclusters
   4 numportals
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 0 visible clusters (0.00%)
Total clusters visible: 16
Average clusters visible: 4
Building PAS...
Average clusters audible: 4
visdatasize:44  compressed from 64
writing c:\users\<User>\desktop\map\p2\multiblendbumpspectest.bsp
0 seconds elapsed



[Reading texlights from 'lights.rad']
[59 texlights parsed from 'lights.rad']

Loading c:\users\<User>\desktop\map\p2\multiblendbumpspectest.bsp
20 faces
2901 square feet [417792.00 square inches]
4 Displacements
455 Square Feet [65536.00 Square Inches]
20 patches before subdivision
140 patches after subdivision
2 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 530, max 61
transfer lists:   0.0 megs
0...1...2...3...4...5...6...7...8...9...10	Bounce #1 added RGB(0, 0, 0)
Build Patch/Sample Hash Table(s).....Done<0.0001 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 0 (0% of) surface lights went in leaf ambient cubes.
0...1...2...3...4...5...6...7...8...9...10Writing leaf ambient...done
Ready to Finish

Object names       Objects/Maxobjs  Memory / Maxmem  Fullness 
------------       ---------------  ---------------  -------- 
models                   1/1024           48/49152    ( 0.1%) 
brushes                 10/8192          120/98304    ( 0.1%) 
brushsides              60/65536         480/524288   ( 0.1%) 
planes                  46/65536         920/1310720  ( 0.1%) 
vertexes                33/65536         396/786432   ( 0.1%) 
nodes                   29/65536         928/2097152  ( 0.0%) 
texinfos                10/12288         720/884736   ( 0.1%) 
texdata                  7/2048          224/65536    ( 0.3%) 
dispinfos                4/0             704/0        ( 0.0%) 
disp_verts             100/0            2000/0        ( 0.0%) 
disp_tris              128/0             256/0        ( 0.0%) 
disp_multiblend         75/0            6000/0        ( 0.0%) 
disp_lmsamples        1600/0            1600/0        ( 0.0%) 
faces                   20/65536        1120/3670016  ( 0.0%) 
hdr faces                0/65536           0/3670016  ( 0.0%) 
origfaces               13/65536         728/3670016  ( 0.0%) 
facebrushes              0/0               0/0        ( 0.0%) 
facebrushlists          20/0              80/0        ( 0.0%) 
leaves                  31/65536         992/2097152  ( 0.0%) 
leaffaces               16/65536          32/131072   ( 0.0%) 
leafbrushes             20/65536          40/131072   ( 0.0%) 
areas                    2/256            16/2048     ( 0.8%) 
surfedges              136/512000        544/2048000  ( 0.0%) 
edges                   91/256000        364/1024000  ( 0.0%) 
LDR worldlights          2/8192          200/819200   ( 0.0%) 
HDR worldlights          0/8192            0/819200   ( 0.0%) 
leafwaterdata            0/32768           0/393216   ( 0.0%) 
waterstrips              0/32768           0/327680   ( 0.0%) 
waterverts               0/65536           0/786432   ( 0.0%) 
waterindices             0/65536           0/131072   ( 0.0%) 
cubemapsamples           0/1024            0/16384    ( 0.0%) 
overlays                 0/512             0/180224   ( 0.0%) 
LDR lightdata         [variable]        8864/0        ( 0.0%) 
HDR lightdata         [variable]           0/0        ( 0.0%) 
visdata               [variable]          44/16777216 ( 0.0%) 
entdata               [variable]         635/393216   ( 0.2%) 
LDR ambient table       31/65536         124/262144   ( 0.0%) 
HDR ambient table       31/65536         124/262144   ( 0.0%) 
LDR leaf ambient        62/65536        1736/1835008  ( 0.1%) 
HDR leaf ambient        31/65536         868/1835008  ( 0.0%) 
occluders                0/0               0/0        ( 0.0%) 
occluder polygons        0/0               0/0        ( 0.0%) 
occluder vert ind        0/0               0/0        ( 0.0%) 
detail props          [variable]           1/12       ( 8.3%) 
static props          [variable]           1/12       ( 8.3%) 
pakfile               [variable]       74486/0        ( 0.0%) 
physics               [variable]        3711/4194304  ( 0.1%) 
physics terrain       [variable]         214/1048576  ( 0.0%) 

Level flags = 0

Total triangle count: 44
Writing c:\users\<User>\desktop\map\p2\multiblendbumpspectest.bsp
1 second elapsed


I’m also wondering if it’s possible to have separate surfaceprops, bump maps, and, if they start working, cubemaps for each texture in a MultiBlend vmt. I’ve been trying to fix this myriad of problems for ages and I’m done. Does anyone else have any idea what’s going on?

I believe that multiblend doesn’t work properly unless you’re using DOTA 2, but this stuff isn’t my strong point so don’t quote me on it.

Here’s the wiki on it: https://developer.valvesoftware.com/wiki/Multiblend.

I dunno about the other thing.