Hey, I've been stuck on this problem for a few days, and am wondering if anyone here knows the answer. I've been trying to use the alpha channel on a static grate prop to cast lightmap shadows, and regardless of what I do, I can't seem to get it to work.
I'm compiling with -StaticPropPolys, -TextureShadows, and -StaticPropLighting and I have the models included in my lights.rad, and the compile window is telling me that it loaded the grate texture just fine.
Here's an excerpt from the compile window:
Valve Radiosity Simulator
4 threads
[Reading texlights from 'lights.rad']
[60 texlights parsed from 'lights.rad']
Loading c:\....bsp
Loaded alpha texture materials\Goldeneye\grate02.vtf
Loaded alpha texture materials\Metal\metalgrate013a.vtf
Loaded alpha texture materials\Models\props_c17\fence_alpha.vtf
Loaded alpha texture materials\Metal\metalgrate013b.vtf
Setting up ray-trace acceleration structure... Done (0.04 seconds)
materials\Metal\metalgrate013a.vtf is the texture I'm using, so I know vrad is loading it to calculate the shadows.
Here's my .vmt:
"vertexlitgeneric"
{
"$alphatest" 1
"$basetexture" "Metal/metalgrate013a"
"$nolod" 1
"$nodecal" 1
"$surfaceprop" "metalgrate"
}
Here's my .qc, I think the problem exists somewhere in here, but I can't figure out what it is:
$staticprop
$modelname "props/library/grate02a_grate"
$scale "1.000000"
$body "Body" "grate02a_grate_ref"
$cdmaterials "models/props/library"
$sequence idle "grate02a_grate_ref"
$surfaceprop "metal"
$collisionmodel "grate02a_grate_phys" {
$automass
}
Here's a screenshot ingame, it works fine with fourtecks' grate props from Library Classic, but I can't seem to get it working with my own(The one on the left is mine):
http://img163.imageshack.us/img163/1280/propshadowtest0000.jpg