I'm sorry the title is vague, but I couldn't come up with a summary of my problem.
I am trying to convert a script made for a model viewing tool called Noesis to Blender. I'm stuck on some Noesis specific functions and need guidance.
Now this is the specific line that I am stuck on:
boneMat = NoeMat44.fromBytes(bs.readBytes(0x40)).toMat43()
I have already made a function for bs.readBytes()
. I have printed out various values. From what I know, this function is making a vector 44 and converting it to a vector 43, I'll show some values that I have printed out from the original script.
These are the bytes that are from bs.readBytes(0x40)
:
b'\x00\x00\x80?
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?'
Somehow, they get converted to this vector:
((1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 0.0))
I imagine this would be linked to bone matrices in Blender as that is what they are called in Noesis.
Noesis to Blender
to what?? Examining it or extract function or mock the process? $\endgroup$