Weird Purple Lighting

  • If you're asking a question make sure to set the thread type to be a question!

LordNor

L3: Member
Jun 24, 2009
134
15
Before you dismiss this as "problem with cubemaps", let me tell you it isnt. So far i was able to diagnose the problem as the skybox, I had a generic level, nothing fancy. Added a skybox with the skybox texture, then went into map properties and made it "sky_alpinestorm_01", after this i loaded the map and the flooring which is reflective and the metal walls became purple-tinted. Jarate jars and the demomans bottle do not have the cubemap effect so it aint cubemaps...help?

I changed it to sky_hydro_01 and it goes away...? weird
 

pitto

L3: Member
Feb 17, 2009
109
73
try making cube maps that are for the individual floor/glass etc

oh, not sure if this is obvious ... you did build the cube maps right?

mat_specular 0
buildcubemaps
mat_specular 1
changelevel mapname
mat_reloadallmaterials
Cubemaps Info

EDIT: I think the purple checkers is also possible if you have a leak
 

Malcolm

L3: Member
Jul 10, 2008
123
25
Some skyboxes in tf2 have a generic cubemap loaded as long as you have an env_cubemap in your map. This generic cubemap is mostly a picture of the used sky. sky_alpinestorm_01 doesn't have such a picture, so the missing texture is shown pink-black.
If you build your cubemaps without disabling mat_specular in that situation, the pink checkers will also be written into the cubemap and so they don't seem to get away.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
My guess is you were previously using a HL2 sky, which are equally sized images so the compiler can build a default cubemap. Once you switched to a TF2 sky it could no longer do that because valve makes the images different sizes. So yes, it is a cubemap issue, you have to add your own cubemap entities and build them as people have said.
(and bottle/jarate DO use cubemaps)
 

LordNor

L3: Member
Jun 24, 2009
134
15
lol okay i feel like an idiot....ill do what u guys said, if i cant fix it ill upload the map


Update: It aint workin, the env_cubemap was always there...its inside the room. (Not sure how to upload my map? the attachment only allows for urls)

Error Report in Console!
Current mod isn't in a subdirectory of "game"!
bounce: 1/1 sample: 1/2
bounce: 1/1 sample: 2/2
*** Error: Skybox vtf files for sky_trainyard_01 weren't compiled with the same size texture and/or same flags!
Can't load skybox file sky_trainyard_01 to build the default cubemap!
 
Last edited:

(-TN-) Ben2

L4: Comfortable Member
Apr 10, 2009
172
15
had same problem quicky fix here

load the map

in console type
mat_specular 0
buildcubemaps

disconnect from your map, then reload the map
in the reloaded map type mat_specular 1
 

LordNor

L3: Member
Jun 24, 2009
134
15
wow that worked, but only for that instance, i tried reloading it and the purple reflective floor is still there
 
Last edited:

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Sometimes if you minimise whilst ingame certain cached data is lost, such as cubemap data. This was true for all HL2 based mods.

Although since i updated my drivers a short while ago i havn't been effected since. I no longer lose my cubemap information when minimising my HL2 games.
 

LordNor

L3: Member
Jun 24, 2009
134
15
thisi s really frustrating, i know the problem is created by the skybox but i cant solve it!, i have a env_cubemap and it should work but all reflective surfaces are purple, not checkered purple and black! just purple
 

LordNor

L3: Member
Jun 24, 2009
134
15
ur absolutely right, thank you so much it worked yay!