STEAM-GRUPPE
Blender Source Tools BleST
STEAM-GRUPPE
Blender Source Tools BleST
241
I SPIL
1,574
ONLINE
Grundlagt:
8. november 2013
Alle diskussioner > Bug Reports > Trådoplysninger
lasa 22. apr. 2020 kl. 9:21
Inconsistent imported Z rotation on certain models
On some imported models the Z rotation is wrong, compared to models loaded into Half-Life Model Viewer as .mdl and exported as .obj and imported into Blender with settings -Y Forward, Z Up. Decompiled .qc models were imported with the following settings: https://imgur.com/9VaNtI8

Here's a screenshot about the issue: https://imgur.com/d0W6eDa

Blue models are imported with Blender Source Tools, and grey models are .obj imports. On most models, the imported rotation is correct (e.g. CSGO models "models/props_vehicles/van.mdl", "models/props/de_inferno/bench_wood_new.mdl"). However, in some rare cases the Z rotation is incorrect (e.g. "models/props/de_mirage/bomb_site_tarp.mdl").

The same issue is in both BST 3.0.3 and latest unreleased BST 3.1.0. The models are decompiled with latest Crowbar before importing. The issue doesn't seem to be in Crowbar, since recompiling the decompiled .qc models doesn't affect the rotation on the problematic models.
< >
Viser 1-5 af 5 kommentarer
Artfunkel 25. apr. 2020 kl. 12:29 
This is normally to do with the presence or absence of animations. For legacy reasons all SMD meshes are rotated 90 degrees from their final engine position, as your tarpaulin model shows, and that error is then corrected by their animations rotating them back.
lasa 25. apr. 2020 kl. 14:38 
I checked that all of the meshes I have there are imported with animations. The issue is not the fact that the models are rotated in Z since that can be easily corrected, but that seemingly some models are rotated and some are not. This makes it impossible for my .vmf importer to import all prop rotations correctly.
Artfunkel 3. maj 2020 kl. 5:21 
Is the difference defined by whether the model is a $staticprop?
lasa 3. maj 2020 kl. 10:48 
That seems to be the case actually. Checked a couple of models and the ones with $staticprop were correctly rotated.
lasa 7. maj 2020 kl. 13:58 
Looks like the animations should not be imported on models with $staticprop, but should be imported on other models to get the correct rotations. I was able to fix this on my side, but it would be probably better to have an option to import only non-$staticprop animations in BST. In any case, thanks for helping.
< >
Viser 1-5 af 5 kommentarer
Per side: 1530 50

Alle diskussioner > Bug Reports > Trådoplysninger