CSGO player models - slightly deformed

Started by jojA, December 10, 2015, 07:57:32 AM

Previous topic - Next topic

jojA

Hey guys,

I managed to import the csgo player models into 3dsmax, as I wanted to edit them there (remove glasses etc.). When I finally got them there, the arms seem to be pretty deformed:

http://prntscr.com/9ci3k7 (detailed: http://prntscr.com/9ci3q4)

I thought that this might just be 3dsmax that displays the model incorrectly, but when importing it back into Source Filmmaker, the issue stayed. I tried fixing it manually by editing the vertices, but that F#$@ed up the textures (http://prntscr.com/9ci5hy).

My question would be: Is there any possibility to fix the arms in 3dsmax without messing with the textures? Or even import it into 3dsmax so that the model shows correctly?

Model: tm_leet_variantb from the csgo files.

PS: Great tool! Really helped with some movie stuff already! :)

Joris Ceoen

Are you using the Wall Worm Pro exporter? If yes, then for playermodels, I suggest you utilise the Wall Worm SMD exporter/importer option instead, I had perfect results with that exporter rather than the Pro one (which is better overall, especially for things made from scratch in 3DS Max, but for importing and exporting again, the WW one is better, albeit slower). About the deforming arms, it's normal, in T-pose they are like that even in HLMV.

