Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于转换fbx的脚本中trans参数的顺序 #129

Open
MioChiu opened this issue Dec 28, 2021 · 1 comment
Open

关于转换fbx的脚本中trans参数的顺序 #129

MioChiu opened this issue Dec 28, 2021 · 1 comment

Comments

@MioChiu
Copy link

MioChiu commented Dec 28, 2021

您好,请教一下关于convert_fbx.py中写入位移的代码
bones[bone_name_from_index[0]].location = Vector((100trans[1], 100trans[2], 100*trans[0])) - pelvis_position
这里的顺序为什么是trans[1][2][0]呢?不是按XYZ的顺序吗

@MioChiu MioChiu changed the title 关于转换fbx的 关于转换fbx的脚本中trans参数的顺序 Dec 28, 2021
@Arthur151
Copy link
Owner

这里主要是坐标系的朝向不太一样。ROMP里默认是垂直于图像平面是z方向,图片水平方向是x方向,图片垂直方向是y方向。但Blender里不是这样的。为了能和图片展示的位移一致就进行了这样的变换。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants