I have built an object with 3dsMax.
I have moved the rotation center (pivot) near to an extreme.
I export with Panda in file.x
When I load the mesh with IRR the object rotates in comparison to the center of the object and not from me assigned.
Why?
Pivot -rotation center
Ok, then you could try something like this
Then use TranslationNode to position and RotationNode to rotate.
I think it'll work, not sure, but i think so.
Code: Select all
ISceneNode *YourNode;
ISceneNode *RotationNode;
ISceneNode *TranslationNode;
RotationNode=SceneManager->addDummyTransformationSceneNode(YourNode->getParent());
RotationNode->addChild(YourNode);
TranslationNode=SceneManager->addDummyTransformationSceneNode(RotationNode->getParent());
TranslationNode->addChild(RotationNode);
RotationNode->setPosition(NewRotationOrigin);
YourNode->setPosition(NewRotationOrigin*-1);
I think it'll work, not sure, but i think so.
If you don't have anything nice to say, don't say anything at all.
thanks Luben your idea is correct but I have found where I wrong.
I write my solution\error for the one that uses the Panda Exporter.
Under the voice "X file Settings" there is "DXFRame" with 3 options;
1 "no frame"
2 "top frame only"
3 "sub frame hierarchy."
I had selected on 3 while It must be being on the first one therefore "No frames."
I write my solution\error for the one that uses the Panda Exporter.
Under the voice "X file Settings" there is "DXFRame" with 3 options;
1 "no frame"
2 "top frame only"
3 "sub frame hierarchy."
I had selected on 3 while It must be being on the first one therefore "No frames."