Shadows with $translucent texture

Discussion in 'Mapping Questions & Discussion' started by Uriak, Mar 22, 2009.

  1. Uriak

    Uriak L8: Fancy Shmancy Member

    Messages:
    543
    Positive Ratings:
    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 ?
     
  2. Spike

    Spike L10: Glamorous Member

    Messages:
    716
    Positive Ratings:
    82
  3. Altaco

    Altaco L7: Fancy Member

    Messages:
    485
    Positive Ratings:
    121
    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.
     
  4. Uriak

    Uriak L8: Fancy Shmancy Member

    Messages:
    543
    Positive Ratings:
    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...
     
  5. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    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
     
  6. Uriak

    Uriak L8: Fancy Shmancy Member

    Messages:
    543
    Positive Ratings:
    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)
     
  7. Uriak

    Uriak L8: Fancy Shmancy Member

    Messages:
    543
    Positive Ratings:
    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 !

    [​IMG]

    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: Mar 23, 2009