简体   繁体   中英

How can I get the position(x,y,z) of a 3D Model from 3d Max in xna program

如何在 xna 程序中从 3D Max 获取 3D 模型的位置(x,y,z),以便在某些模型之间进行选择

If you change the positions of the model in 3ds max, then import it into XNA, the position change is written into the root bone transform (which is imported with the model). But to utilize the root bone transform in XNA, you have to apply it with Model.CopyAbsoluteBoneTransformsTo() which will apply the position (and scale, rotation, etc) changes that you made in 3ds max.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM