Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / about coordinate in 3ds max
  RSS 2.0 ATOM  

about coordinate in 3ds max
Rate this thread
 
62739
 
Permlink of this thread  
avatar
  • zydgyy
  • Posted: 11 December 2011 01:28 PM
  • Total Posts: 84
  • Joined: 09 November 2011 05:37 PM

Hi,
I drew a box with width,lenght,height are the same 50,then a get the vertices coordinates are
(-25,-25,0,25,-25,0,-25,25,0,25,25,0,-25,-25,50,25,-25,50,-25,25,50,25,25,50)!Sure,3ds max consider the center of it as origin point of local frame of it!Then i wonder that how can i change the origin point of local frame???



Replies: 0
avatar

You’d need to be more specific about your goal. Anyway, you should check SDK help Object Offset Transformation section. In short these are main methods

void INode::SetObjOffsetPos(Point3 p) - Sets the position portion of the object offset from the node.
Point3 INode::GetObjOffsetPos() - Returns the position portion of the object-offset from the node as a Point3.
void INode::SetObjOffsetRot(Quat q) - Sets the rotation portion of the object offset from the node.
Quat INode::GetObjOffsetRot() - Returns the rotation portion of the object-offset from the node.
void INode::SetObjOffsetScale(ScaleValue sv) - Sets the scale portion of the object offset from the node.
ScaleValue INode::GetObjOffsetScale()

Hope it helps,



Replies: 0
avatar
  • zydgyy
  • Posted: 12 December 2011 12:11 PM

Acutally,what i meant is an operation in 3ds max,not these functions,so,if i draw a box in 3ds max,the origin point of local space is default in the center of bottom of this box,so,i want to know if i want to change this position,then these coordinates will be changed!Thank u!



Replies: 0
avatar

It seems it’s not the best forum for your question. Anyway coordinates of vertices will depend on your space context. These points can have totally different coordinates in world space, transform space or mesh space. You need to specify which one you’re interested in.



Replies: 0