Sigmmma / Blendkrieg

Halo Model importer and exporter for Blender.
GNU General Public License v3.0
11 stars 3 forks source link

Switch node import implementation from spheres to armatures #30

Closed ShellyHerself closed 4 years ago

ShellyHerself commented 4 years ago

This pull request adjusts the node import so that it imports as armatures. A lot more work goes into armatures than into objects. So it will be a bit dense.

Currently marker import is disabled. This is because it will need to be adjusted to work with this implementation. That will be the next pull request. Screenshot_20200217_112725

ShellyHerself commented 4 years ago

I want to eventually split a lot of this up into different functions. But right now as demonstrated by the current util functions not working for this I don't think I know really well where to split things yet.

ShellyHerself commented 4 years ago

Marker import is back. But the markers are dislocated because of the 90degree z axis rotation offset that the bone's "forward" has. This is a bit annoying.

ShellyHerself commented 4 years ago

Correction: It might still be what is described there. But the locations are also offset because Blender is parenting them to the tail end of the bones, not the head end.

ShellyHerself commented 4 years ago

I'll fix the marker positions in the next pull request as it's undoubtedly going to be more matrix 'fun'

ShellyHerself commented 4 years ago

After laying down for a bit I came up with a solution, it's short and sweet. Marker locations are correct now :fox_face:

ShellyHerself commented 4 years ago

I haven't really addressed things exactly as you requested. But I'd like to see what you think

ShellyHerself commented 4 years ago

Thank you :fox_face: