Page 1 of 1

[Solved]Getting the "positioning point" of a model

Posted: Sun Jul 19, 2009 12:00 pm
by NeWsOfTzzz
A 3d model has always a point, where the position is related to. Since I don't know the name of that point I couldn't search for my question :(

So first question: What's the name of this positioning point?

Second and important question: How can I get this positioning point in IrrLicht? I'm using a bounding box so I can calculate distances, for example to the ground. I tried using boundingBox.getCenter(), but then I've seen that this positioning point often is NOT the center.


Kind Regards and thanks for your help,
René



PS: I've just seen the transformedBoundingBox is using absolute position, so I could calculate it with the original sceneNode->getPosition(). So I think second question is answered (I'll recode it now and test it), but I'd still like to know the name of this positioning point, so I can maybe reposition it in 3ds max?



.

Posted: Sun Jul 19, 2009 12:12 pm
by Eigen
That point is called origin, as in origin of model. You can get it by calling node->getPosition() or getAbsolutePosition() if your node is parented. Models are positioned using their origin.

Posted: Sun Jul 19, 2009 12:18 pm
by FuzzYspo0N
most modelling applications call it the pivot, the position around which the transformations on the mesh apply.

Posted: Sun Jul 19, 2009 12:36 pm
by NeWsOfTzzz
FuzzYspo0N wrote:most modelling applications call it the pivot, the position around which the transformations on the mesh apply.
Ty, found out how to move the pivot now in 3ds max :)

May be closed.



.

Posted: Sun Jul 19, 2009 2:44 pm
by FuzzYspo0N
just rename the thread to [solved] and it will be fine.