Hdr compiling causes fullbright on map

Grubzer

L5: Dapper Member
Jan 3, 2016
203
39
Compiling with hammer and Compile Pal 23x with hdr on causes a map to be fullbright (forces mat_fullbright 1)
Compiling without hdr enabled - no problem.

hammer hdr vrad settings:
-hdr -final -game $gamedir $path\$file

Compile Pal hdr vrad setting:
-final -StaticPropLighting -StaticPropPolys -hdr -game $game$ $vmfFile$
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
If you have -hdr you will only compile in HDR (high dynamic range), not LDR(low dynamic range, the setting the game runs at with standard settings). Your game is most likely set to LDR only, so it can't find any lighting for LDR and then applies fullbright to your level. If you want to compile with standard LDR lighting as well, compile with both -ldr and -hdr. There's also a -both option, but that one is known to crash the compiler/not compile HDR at all. So just use -ldr and -hdr.
 

Grubzer

L5: Dapper Member
Jan 3, 2016
203
39
If you have -hdr you will only compile in HDR (high dynamic range), not LDR(low dynamic range, the setting the game runs at with standard settings). Your game is most likely set to LDR only, so it can't find any lighting for LDR and then applies fullbright to your level. If you want to compile with standard LDR lighting as well, compile with both -ldr and -hdr. There's also a -both option, but that one is known to crash the compiler/not compile HDR at all. So just use -ldr and -hdr.
How do i set my game to hdr?
 

Another Bad Pun

In the shadows, he saw four eyes lit by fire
aa
Jan 15, 2011
801
1,845
I'm pretty sure you can compile with only -ldr and cause no issues, but compiling with -hdr only will probably cause problems.
Using the -both variable works on the standard compiler just fine, I'm not sure why it wouldn't work in compile pal.

If your computer can run HDR, you can enable it in Video Options or through the developer console.
mat_hdr_level 0 is LDR
mat_hdr_level 2 is standard HDR
 

Another Bad Pun

In the shadows, he saw four eyes lit by fire
aa
Jan 15, 2011
801
1,845
There's something I've always wondered, though. What's mat_hdr_level 1? It doesn't seem to do anything whenever I try to use it.
¯\_(ツ)_/¯
it probably does nothing tbh
 

Grubzer

L5: Dapper Member
Jan 3, 2016
203
39
It changes this
300px-Team_Fortress_2_Advanced_Video~2.jpg
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
Probably because you didn't set the exposure limits. The defaults are pretty extreme, for some reason — maybe to alert you that you compiled in HDR without setting them manually. Anyway, I recommend looking up env_tonemap_controller and how to use it.
 
Last edited: