STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
219
IN-GAME
1,477
ONLINE
Founded
8 November, 2013
All Discussions > Bug Reports > Topic Details
ZeqMacaw 1 Dec, 2017 @ 7:17am
[INVALID] Importing of L4D2's C130 mesh and its idle animation shows warped mesh
Steps to show the error:
- Unpack "models\props_vehicles\c130.*" from "Steam\steamapps\common\Left 4 Dead 2\left4dead2_dlc3\pak01_dir.vpk".
- Decompile "c130.mdl" with Crowbar 0.51.
- Import "c130.smd" into Blender.
- Import "idle.smd" into Blender.

This is what I saw (which is incorrect because the re-compiled model shows the idle animation correctly in L4D2's HLMV and in L4D2's Dead Air finale map):
https://drive.google.com/file/d/15nbaBzHyYRshK6y36JAurgCiEUYAgqH8/view

What I expect to see (screenshot using same steps as above but importing into 3ds Max instead):
https://drive.google.com/file/d/1izI4VHryf9UOJodvIwCEOudSr2VtvwRP/view


I tested and checked several versions of Crowbar and tested by changing various values in the SMD files before concluding that somehow BST is messing this up.

I discovered if I changed the y-rotation value to 3.141593 (i.e. 180 degrees) of several bones in the skeleton section of the c130.smd file, then the mesh+anim would show correctly. Here are the changed lines:
7 99.163139 105.591690 0.000000 0.000000 3.141593 0.000000 8 99.163139 105.591690 0.000000 0.000000 3.141593 0.000000 9 99.163139 105.591690 0.000000 0.000000 3.141593 0.000000 10 -88.635094 105.591690 0.000000 0.000000 3.141593 0.000000 11 -88.635094 105.591690 0.000000 0.000000 3.141593 0.000000 12 -88.635094 105.591690 0.000000 0.000000 3.141593 0.000000 13 0.045967 148.733414 -455.006958 0.000000 0.000000 0.000000 14 0.045967 33.260914 -171.011078 0.000000 0.000000 0.000000 15 83.194641 29.050341 58.206032 0.000000 0.000000 0.000000 16 83.194641 29.050341 -2.755451 0.000000 3.141593 0.000000 17 -83.170639 29.050341 -2.755451 0.000000 3.141593 0.000000 18 -83.170639 29.050341 58.206032 0.000000 0.000000 0.000000 19 0.000000 54.301315 451.810547 0.000000 0.000000 0.000000 20 0.000000 -35.986824 0.000000 0.000000 0.000000 0.000000 21 0.000000 179.346634 0.000000 0.000000 3.141593 0.000000 22 -88.635094 105.591690 0.000000 0.000000 3.141593 0.000000 23 99.163139 105.591690 0.000000 0.000000 3.141593 0.000000 24 5.793194 40.672806 0.000000 0.000000 3.141593 0.000000

I can provide the C130 model files if needed.
Last edited by ZeqMacaw; 2 Dec, 2017 @ 9:15am
< >
Showing 1-4 of 4 comments
Artfunkel 2 Dec, 2017 @ 4:40am 
Uh oh, polar coordinates! Please upload the SMDs.

This may be an issue related to the order in which Blender applies the rotation axes. If that's the case then DMX will be immune.
ZeqMacaw 2 Dec, 2017 @ 6:22am 
Last edited by ZeqMacaw; 2 Dec, 2017 @ 6:32am
Artfunkel 2 Dec, 2017 @ 8:51am 
You need to set the up axis to Y before importing. It's fine then.
ZeqMacaw 2 Dec, 2017 @ 9:09am 
Oh, interesting. I've never needed to use that option before, so didn't think of that.
< >
Showing 1-4 of 4 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details