Fixing lighting on a static prop: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (cleanup, stub)
(Cleanup)
Line 1: Line 1:
{{cleanup|Format}}
{{stub}}
{{stub}}
You have probably seen on some static props some bad lighting on them.
[[File:Staticprop_compile.PNG|thumb|right|alt=prop_static settings|The proper compile syntax]]Lightmapped [[prop_static]] entities do not always get lit correctly. If this is the case, you will need to do the following:
In order to correct lighting on them, on your compile settings, go to expert, click '''New''', copy '''Default''' compile log, give the following name '''Final Compile (slow)''', click on it on the drop down list, then go on '''$light_exe'''
 
and add the following before the '''-game''':
# Turn on [[Hammer_Run_Map_Expert|expert compiling]].
-final -both -StaticPropPolys -TextureShadows -staticproplighting
# In the "Compile/run commands:" box, click on the '''$light_exe''' option.
After adding this, you should have something like this:
# Add the following to the command parameters before "-game":
'''-final -both -StaticPropPolys -TextureShadows -staticproplighting -game $gamedir $path\$file'''.
#* '''-final'''
This will fix your lighting on static props.
#* '''-both'''
#* '''-StaticPropPolys'''
#* '''-TextureShadows'''
#* '''-staticproplighting'''
 
Static props will now give off the correct shadows.

Revision as of 19:44, 20 November 2013

Stub

This article or section is a stub. You can help by expanding it.

prop_static settings
The proper compile syntax

Lightmapped prop_static entities do not always get lit correctly. If this is the case, you will need to do the following:

  1. Turn on expert compiling.
  2. In the "Compile/run commands:" box, click on the $light_exe option.
  3. Add the following to the command parameters before "-game":
    • -final
    • -both
    • -StaticPropPolys
    • -TextureShadows
    • -staticproplighting

Static props will now give off the correct shadows.