ruyo / VRM4U

Runtime VRM loader for UnrealEngine4
Other
1.36k stars 176 forks source link

Compile error when using VRM4U's CR_VRoidSimpleUE5Body Backwards Solve #377

Open Oddseagoer opened 4 months ago

Oddseagoer commented 4 months ago

Describe the bug Hi, I get a compile error when using VRM4U's CR_VRoidSimpleUE5Body Backwards Solve. I have to use Backwards Solve because I want to bake existing animations into ControlRig motion and re-edit them. But I don't understand the error. I hope you can reply, thank you in advance.

Screenshots, log 屏幕截图 2024-05-30 003414

UnrealEngine Version: UE5.2.1 Both VRM4U20240320 and VRM4U20240507 have the same problem when testing

ruyo commented 4 months ago

Hi. As far as I have checked with UE5.2, there are no errors. Please check if the data is correctly extracted with the latest plug-ins.

image
Oddseagoer commented 4 months ago

Can it compile correctly if the mode is switched to Backwards Solve? I see that your screenshot is still in Forwards Solve mode. @ruyo

ruyo commented 4 months ago

I understand the intent of your question. The Rig is a template. You can reassign it to another model and use it. You can use WidgetBlueprint for that.

You can confirm that the Rig you reassigned to the other model will not cause any errors.

image
Oddseagoer commented 4 months ago

Yes, the reassign was successful. But when I changed it to Backwards Solve, the same compilation failure occurred again. I don't know why, I have updated VRM4U to version 2024.05.30. And tried the same steps on another computer and another new project, the result is the same. I attached more detailed screenshots and logs, hope you can see some clues. Thank you again for your patience. 1 2 3 屏幕截图 2024-06-01 015554 屏幕截图 2024-06-01 015634 LogRigVM: Error: Instruction[1170] 'DISPATCH_RigVMDispatch_ArrayGetAtIndex::Array:TArray,Index:int32,Element:FRigElementKey': 'Array Index (16) out of bounds (count 16).' LogRigVM: Error: Instruction[1170] 'DISPATCH_RigVMDispatch_ArrayGetAtIndex::Array:TArray,Index:int32,Element:FRigElementKey': 'Array Index (17) out of bounds (count 16).' LogRigVM: Error: Instruction[1170] 'DISPATCH_RigVMDispatch_ArrayGetAtIndex::Array:TArray,Index:int32,Element:FRigElementKey': 'Array Index (18) out of bounds (count 16).'

Irena04 commented 3 months ago

您好!我用的ue5.4,我也遇到了相同的问题!这个问题到底怎么解决!!谢谢。

Oddseagoer commented 3 months ago

您好!我正在使用ue5.4,我也遇到了相同的问题!这个问题到底怎么解决!!谢谢。

您好,这个问题目前我也没有解决,官方那边看起来向后编译不会遇到此问题。我也请教了其他人来查看这个蓝图,也没有看出技术上的问题。我怀疑这个BUG可能与UE的系统语言有关,但我切换成其他语言测试此步骤仍然没有成功。我们可能只能用FK控制绑定代替一下或者使用UE已有的IK控制绑定角色制作动画再将动画重定向给VRM角色。(可以参考这位老师的教程:https://space.bilibili.com/2024227618/channel/collectiondetail?sid=747604