[Closed] How to export mirrored models?
Hey,
This has been bugging me a long, long, long time.
How to export mirrored nodes (nodes with a negative scale) without using Reset XForm ?
I’m using the SDK for my export routines. Can I somehow multiply the vertices with some inverted tranformation or something like that? I mean is it possible to solve this issue using only coordinates / matrixes / transformations / whatever math …and without physically applying the Reset XForm to a model?
Any ideas are welcome.
Suvakas
You say applying the Reset Xform, do you mean the Xform modifier?
You could recalculate the unscaled Xform, apply that to the model then at the editable poly level calculate the offset for all the verts and move them to the right place. Never tried the second part of that but the first is easy to do.
Have you see this tool?
Hey,
Thanks !
I’ll check it out.
Turns out, that mirroring is not my only problem. There are objects that are not mirrored, but i still cant get them to export correctly and I have no idea why.
Are there any other cases when the reset xform utility is needed?
I don't know if it helps at all, but here is some transformation data of the model, that i cant get out of Max correctly. Maybe someone who is more experienced with transformations could tell what's wrong here? For me the offset position seems a bit strange cause the pivot is right in the middle of the geometry.
Well…it’s a shot in the dark, but maybe someone knows the answer? I sure can upload the model if needed. It’s just an extruded rectangle.
So the bottom line is – is there anything wrong with those transformations?
$.transform
(matrix3 [-1.62921e-007,-1,0] [-1.62921e-007,0,1] [-1,1.62921e-007,-1.62921e-007] [-6297.88,-2409.65,-49.317])
$.objectoffsetpos
[-1.16488e-005,-2.04737e-007,-71.5]
$.objectoffsetrot as matrix3
(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])
$.objectoffsetscale
[1,1,1]
$.rotation.controller.value as matrix3
(matrix3 [-1.19209e-007,-1,0] [-1.19209e-007,0,1] [-1,1.19209e-007,-1.19209e-007] [0,0,0])
$.position.controller.value
[-6297.88,-2409.65,-49.317]
$.scale.controller.value
[1,1,1]
Hey,
Thanks for looking. Yes, the model is fine indeed. I found my error. It was something else.