Is Lights.rad file still valid for doing texture lights?

Discussion in 'Mapping Questions & Discussion' started by necro, Apr 2, 2008.

  1. necro

    necro L3: Member

    Messages:
    106
    Positive Ratings:
    13
    Or is there some other method for making a texture self-emitting? If lights.rad is still the ticket, where should it be saved?
     
  2. Half-Life_Maniac

    Half-Life_Maniac L3: Member

    Messages:
    122
    Positive Ratings:
    88
    I had a look, and couldn't find it. As I'm sure you know, lights.rad always had to be in the same directory as the compile tools- where I didn't see it.

    I'm guessing this is all done with the new material system now. I assume you'd add some secret code in the texture's VMT file to tell it to give off light.

    But then again, I do not know a lot at all about Source Materials.
     
  3. phatal

    phatal L6: Sharp Member

    Messages:
    259
    Positive Ratings:
    21
    You should find what you're looking for in the vmt of a light emitting texture.
     
  4. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    Last edited: Apr 3, 2008
  5. necro

    necro L3: Member

    Messages:
    106
    Positive Ratings:
    13
    Ah! I havent done any custom texture work yet. Makes sense that it'd be in the vmt. I'll give it a try.
     
  6. necro

    necro L3: Member

    Messages:
    106
    Positive Ratings:
    13
    OK, I extracted the standard HL2 vmt I'm using, and it says the following

    "LightmappedGeneric"
    {
    "$basetexture" "Building_Template/Building_Trainstation_Window002d"
    "$surfaceprop" "glass"
    "$selfillum" 1
    }


    There's no problem with the texture glowing in the map. Its just not emitting any light on adjacent brushes. What do I need to add?
     
  7. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    You want to put a window up, and make it look like there's sunlight coming through without actually cutting a hole in the wall... right?

    I dont know how to do that lol, seems like it could be done. Maybe just put a light_spot in front of it pointing in the right direction... then change the colors of the light to match the outside light_env?
     
  8. necro

    necro L3: Member

    Messages:
    106
    Positive Ratings:
    13
    Basically. Used to be you could add a texture to lights.rad and it would become a light source. So lets say you had a texture for flourescent lights, whatever you put that texture on would act like a real light source, casting light on adjacent brushes.

    In my case, i've got a big trainstation that I want all the glass to emit light into the space. I can go thru and add light entities everywhere, but thats a pain. I'd rather just make the texture emit light naturally.
     
  9. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
  10. necro

    necro L3: Member

    Messages:
    106
    Positive Ratings:
    13
    Just an update. Lights.rad does still work. For some reason it didn't like the HL2 material name I was using (too long maybe?). I've since added my own materials to the list, and they light the map just fine.