[Tutorial] REMOVING UGLY SHADOWS

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Then you've done something wrong. Double and tripple check everything you did.
 

Undies

L1: Registered
Dec 24, 2009
45
9
I went through every tf2 model, and identified all (I believe) the models that use alpha textures that you'd want these rules for, so here's a complete custom lights-tf2.rad:

Code:
forcetextureshadow models/props_gameplay/security_fence_big01.mdl
forcetextureshadow models/props_gameplay/security_fence_big02.mdl
forcetextureshadow models/props_gameplay/security_fence512.mdl
forcetextureshadow models/props_gameplay/security_fence512_lower.mdl
forcetextureshadow models/props_gameplay/security_fence512_skybox.mdl
forcetextureshadow models/props_gameplay/security_fence256.mdl
forcetextureshadow models/props_gameplay/security_fence32.mdl
forcetextureshadow models/props_gameplay/security_fence64.mdl
forcetextureshadow models/props_gameplay/security_fence64_lower.mdl
forcetextureshadow models/props_gameplay/security_fence80.mdl
forcetextureshadow models/props_gameplay/security_fence_section01.mdl
forcetextureshadow models/props_gameplay/security_fence128.mdl
forcetextureshadow models/props_gameplay/security_fence128_lower.mdl
forcetextureshadow models/props_gameplay/security_fence256_gate01.mdl
forcetextureshadow models/props_gameplay/security_fence256_gate02.mdl
forcetextureshadow models/props_gameplay/security_fence256_lower.mdl
forcetextureshadow models/props_farm/haypile001.mdl
forcetextureshadow models/props_farm/tree001.mdl
forcetextureshadow models/props_farm/tree001_skybox.mdl
forcetextureshadow models/props_gameplay/door_grate001_bottom.mdl
forcetextureshadow models/props_gameplay/door_grate001_top.mdl
forcetextureshadow models/props_gameplay/door_grate002_bottom.mdl
forcetextureshadow models/props_gameplay/door_grate002_top.mdl
forcetextureshadow models/props_gameplay/door_grate003_bottom.mdl
forcetextureshadow models/props_gameplay/door_grate003_top.mdl
forcetextureshadow models/props_foliage/bramble001a.mdl 
forcetextureshadow models/props_foliage/bramble001a_skybox.mdl 
forcetextureshadow models/props_foliage/corn_plant01.mdl
forcetextureshadow models/props_foliage/shrub_01a.mdl
forcetextureshadow models/props_foliage/shrub_02a.mdl
forcetextureshadow models/props_foliage/shrub_03_card.mdl
forcetextureshadow models/props_foliage/shrub_03_card_skybox.mdl
forcetextureshadow models/props_foliage/shrub_03_cluster.mdl
forcetextureshadow models/props_foliage/shrub_03_cluster02.mdl
forcetextureshadow models/props_foliage/shrub_03_cluster_skybox.mdl
forcetextureshadow models/props_foliage/shrub_03a.mdl
forcetextureshadow models/props_foliage/shrub_03b.mdl
forcetextureshadow models/props_foliage/shrub_03c.mdl
forcetextureshadow models/props_foliage/shrub_04a.mdl
forcetextureshadow models/props_foliage/shrub_04b.mdl
forcetextureshadow models/props_foliage/tree01.mdl
forcetextureshadow models/props_foliage/tree02.mdl
forcetextureshadow models/props_foliage/tree_pine01.mdl
forcetextureshadow models/props_foliage/tree_pine01_4cluster.mdl
forcetextureshadow models/props_foliage/tree_pine01_8cluster.mdl
forcetextureshadow models/props_foliage/tree_pine01_8cluster.mdl
forcetextureshadow models/props_forest/shrub_03_cluster.mdl
forcetextureshadow models/props_forest/shrub_03b.mdl
forcetextureshadow models/props_forest/shrub_03c.mdl

If you come across any I've missed, let me know and I'll add them here.
Add these new ones for the recent update:
Code:
forcetextureshadow models/props_foliage/tree_pine_huge.mdl
forcetextureshadow models/props_foliage/tree_pine_small.mdl
forcetextureshadow models/props_foliage/tree_pine_extrasmall.mdl[B][/B]

Would appear that these are missing too:
Code:
forcetextureshadow models/props_foliage/grass_01.mdl
forcetextureshadow models/props_foliage/grass_02.mdl
forcetextureshadow models/props_foliage/grass_02_cluster01.mdl
forcetextureshadow models/props_foliage/grass_02_cluster02.mdl
forcetextureshadow models/props_foliage/grass_02_detailmodel.mdl
 

sniprpenguin

L6: Sharp Member
Mar 14, 2008
266
258
I just have a quick question pertaining to this.

I would like to do the nice prop-lighting compile with all the parameters stated in the tutorial EXCEPT for the lights_youme.rad. Would the following work?

Code:
-lights -both -staticproppolys -staticproplighting -textureshadows -final -game $gamedir $path\$file

Or is the lights parameter not necessary? I noticed that it needed to go before light_youme.rad but it's not included in the regular light compile.
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
-lights is not needed unless followed by the lights rad file.

