A question about texture maps

Discussion in 'Mapping Questions & Discussion' started by 3DRyan, Sep 9, 2008.

  1. 3DRyan

    3DRyan L2: Junior Member

    Messages:
    57
    Positive Ratings:
    6
    Okay, I probably won't ever use every sort of map for a single texture, but I just want to know what is possible to do within one vmt file. Would it be possible to have the following all in one texture:

    -color/diffuse
    -normal
    -spec
    -transparency
    -self illumination, or glow

    As it stands, I can get everything to work in one file except for specularity. I haven't tried glow yet, but specularity is my main problem right now. It won't show up. Here's the vmt:

    "LightmappedGeneric"
    {
    "$basetexture" "custom/platform_color"
    "model" 1
    "$surfaceprop" "wood"
    "$envmap" "env_cubemap"
    "$bumpmap" "custom/platform_normal"
    "$normalmapalphaenvmapmask" 1
    "$translucent" 1
    }


    As you can tell, I am using the base color map's alpha to make the transparency and the normal map's alpha is supposed to determine the specularity. When i'm viewing my scene in hammer, I can see that the material is being displayed as specular, but not in game. I also have a valve-made floor tile texture that is displayed as specular in hammer as well, but doesn't show in game either. This makes me think that it's either my lighting setup or that it's some setting that i'm unaware of. I'm using a plain old default "light" entity to light the room, and I have a cube map in it to handle the reflection. I've tried the mat_specular 1 command and it doesn't work. I've also tried rebuilding cubemaps and trying HDR lighting. Nothing seems to get it to show. Does anybody know how to solve this?
     
  2. VelvetFistIronGlove

    aa VelvetFistIronGlove

    Messages:
    567
    Positive Ratings:
    437
    Your best bet to figure out what works and doesn't is to play around with the material editor. Copy your tf2 shortcut, and go to its properties, and add "-tools" to the command line. Then you can play around with material parameters in real time.
     
    • Thanks Thanks x 2
  3. 3DRyan

    3DRyan L2: Junior Member

    Messages:
    57
    Positive Ratings:
    6
    I'm sorry, but could you explain in a bit more detail? I'm not familiar with such a process or maybe it's just the wording, i dunno, but I'm confused either way.

    Thanks!
     
  4. Altaco

    Altaco L7: Fancy Member

    Messages:
    485
    Positive Ratings:
    121
    You can also just right click tf2 in the games list, select properties, go to set launch options, and add -tools.
     
    • Thanks Thanks x 1
  5. 3DRyan

    3DRyan L2: Junior Member

    Messages:
    57
    Positive Ratings:
    6
    Hey, thanks for the help, but I'm still a bit confused. What exactly does -tools do? I tried it, and nothing happens when I boot up TF2 from within hammer. Is there an additional command that I have to enter into the console? Sorry about my confusion as I'm still pretty new to all of this, I appreciate everyone's patience.
     
  6. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    -tools is not entered in the console, it's a launch option.

    1. Right-click on the game title under the My games tab in Steam and select Properties.
    2. Under the General tab click the Set launch options... button.
    3. Enter the launch options you wish to apply (be sure to separate each code with a space) and click OK.
    4. Close the game's Properties window and launch the game.
     
    • Thanks Thanks x 1
  7. 3DRyan

    3DRyan L2: Junior Member

    Messages:
    57
    Positive Ratings:
    6
    Okay, I know what I was doing wrong. I was trying to launch TF2 from hammer which is why it wasn't working. You have to actually launch it from your desktop or games list, so I got it working. Quite a nice little tool for vmt editing I must say. In the bottom right view where it shows the sphere with your texture applied to it, it shows the specular map working. However, the game operates in full bright even though I have lights in it. Anyone know why this is? And now that I know that the VMT is okay for the specular, what might be causing it to not show up in game?
     
  8. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    maybe you have to rebuildcubemaps/reloadmaterials everytime you change it?

    I really don't know.
     
    • Thanks Thanks x 1
  9. 3DRyan

    3DRyan L2: Junior Member

    Messages:
    57
    Positive Ratings:
    6
    Anyone have an idea?
     
  10. 3DRyan

    3DRyan L2: Junior Member

    Messages:
    57
    Positive Ratings:
    6