Cubemap errors

SirUnknown

L1: Registered
Jan 10, 2016
45
24
Hey guys all of my reflections are the purple/black error texture, but I've put down the env_cubemaps and used buildcubemaps. The valve dev wiki says for tf2 you have to do these commands:

mat_specular 0
buildcubemaps
mat_specular 1
disconnect
sv_cheats 1
mat_reloadallmaterials
sv_cheats 0

And I did those, and the reflections are still wrong.

I've also been getting this error when I use the buildcubemaps command:

*** Error: Skybox vtf files for sky_nightfall_01 weren't compiled with the same size texture and/or same flags!
Can't load skybox file sky_nightfall_01 to build the default cubemap!

How do I fix this?
 

seth

aa
May 31, 2013
1,019
851
That just builds cubemaps for LDR or HDR, whichever you're currently using in-game. Here is what I do:

Code:
mat_hdr_level 2
mat_specular 0
map mapname
buildcubemaps
disconnect
mat_hdr_level 0
map mapname
buildcubemaps
disconnect
mat_hdr_level 2
mat_specular 1
map background01
map mapname

// if console spews errors about cubemap size
mat_envmapsize 128
mat_envmaptgasize 32
 

Frosty Scales

L2: Junior Member
Mar 22, 2015
93
30
Here's what I do:
Code:
mat_hdr_level 2
mat_specular 0
buildcubemaps
mat_hdr_level 0
disconnect
map <mapname>
buildcubemaps
mat_hdr_level 2
disconnect
mat_specular 1
map ctf_2fort (or any other map that isn't the one you're building cubemaps for)
map <your map>
From what I've seen the Valve wiki is pretty bad with this kinda stuff, so yeah. Also do know that this is for maps with both HDR and LDR, if yours is only LDR, then don't bother building twice on each setting.

Edit: Got ninja'd :(
 

henke37

aa
Sep 23, 2011
2,075
515
All the error says is that the engine couldn't default to the skybox for the cubamaps. Which isn't important, since you don't want to use the skybox as the cubemaps, you want to actually render them for real.
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,258
999
Check to see if you have two copies of your BSP file in your game's content directories. Those would be tf/maps, tf/custom/whatever/maps and tf/download/maps.

Upload a BSP for us after you build cubemaps so we can have a look at it.