ruyo / VRM4U

Runtime VRM loader for UnrealEngine5
Other
1.4k stars 182 forks source link

Runtime Loading .VRM into Third Person Character. #412

Open JiffyGoat opened 2 months ago

JiffyGoat commented 2 months ago

I've been trying to import a .VRM using runtime load with bp_dropActor. No matter what I do I cant get it to set the animations to the third person characters animBP. I also tried using IK retargeting and then duplicating the animBP for Vroid_Simple skeleton. THe retargeted BP works but it still just stays in a T pose when its attached to the Third person character template.

I also tried adding runtime load code to the vrmmannequinretarget and connecting the out pin of Load VRM Async node to set asset list override node. I keep getting a vrmassetlist not found when it tries to load the new imported mesh.

Very sorry for the bother hope someone has experience with this and can point me in the right direction, was told to post here by ruyo on twitter.

ruyo commented 2 months ago

Hi. If you want to know more about retargeting, please refer to BP_VrmMannequinRetarget. The sample also uses retargeting, so follow the nodes closely.

https://ruyo-github-io.translate.goog/VRM4U/03_gray/?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=ja

JiffyGoat commented 2 months ago

Sorry im not good at explaining things. I set up VR_VrmMannequinRetarget to use the drop files component. It can load files on runtime now.

I'm trying to figure out how to change the mesh so its using the runtime-loaded .vrm instead of the mesh it has set in the premade asset list.