1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

Modeling a dynamic door (HL2)

  • Em'
  • February 6, 2010 at 5:16 PM
  • Em'
    • February 6, 2010 at 5:16 PM
    • #1

    Hello everyone, I'm front of a question without google answer.

    I want to make my own prop_dynamic_door for HL2 in 3dsmax.

    I have already a mesh of the door, but I don't know how I should do to make an awesome door.

    It is something in the QC ? Or Just in hammer editor ?

    Can anyone help me ? I would be very grateful for it ^^

    Then, other questions :

    - How make a double texture for one mesh ? Like, I want to make the glass of the door in a refract material, and the door in a normal material... I've heard about the ID in 3dsmax, but I don't find the way it works.

    Thanks alot for the help ! :wink:

  • m8nkey
    • February 7, 2010 at 12:50 PM
    • #2

    Hi Em,

    I'm not sure how to create an animated door. Personally I don't like them in multiplayer maps and choose to avoid them, opting for static open doors.

    Here's an example of a single model with multiple material properties (a billiard light). Within max the model is broken down into 3 meshes, one for each material property. Assign unique materials to the different meshes in max and when it's compiled ensure you have VMTs by the same name. You can refer to the same VTF and simply change the properties in the VMT (so you're only using one VTF). Not sure if this is best practice but it's how I do it.

    In this example texture 1 uses "nocull" to create tassles and chains. Texture 2 uses "selfillum" for the fluorescent lights and Texture 3 uses "transluscent" to create transparent glass.

    billiard_light01.vmt

    Code
    "VertexlitGeneric"
    
    
    {
    
    
    	"$basetexture" "models/metroplex/billiard_light"
    
    
    	"$nocull" "1"
    
    
    	"$alphatest" 1
    
    
    	"$surfaceprop" "glass"
    
    
    	"$envmap" "env_cubemap"
    
    
    	"$envmaptint" "[ .2 .2 .2 ]"
    
    
    }
    Display More

    billiard_light02.vmt

    Code
    "VertexlitGeneric"
    
    
    {
    
    
    	"$basetexture" "models/metroplex/billiard_light"
    
    
    	"$model" "1"
    
    
    	"$surfaceprop" "metal"
    
    
    	"$envmap" "env_cubemap"
    
    
    	"$envmaptint" "[.3 .3 .3]"
    
    
    	"$selfillum" "1"
    
    
    }
    Display More

    billiard_light03.vmt

    Code
    "VertexlitGeneric"
    
    
    {
    
    
    	"$basetexture" "models/metroplex/billiard_light"
    
    
    	"$translucent" 1
    
    
    	"$envmap" "env_cubemap"
    
    
    	"$envmaptint" "[ .2 .2 .2 ]"
    
    
    }
    Display More

    [attachment=0]cs_metroplex_feb06100002.jpg[/attachment]

    [attachment=1]cs_metroplex_feb06100001.jpg[/attachment]

    [attachment=2]cs_metroplex_feb06100000.jpg[/attachment]

  • Surfa
    • February 7, 2010 at 3:10 PM
    • #3

    For the door you need to create animations for it opening and closing. Now I am not sure what the acts are called but I will check later. Also for more than one material you need to set the polygon to a different material id. This is located above the smoothing groups section in editable poly.

  • ShockaPop
    • February 8, 2010 at 1:31 PM
    • #4

    Ask WesleyTack, he re-did HL2 doors for Off-Limits mod.

  • Em'
    • February 8, 2010 at 2:49 PM
    • #5

    Thanks a lot mates !

    But I think the prop_dynamic_door is not so usefull in a Multiplayer level, so, I put this model on "stand-by" !

    But, there is a good thing whit this thread !

    I manage to make a model with two different texture, one diffuse for the metal and one refract the glass.

    I just have to check in game if it work, but I'm happy !

    In 3dsmax, I just split my model on 2 part and assign one different material for each part.

    Edit : ahem... there are some errors in game.

    I have my diffuse texture, but the pink&black texture is on it.

    And the glass is a refract of the pink&black texture...

    So my problem isn't solve.

    Here my VMT :

    porthole_001_metal = diffuse

    Code
    "VertexlitGeneric"
    
    
    {
    
    
       "$basetexture" "models/props_oceanic/porthole_001_metal"
    
    
       "$surfaceprop" "metal"
    
    
       "$envmap" "env_cubemap"
    
    
       "$envmaptint" "[ .2 .2 .2 ]"
    
    
    }
    Display More

    porthole_001_glass = refract

    Code
    "refract"
    
    
    {
    
    
    "$model" "1"
    
    
    "$bluramount" "1"
    
    
       "$nocull" "1"
    
    
       "$alphatest" 1
    
    
    "$surfaceprop" "glass"
    
    
    "$refractamount" ".100"
    
    
    "$scale" "[1 1]"
    
    
    "$normalmap" "models/props_oceanic/porthole_001_normalmap"
    
    
    "$dudvmap" "models/props_oceanic/porthole_001_glass"
    
    
    "$envmap" "env_cubemap"
    
    
    "$envmaptint" "[.7 .7 .7]"
    
    
    "$REFRACTTINTTEXTURE" "vesi"
    
    
    }
    Display More

    I don't know if the normalmap in the Dudv is obligatory.

    Oh, I forget to say that in HLMV, the model looks good, I think.

  • m8nkey
    • February 9, 2010 at 12:13 AM
    • #6

    does the refract shader work on models? i think that might be your problem.

    i'd suggest using "VertexlitGeneric" with "$translucent" "1" for the glass. not as fancy though

  • Em'
    • February 9, 2010 at 9:03 AM
    • #7

    Yep, It work on model :

    http://img90.imageshack.us/img90/4135/r ... 0005da.jpg

    [Blocked Image: http://t1.gstatic.com/images?q=tbn:4UnVc5bTHDa_3M:http://image.hazardstrip.com/ss/srends/26062.jpg]

    So yes, it's possible, but I think I have some VMT problems, and I'm not good at it.

  • TermInator525
    • February 10, 2010 at 12:54 AM
    • #8
    Quote from m8nkey

    does the refract shader work on models? i think that might be your problem.i'd suggest using "VertexlitGeneric" with "$translucent" "1" for the glass. not as fancy though

    Hah! the refract shader was designed for models You know the hl2 white double door in the first chapter? -> http://img90.imageshack.us/img90/4135/r ... 0005da.jpg

    thats the one. Valve only used the shader on models like that.

  • Em'
    • February 10, 2010 at 10:59 AM
    • #9

    Can someone give me the VMTs of the double door model ?

    HL2 is no longer installed on my laptop so I can't take the VMTs...

    Or maybe, a TF2 model also use this material ?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  2. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  3. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  4. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  5. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  6. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  7. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  8. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  9. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  10. Classic Maps Reborn For CS2

    SillySpaceCat
    May 31, 2026 at 10:33 PM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™