Has anyone got custom cubemaps to work? I'm making an oily texture and want the cubemap to be a dark rainbow rather than an env_cubemap. I created six tga's and imported them into vtfedit at the same time. Set Texture Type to "Environment Map" and vtf version to 7.2 (also tried with 7.4). Left generate spheremap unchecked and generate mipmaps checked (also tried with unchecked). Everything seems ok in vtfedit, the Environment map flag is checked and it says the texture has 1 frame and six faces. I've tried using the "Clamp S" & "Clamp T", "No Mipmaps" and "Hint DXT5" flags and also not using them. VMT says:
- Code: Select all
"$envmap" "Environment Maps/oily_envmap"
In game it's error tex'd and the console says:
- Code: Select all
Error reading material data "materials/environment maps/oily_envmap.vtf"
I tested it with "Environment Maps/borealis_003" as the "$envmap" and that worked so I guess there's something wrong with how I'm creating the vtf.