I must ask though why you'd want to run -textureshadows without anything to tell the engine which props have texture shadows?
 

sniprpenguin

L6: Sharp Member
Mar 14, 2008
266
258
-lights is not needed unless followed by the lights rad file.

I must ask though why you'd want to run -textureshadows without anything to tell the engine which props have texture shadows?

I was originally going to try and get a nice lightmap without going through too much additional work, but since that textureshadows works off of the light_youme you created, I'll try it instead.

Basically, I wanted to do less work.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,697
2,581
Bumping to let you all know that I added this information to the Dev Wiki here. Let me know if I got something wrong, since I paraphrased as liberally as I could.
 

honeymustard

L9: Fashionable Member
Oct 26, 2009
698
574
One thing that should be mentioned somewhere is that the current lights.rad in the GCF is up to date these days. So you shouldn't need to create your own .rad file (unless you're using custom props).
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Went through every prop and added them to my lights.rad, so if you're using -textureshadows, make sure yours is up to date:
forcetextureshadow models/props_gameplay/security_fence_big01.mdl
forcetextureshadow models/props_gameplay/security_fence_big02.mdl
forcetextureshadow models/props_gameplay/security_fence512.mdl
forcetextureshadow models/props_gameplay/security_fence512_lower.mdl
forcetextureshadow models/props_gameplay/security_fence512_skybox.mdl
forcetextureshadow models/props_gameplay/security_fence256.mdl
forcetextureshadow models/props_gameplay/security_fence32.mdl
forcetextureshadow models/props_gameplay/security_fence64.mdl
forcetextureshadow models/props_gameplay/security_fence64_lower.mdl
forcetextureshadow models/props_gameplay/security_fence80.mdl
forcetextureshadow models/props_gameplay/security_fence_section01.mdl
forcetextureshadow models/props_gameplay/security_fence128.mdl
forcetextureshadow models/props_gameplay/security_fence128_lower.mdl
forcetextureshadow models/props_gameplay/security_fence256_gate01.mdl
forcetextureshadow models/props_gameplay/security_fence256_gate02.mdl
forcetextureshadow models/props_gameplay/security_fence256_lower.mdl
forcetextureshadow models/props_farm/haypile001.mdl
forcetextureshadow models/props_farm/tree001.mdl
forcetextureshadow models/props_farm/tree001_skybox.mdl
forcetextureshadow models/props_gameplay/door_grate001_bottom.mdl
forcetextureshadow models/props_gameplay/door_grate001_top.mdl
forcetextureshadow models/props_gameplay/door_grate002_bottom.mdl
forcetextureshadow models/props_gameplay/door_grate002_top.mdl
forcetextureshadow models/props_gameplay/door_grate003_bottom.mdl
forcetextureshadow models/props_gameplay/door_grate003_top.mdl
forcetextureshadow models/props_foliage/grass_01.mdl
forcetextureshadow models/props_foliage/grass_02.mdl
forcetextureshadow models/props_foliage/grass_02_cluster01.mdl
forcetextureshadow models/props_foliage/grass_02_cluster02.mdl
forcetextureshadow models/props_foliage/grass_02_detailmodel.mdl
forcetextureshadow models/props_foliage/bramble001a.mdl
forcetextureshadow models/props_foliage/bramble001a_skybox.mdl
forcetextureshadow models/props_foliage/corn_plant01.mdl
forcetextureshadow models/props_foliage/shrub_01a.mdl
forcetextureshadow models/props_foliage/shrub_02a.mdl
forcetextureshadow models/props_foliage/shrub_03_card.mdl
forcetextureshadow models/props_foliage/shrub_03_card_skybox.mdl
forcetextureshadow models/props_foliage/shrub_03_cluster.mdl
forcetextureshadow models/props_foliage/shrub_03_cluster02.mdl
forcetextureshadow models/props_foliage/shrub_03_cluster_skybox.mdl
forcetextureshadow models/props_foliage/shrub_03a.mdl
forcetextureshadow models/props_foliage/shrub_03b.mdl
forcetextureshadow models/props_foliage/shrub_03c.mdl
forcetextureshadow models/props_foliage/shrub_04a.mdl
forcetextureshadow models/props_foliage/shrub_04b.mdl
forcetextureshadow models/props_foliage/tree01.mdl
forcetextureshadow models/props_foliage/tree02.mdl
forcetextureshadow models/props_foliage/tree_pine01.mdl
forcetextureshadow models/props_foliage/tree_pine01_4cluster.mdl
forcetextureshadow models/props_foliage/tree_pine01_8cluster.mdl
forcetextureshadow models/props_foliage/tree_pine01_8cluster.mdl
forcetextureshadow models/props_forest/shrub_03_cluster.mdl
forcetextureshadow models/props_forest/shrub_03b.mdl
forcetextureshadow models/props_forest/shrub_03c.mdl
forcetextureshadow models/props_foliage/tree_sb_pencil_01.mdl
forcetextureshadow models/props_foliage/tree_sb_pencil_02.mdl
forcetextureshadow models/props_foliage/tree_sb_pencil_03.mdl
forcetextureshadow models/props_halloween/oak_01a.mdl
forcetextureshadow models/props_halloween/oak_02a.mdl
forcetextureshadow models/props_halloween/oak_03a.mdl
forcetextureshadow models/props_coalmines/wood_fence_short_256.mdl
forcetextureshadow models/props_coalmines/wood_fence_short_128.mdl
forcetextureshadow models/props_coalmines/foliage_clump1.mdl
forcetextureshadow models/props_coalmines/foliage_clump2.mdl
forcetextureshadow models/props_coalmines/foliage_clump3.mdl
forcetextureshadow models/props_coalmines/foliage_single1.mdl
forcetextureshadow models/props_coalmines/wood_fence_128.mdl
forcetextureshadow models/props_coalmines/wood_fence_256.mdl
forcetextureshadow models/props_coalmines/wood_fence_64.mdl
forcetextureshadow models/props_coalmines/wood_fence_short_128.mdl
forcetextureshadow models/props_coalmines/wood_fence_short_256.mdl
forcetextureshadow models/props_coalmines/wood_fence_short_64.mdl

