Editing and Customization > Modding Help
Static Prop Alpha Textures
Jonathon [SSL]:
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:
--- Code: ---
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)
--- End code ---
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:
--- Code: ---
"vertexlitgeneric"
{
"$alphatest" 1
"$basetexture" "Metal/metalgrate013a"
"$nolod" 1
"$nodecal" 1
"$surfaceprop" "metalgrate"
}
--- End code ---
Here's my .qc, I think the problem exists somewhere in here, but I can't figure out what it is:
--- Code: ---
$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
}
--- End code ---
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
Kinky:
Doesnt appear to be anything wrong as far as i can see :S
Tried decompiling teck's prop and checking his QC?
Jonathon [SSL]:
MDLDecompiler doesn't quite decompile props correctly, and the props have to be in the Episode 1 format in order to be decompiled (as in, they can't be decompiled, and if they could, it probably wouldn't give me whatever I'm missing).
Mangley:
$translucent 1
... I think that's what you need. Instead of $alphatest 1
Jonathon [SSL]:
Tried that, doesn't work.
Navigation
[0] Message Index
[#] Next page
Go to full version