What you want to do is:

  • Decompile any playermodel with Crowbar, KEEP the decompiled .qc and all its values.
  • In Wall Worm, import the .qc when it is imported, just hide all the attachements and stuff you don't need to see visually. Make sure to keep the wwmt helper unhidden.
  • Open the Wall Worm Model Tools rollout and click the wwmt helper that is assigned to the model (it comes automatically on import).
  • Simply export the SMD's and .qc in the folders you like. Once this is done (can take a few mins) make sure to hit LOCK .QC in the Wall Worm Model Tools rollout. This is very important!
  • Now, browse to the folder where the newly created smd and qc files are stored. Once found, replace all the smd's with the DECOMPILED ones, make sure they have the same name.
  • Keep the new .qc (don't overwrite that one with the old one) but open it and copy/paste all the contents of the OLD qc INTO the NEW qc. It is important however to change the mdl name and smd paths to the current location, as they will not be correct in the old qc values that you have just pasted in the new one.
  • If there were animation folders from the decompiled model, make sure to also put them into the location of the smd's that Wall Worm searches for.

Once you have done this entire process, you should end up with exactly the same model as it was before import, without problems or deforming vertices. If you want to add changes instead, like custom textures and custom mesh etc... you can do that now. You're gonna overwrite the old smd's anyways, so if your goal is to not simply export and re-export to port models over to another mod, simply ignore the smd replacement steps, but keep the .qc locked. Hopefully this was helpful and not too complicated, I'm not the best when it comes to quickly explaining processes in steps  :-[

jojA

Quote from: Joris Ceoen on December 10, 2015, 09:54:22 AM
Are you using the Wall Worm Pro exporter? If yes, then for playermodels, I suggest you utilise the Wall Worm SMD exporter/importer option instead, I had perfect results with that exporter rather than the Pro one (which is better overall, especially for things made from scratch in 3DS Max, but for importing and exporting again, the WW one is better, albeit slower). About the deforming arms, it's normal, in T-pose they are like that even in HLMV.

What you want to do is:

  • Decompile any playermodel with Crowbar, KEEP the decompiled .qc and all its values.
  • In Wall Worm, import the .qc when it is imported, just hide all the attachements and stuff you don't need to see visually. Make sure to keep the wwmt helper unhidden.
  • Open the Wall Worm Model Tools rollout and click the wwmt helper that is assigned to the model (it comes automatically on import).
  • Simply export the SMD's and .qc in the folders you like. Once this is done (can take a few mins) make sure to hit LOCK .QC in the Wall Worm Model Tools rollout. This is very important!
  • Now, browse to the folder where the newly created smd and qc files are stored. Once found, replace all the smd's with the DECOMPILED ones, make sure they have the same name.
  • Keep the new .qc (don't overwrite that one with the old one) but open it and copy/paste all the contents of the OLD qc INTO the NEW qc. It is important however to change the mdl name and smd paths to the current location, as they will not be correct in the old qc values that you have just pasted in the new one.
  • If there were animation folders from the decompiled model, make sure to also put them into the location of the smd's that Wall Worm searches for.

Once you have done this entire process, you should end up with exactly the same model as it was before import, without problems or deforming vertices. If you want to add changes instead, like custom textures and custom mesh etc... you can do that now. You're gonna overwrite the old smd's anyways, so if your goal is to not simply export and re-export to port models over to another mod, simply ignore the smd replacement steps, but keep the .qc locked. Hopefully this was helpful and not too complicated, I'm not the best when it comes to quickly explaining processes in steps  :-[

If I have understood you correctly, it doesn't work :(
Can we maybe Skype? Might make things easier :S

herr-master

#3
That your fixes the vertices was right but then your need to place the textur at the right cordinates.
Like so open the qc file or export it as are obj with max then your see are mtl file oben this with notepad ther your see somthing like this.
newmtl wire_174186203
   Ns 32
   d 1
   Tr 0
   Tf 1 1 1
   illum 2
   Ka 0.6824 0.7294 0.7961
   Kd 0.6824 0.7294 0.7961
   Ks 0.3500 0.3500 0.3500

newmtl Material__35
   Ns 10.0000
   Ni 1.5000
   d 1.0000
   Tr 0.0000
   Tf 1.0000 1.0000 1.0000
   illum 2
   Ka 0.5880 0.5880 0.5880
   Kd 0.5880 0.5880 0.5880
   Ks 0.0000 0.0000 0.0000
   Ke 0.0000 0.0000 0.0000
name.tga or dds
and the obj looks like this:
v  3.0000 11.3191 0.0500
v  3.0000 11.2191 0.0500
v  3.0000 11.3191 -0.0500
v  3.0000 11.2191 -0.0500
v  0.5000 11.7691 -0.5000
v  0.5000 10.7691 -0.5000
v  0.5000 11.7691 0.5000
v  0.5000 10.7691 0.5000
v  0.0000 11.2691 -0.0000
# 9 vertices

vn 1.0000 0.0000 -0.0000
vn 0.1772 0.0000 -0.9842
vn 0.1772 0.9842 -0.0000
vn 0.1772 -0.9842 -0.0000
vn 0.1772 0.0000 0.9842
vn -0.7071 0.7071 -0.0000
vn -0.7071 0.0000 -0.7071
vn -0.7071 -0.7071 -0.0000
vn -0.7071 0.0000 0.7071
# 9 vertex normals

g bone_0
usemtl wire_174186203
s 1
f 1//1 2//1 3//1
f 4//1 3//1 2//1
s 2
f 5//2 3//2 6//2
f 4//2 6//2 3//2
s 4
f 7//3 1//3 5//3
f 3//3 5//3 1//3
s 8
f 2//4 8//4 4//4
f 6//4 4//4 8//4
s 16
f 1//5 7//5 2//5
f 8//5 2//5 7//5
s 32
f 9//6 7//6 5//6
s 64
f 9//7 5//7 6//7
s 128
f 9//8 6//8 8//8
s 256
f 9//9 8//9 7//9
# 14 faces

#
# object bone_1
#

v  3.0000 11.3940 0.0500
v  3.0000 11.2940 0.0500
v  3.0000 11.3940 -0.0500
v  3.0000 11.2940 -0.0500
v  0.5000 11.8440 -0.5000
v  0.5000 10.8440 -0.5000
v  0.5000 11.8440 0.5000
v  0.5000 10.8440 0.5000
v  0.0000 11.3440 -0.0000
# 9 vertices

vn 1.0000 0.0000 -0.0000
vn 0.1772 0.0000 -0.9842
vn 0.1772 0.9842 -0.0000
vn 0.1772 -0.9842 -0.0000
vn 0.1772 0.0000 0.9842
vn -0.7071 0.7071 -0.0000
vn -0.7071 0.0000 -0.7071
vn -0.7071 -0.7071 -0.0000
vn -0.7071 0.0000 0.7071
# 9 vertex normals

g bone_1
usemtl wire_174186203
s 1
f 10//10 11//10 12//10
f 13//10 12//10 11//10
s 2
f 14//11 12//11 15//11
f 13//11 15//11 12//11
s 4
f 16//12 10//12 14//12
f 12//12 14//12 10//12
s 8
f 11//13 17//13 13//13
f 15//13 13//13 17//13
s 16
f 10//14 16//14 11//14
f 17//14 11//14 16//14
s 32
f 18//15 16//15 14//15
s 64
f 18//16 14//16 15//16
s 128
f 18//17 15//17 17//17
s 256
f 18//18 17//18 16//18
# 14 faces

#
# object bone_2
#

v  3.0000 12.6157 0.0112
v  3.0000 12.5157 0.0112
v  3.0000 12.6157 -0.0888
v  3.0000 12.5157 -0.0888
v  0.5000 13.0657 -0.5388
v  0.5000 12.0657 -0.5388
v  0.5000 13.0657 0.4612
v  0.5000 12.0657 0.4612
v  0.0000 12.5657 -0.0388
# 9 vertices

vn 1.0000 0.0000 -0.0000
vn 0.1772 0.0000 -0.9842
vn 0.1772 0.9842 -0.0000
vn 0.1772 -0.9842 -0.0000
vn 0.1772 0.0000 0.9842
vn -0.7071 0.7071 -0.0000
vn -0.7071 0.0000 -0.7071
vn -0.7071 -0.7071 -0.0000
vn -0.7071 0.0000 0.7071
# 9 vertex normals

g bone_2
usemtl wire_174186203
s 1
f 19//19 20//19 21//19
f 22//19 21//19 20//19
s 2
f 23//20 21//20 24//20
f 22//20 24//20 21//20
s 4
f 25//21 19//21 23//21
f 21//21 23//21 19//21
s 8
f 20//22 26//22 22//22
f 24//22 22//22 26//22
s 16
f 19//23 25//23 20//23
f 26//23 20//23 25//23
s 32
f 27//24 25//24 23//24
s 64
f 27//25 23//25 24//25
s 128
f 27//26 24//26 26//26
s 256
f 27//27 26//27 25//27
# 14 faces

#
# object bone_3
#

v  3.0000 15.1601 -0.2853
v  3.0000 15.0601 -0.2853
v  3.0000 15.1601 -0.3853
v  3.0000 15.0601 -0.3853
v  0.5000 15.6101 -0.8353
v  0.5000 14.6101 -0.8353
v  0.5000 15.6101 0.1647
v  0.5000 14.6101 0.1647
v  0.0000 15.1101 -0.3353
# 9 vertices

vn 1.0000 0.0000 -0.0000
vn 0.1772 0.0000 -0.9842
vn 0.1772 0.9842 -0.0000
vn 0.1772 -0.9842 -0.0000
vn 0.1772 0.0000 0.9842
vn -0.7071 0.7071 -0.0000
vn -0.7071 0.0000 -0.7071
vn -0.7071 -0.7071 -0.0000
vn -0.7071 0.0000 0.7071
# 9 vertex normals

g bone_3
usemtl wire_174186203
s 1
f 28//28 29//28 30//28
f 31//28 30//28 29//28
s 2
f 32//29 30//29 33//29
f 31//29 33//29 30//29
s 4
f 34//30 28//30 32//30
f 30//30 32//30 28//30
s 8
f 29//31 35//31 31//31
f 33//31 31//31 35//31
s 16
f 28//32 34//32 29//32
f 35//32 29//32 34//32
s 32
f 36//33 34//33 32//33
s 64
f 36//34 32//34 33//34
s 128
f 36//35 33//35 35//35
s 256
f 36//36 35//36 34//36
# 14 faces

#
# object bone_4
#

v  3.0000 15.8221 -0.1405
v  3.0000 15.7221 -0.1405
v  3.0000 15.8221 -0.2405
v  3.0000 15.7221 -0.2405
v  0.5000 16.2721 -0.6905
v  0.5000 15.2721 -0.6905
v  0.5000 16.2721 0.3095
v  0.5000 15.2721 0.3095
v  0.0000 15.7721 -0.1905
# 9 vertices
this lines from the obj and the mtl are the cordinates i talked about if your see on the old with out this error some orther cordinates as on the new mtl or ob files combare this files and change the new file as much as your need that the texture file is again at the right cordinates.

jojA

Thanks! :)

But I managed it otherwise, as Blender imports it correctly somehow (?). I imported the model into Blender and simply textured it there :)

Thread can be closed, thanks for helping :)

wallworm

Sorry I haven't had time in last few days.

Joris is best advice on the import player models and re-exporting. It isn't something I've done.

There really should be no need to export to other apps or to have to redo UVs, so there must be something odd going on for you. Unfortunately, I won't have time to look into it for a few days at least.

SMF spam blocked by CleanTalk