forcetextureshadow models/props_doomsday/dd_woodfence_128.mdl
forcetextureshadow models/props_doomsday/dd_woodfence_256.mdl
forcetextureshadow models/props_doomsday/dd_woodfence_64.mdl
forcetextureshadow models/props_doomsday/dd_woodfence_short_128.mdl
forcetextureshadow models/props_doomsday/dd_woodfence_short_256.mdl
forcetextureshadow models/props_doomsday/dd_woodfence_short_64.mdl

forcetextureshadow models/props_foliage/tree_pine_extrasmall.mdl
forcetextureshadow models/props_foliage/tree_pine_extrasmall_snow.mdl
forcetextureshadow models/props_foliage/tree_pine_huge.mdl
forcetextureshadow models/props_foliage/tree_pine_huge_snow.mdl
forcetextureshadow models/props_foliage/tree_pine_small.mdl
forcetextureshadow models/props_foliage/tree_pine_small_snow.mdl

forcetextureshadow models/props_manor/halloween_skycard_01.mdl
forcetextureshadow models/props_manor/halloween_skycard_02.mdl

forcetextureshadow models/props_manor/oak_01a.mdl
forcetextureshadow models/props_manor/oak_01b.mdl
forcetextureshadow models/props_manor/oak_01c.mdl
forcetextureshadow models/props_manor/oak_02a.mdl
forcetextureshadow models/props_manor/oak_02b.mdl
forcetextureshadow models/props_manor/oak_02c.mdl

forcetextureshadow models/props_medieval/wallstone001_128.mdl
forcetextureshadow models/props_medieval/wallstone001_256.mdl
forcetextureshadow models/props_medieval/wallwood001_128.mdl
forcetextureshadow models/props_medieval/wallwood001_256.mdl
forcetextureshadow models/props_medieval/wallwood002_128.mdl
forcetextureshadow models/props_medieval/wallwood002_256.mdl


forcetextureshadow models/props_swamp/cattails_ref01.mdl
forcetextureshadow models/props_swamp/cattails_ref02.mdl
forcetextureshadow models/props_swamp/cattails_ref03.mdl

forcetextureshadow models/props_swamp/fern_01.mdl
forcetextureshadow models/props_swamp/fern_02.mdl
forcetextureshadow models/props_swamp/fern_03.mdl
forcetextureshadow models/props_swamp/fern_04.mdl
forcetextureshadow models/props_swamp/fern_05.mdl
forcetextureshadow models/props_swamp/fern_06.mdl
forcetextureshadow models/props_swamp/reeds.mdl

forcetextureshadow models/props_swamp/shrub_03_cluster.mdl
forcetextureshadow models/props_swamp/shrub_03b.mdl
forcetextureshadow models/props_swamp/shrub_03c.mdl

forcetextureshadow models/props_swamp/tallgrass_01.mdl
forcetextureshadow models/props_swamp/tallgrass_02.mdl
forcetextureshadow models/props_swamp/tallgrass_03.mdl
forcetextureshadow models/props_swamp/tallgrass_04.mdl
forcetextureshadow models/props_swamp/tallgrass_05.mdl
forcetextureshadow models/props_swamp/tallgrass_06.mdl
forcetextureshadow models/props_swamp/tallgrass_07.mdl
forcetextureshadow models/props_swamp/tallgrass_08.mdl
 
Last edited:

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Working some issues with this.
textureshadows.JPG


here we can see a models/props_gameplay/security_fence256.mdl with working shadows as defined in valve's lights.rad

models/props_foliage/tree_pine_small.mdl and models/props_swamp/cattails_ref01.mdl have working shadows as defined by my rad

the models/props_coalmines/wood_fence_short_256.mdl group of props though don't seem to work despite being present in my lights_ym.rad

Any of the TF2maps eggheads have any idea what's up with this? Boojum?