Page 1 of 1
[Help] Noesis left-hand coordinate to right-hand coordinate
Posted: Wed May 30, 2018 4:55 pm
by Shine
I am trying to write a Noesis python script to display Rebellious Million Arthur 《叛逆性百万亚瑟王》 models.
So far I can load 99% of the models and bones in Noesis.
But my problem is the left and right side flipped!
Is there any simple way or command to change the left-hand coordinate to right-hand coordinate?
Re: [Help] Noesis left-hand coordinate to right-hand coordi
Posted: Wed May 30, 2018 5:07 pm
by akderebur
Shine wrote:
But my problem is the left and right side flipped!
Can't you just invert the X-Axis then?
Re: [Help] Noesis left-hand coordinate to right-hand coordi
Posted: Wed May 30, 2018 5:26 pm
by Shine
Thanks for the reply.
Because Noesis had a well made mesh container, I just need to pass the block data and Noesis do the rest!
If I inverse the x data myself, I will end-up with losing the mesh container!
And also bones coordinate are in matrix4X4. I have no idea how to "flip" these matrices!!!
Re: [Help] Noesis left-hand coordinate to right-hand coordi
Posted: Wed May 30, 2018 5:44 pm
by akderebur
Shine wrote:
If I inverse the x data myself, I will end-up with losing the mesh container!
I am not really familiar with Noesis and it's limitations, so I can't propose a workaround for this.
Shine wrote:
And also bones coordinate are in matrix4X4. I have no idea how to "flip" these matrices!!!
Depending on if the matrix is column major or row major, the translation (X, Y, Z) would be either
a41, a42, a43 or
a14, a24, a34. If I remember correctly it was
a41, a42, a43 for Rebellious Million Arthur. So you would invert
a41 if you want to invert the translation in the X-Axis.
Re: [Help] Noesis left-hand coordinate to right-hand coordi
Posted: Wed May 30, 2018 10:57 pm
by chrrox
just load the matrix with the .inverse() at he end.
boneMtx = NoeMat44.fromBytes(bs.readBytes(64)).toMat43().inverse()