How to convert *.mdl (Half-Life 2 3d model) file to *.obj file.
YOU NEED :
PYTHON 2.6.4 (do blendera)
GIMP 2.6 ( sometimes blender dont see alpha channel even you set alpha channel in options
in blender then you must use GIMP and add alpha channel to *.tga textures -it’s easy.)
1.Open CRAFTY program -load *.mdl model then export to *.obj
2.Copy *.vtf + *.vmt files to folder with VTF2TGA program
3.Open VTF2TGA program -enter -delete orginals -yes -now you have all textures
in tga format . (why tga? because they have Alpha channel and this is important)
- Open BLENDER -import- *.obj - separate objects in OBJ - by groups
5.Now your model have groups ( why? because this is very easy to texture the model)
6.in the bottom you have option press F9 (editing) in LINK AND MATERIALS -VERTEX GROUPS
- press small arrows you will see vertex groups that you have.
7.select one of vertex group - change to edit mode
8.split area -in new window go to UV/Image editor -now you see unwraped UV map
then press - image - open -choose *.tga texture -open image
9.now you see UV map and texture - ( press A to select all and G to move UV map and fit
perfectly UV map to texture. (if UV map dont fit then this is wrong texture -find and open
other texture )
10.change to object mode + change draw type to textured and then you see textures on your
11.Now in VERTEX GROUPS change to other vertex group and open others textures and fit them
to UV map - do this with all vertex group and you model will be fully textured then save .
Questions? Send me PM