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

如何渲染vroid模型的全身图片? #1

Open
Time-Lord12th opened this issue Mar 11, 2024 · 1 comment
Open

如何渲染vroid模型的全身图片? #1

Time-Lord12th opened this issue Mar 11, 2024 · 1 comment

Comments

@Time-Lord12th
Copy link

您好,非常感谢您的开源工作!我在尝试渲染vroid模型的全身图片,原本的代码是渲染的颈部和头部,靠loc_origin也就是loc_bone_head定位。我现在是简单地把loc_origin除以2,请问如何更好地利用hbones = gltf.extensions['VRM']['humanoid']['humanBones']里面各骨骼的位置进行定位?
另一个问题是,随着distance_mu参数的增大(1->1.5->1.7),相机的视野并没有增大,渲染出来的区域反而变少了甚至变成全白,请问这是什么原因?
image

@ShuhongChen
Copy link
Owner

你好,原因可能是frustum的near+far parameters,如果model距离超过far的话会被clipped

distance靠近2的话应该把far改成3或4

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