Modeling a dynamic door (HL2)

Get feedback on your in-development maps and models, discuss the latest modeling and level editing software, and anything else that comes in three dimensions.

Moderators: KungFuSquirrel, Pericolos0, Mazy, Minotauro, Furyo, JamesL, hessi, Izuno, insta, Warby, Senior Staff

Modeling a dynamic door (HL2)

Postby Em' » February 6th, 2010, 6:16 pm

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:
Em'
User avatar
 
Posts: 50
Joined: December 20th, 2008, 6:43 pm

Re: Modeling a dynamic door (HL2)

Postby m8nkey » February 7th, 2010, 1:50 pm

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: Select all
"VertexlitGeneric"
{
   "$basetexture" "models/metroplex/billiard_light"
   "$nocull" "1"
   "$alphatest" 1
   "$surfaceprop" "glass"
   "$envmap" "env_cubemap"
   "$envmaptint" "[ .2 .2 .2 ]"
}


billiard_light02.vmt
Code: Select all
"VertexlitGeneric"
{
   "$basetexture" "models/metroplex/billiard_light"
   "$model" "1"
   "$surfaceprop" "metal"
   "$envmap" "env_cubemap"
   "$envmaptint" "[.3 .3 .3]"
   "$selfillum" "1"
}


billiard_light03.vmt
Code: Select all
"VertexlitGeneric"
{
   "$basetexture" "models/metroplex/billiard_light"
   "$translucent" 1
   "$envmap" "env_cubemap"
   "$envmaptint" "[ .2 .2 .2 ]"
}


cs_metroplex_feb06100002.jpg
cs_metroplex_feb06100002.jpg (41.94 KiB) Viewed 692 times


cs_metroplex_feb06100001.jpg
cs_metroplex_feb06100001.jpg (44.91 KiB) Viewed 691 times


cs_metroplex_feb06100000.jpg
cs_metroplex_feb06100000.jpg (44.85 KiB) Viewed 689 times
m8nkey
User avatar
 
Posts: 392
Joined: June 16th, 2007, 3:25 am
Location: Australia

Re: Modeling a dynamic door (HL2)

Postby Surfa » February 7th, 2010, 4:10 pm

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.
Surfa
User avatar
 
Posts: 38
Joined: December 22nd, 2009, 11:01 pm

Re: Modeling a dynamic door (HL2)

Postby SotaPoika » February 8th, 2010, 2:31 pm

Ask WesleyTack, he re-did HL2 doors for Off-Limits mod.
Image
* NMRiH Level Designer
SotaPoika
User avatar
 
Posts: 40
Joined: October 25th, 2007, 4:43 pm

Re: Modeling a dynamic door (HL2)

Postby Em' » February 8th, 2010, 3:49 pm

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: Select all
"VertexlitGeneric"
{
   "$basetexture" "models/props_oceanic/porthole_001_metal"
   "$surfaceprop" "metal"
   "$envmap" "env_cubemap"
   "$envmaptint" "[ .2 .2 .2 ]"
}


porthole_001_glass = refract
Code: Select all
"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"
}


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.
Em'
User avatar
 
Posts: 50
Joined: December 20th, 2008, 6:43 pm

Re: Modeling a dynamic door (HL2)

Postby m8nkey » February 9th, 2010, 1:13 am

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
m8nkey
User avatar
 
Posts: 392
Joined: June 16th, 2007, 3:25 am
Location: Australia

Re: Modeling a dynamic door (HL2)

Postby Em' » February 9th, 2010, 10:03 am

Yep, It work on model :
http://img90.imageshack.us/img90/4135/r ... 0005da.jpg
Image

So yes, it's possible, but I think I have some VMT problems, and I'm not good at it. :celebrate:
Em'
User avatar
 
Posts: 50
Joined: December 20th, 2008, 6:43 pm

Re: Modeling a dynamic door (HL2)

Postby Term!nator525 » February 10th, 2010, 1:54 am

m8nkey wrote: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. :)
Term!nator525
User avatar
 
Posts: 71
Joined: June 1st, 2007, 7:20 pm
Location: Germany - Stuttgart

Re: Modeling a dynamic door (HL2)

Postby Em' » February 10th, 2010, 11:59 am

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 ?
Em'
User avatar
 
Posts: 50
Joined: December 20th, 2008, 6:43 pm


Return to 3D (Levels, Models)

Who is online

Users browsing this forum: No registered users and 1 guest