Shadows with $translucent texture

Uriak

L8: Fancy Shmancy Member
Apr 27, 2008
543
70
I want my brush with a translucent texture applied to cast a shadow based on the texture alpha. There is a topic about .rad file use to enable this on static props, but I can't find any clue on how to do it with brushes.

SO far I've tested combination of flags on func_brush, light_block/nodraw applied on other faces, but vrad keeps ignoring those faces. Faking shadows with another technique would result in an ugly result.

At the least, does any technique to partially block light exists ?
 

Altaco

L420: High Member
Jul 3, 2008
484
120
That's for models. I'm not sure how one would do it for a brush. I think it's either totally block or not block at all.
 

Uriak

L8: Fancy Shmancy Member
Apr 27, 2008
543
70
There would be the last possible solution, to create a quad by manually editing a .sml file and then compile it into a trivial static prop. But I find it so stupid, I'd like to know if there isn't any other way around.
After all, you can make a brush texture glow with a .rad file, and the engine can handle static prop alpha shadows...
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
That's for models. I'm not sure how one would do it for a brush. I think it's either totally block or not block at all.

I definitely know its possible with brushes, I don't know if you just need to add the texture to the lights.rad or if theres something more to it. but its definately possible
 

Uriak

L8: Fancy Shmancy Member
Apr 27, 2008
543
70
I've naively tried the -forcetextureshadows and adding textureshadows xxx.vmt (or without .vmt) but it did no good. (I checked that my .rad file was functionnal with the glowing texture trick)
 

Uriak

L8: Fancy Shmancy Member
Apr 27, 2008
543
70
Okay, so I tried, creating manually a quad by editing a .smd file, and then going on with Youme's instruction on static_props lighting...

it worked !



Now, I still wonder if it does exist a method for brush lighting... I tried forcextureshadow materials/myfolder/myvmt.vmt, and it did nothing..
 
Last edited: