athkast
16-08-2007 17:09:04
I came across some problems with bad pivot point / axis alingment of the object. I am using 1.8.3 CE and max 9
What I came to believe is that for some reason oFusion exports the "original" pivot point (that is, the one that the object had when created) and not the current one. I say this because it seems to use the pivot point that you can get in MAX when you press the "Reset Pivot" button under "Hierarchy" panel.
Most of the times this leads to improper alignment and / or placement of objects in the oFusion viewport and in my Ogre engine. Sometimes it even shows properly on the viewport, only to discover it is set on its side (in LexiView and in Ogre).
I have read about hierarchies, groups and helpers, I am not using any. I run the model through OgreMeshUpgrade -b as soon as I export it.
I have found a workaround for this problem : what I do is I go to the "Hierarchy" panel and then do some combination of "Affect Only Pivot", "Reset Pivot", "Center to Object", "Align To World", "Affect only Object", "Center to Pivot", "Align To Pivot". When this is done, my object is no longer aligned the way I want it. So then I press "Affect Object only", move the object and rotate it around the Pivot Point the way I want it to be. Then I add an XForm modifier, choose "gizmo" and rotate the object back in place. I collapse the stack, press "Reset Transform" "Reset Scale" and (usually) I got my object properly aligned.
Is there something I am missing or this is the only way to bring things back to normal on CE?
What I came to believe is that for some reason oFusion exports the "original" pivot point (that is, the one that the object had when created) and not the current one. I say this because it seems to use the pivot point that you can get in MAX when you press the "Reset Pivot" button under "Hierarchy" panel.
Most of the times this leads to improper alignment and / or placement of objects in the oFusion viewport and in my Ogre engine. Sometimes it even shows properly on the viewport, only to discover it is set on its side (in LexiView and in Ogre).
I have read about hierarchies, groups and helpers, I am not using any. I run the model through OgreMeshUpgrade -b as soon as I export it.
I have found a workaround for this problem : what I do is I go to the "Hierarchy" panel and then do some combination of "Affect Only Pivot", "Reset Pivot", "Center to Object", "Align To World", "Affect only Object", "Center to Pivot", "Align To Pivot". When this is done, my object is no longer aligned the way I want it. So then I press "Affect Object only", move the object and rotate it around the Pivot Point the way I want it to be. Then I add an XForm modifier, choose "gizmo" and rotate the object back in place. I collapse the stack, press "Reset Transform" "Reset Scale" and (usually) I got my object properly aligned.
Is there something I am missing or this is the only way to bring things back to normal on CE?