ruyo / VRM4U

Runtime VRM loader for UnrealEngine4
Other
1.33k stars 173 forks source link

first person vrm camera #238

Open My-Tallest opened 1 year ago

My-Tallest commented 1 year ago

Describe the bug Im trying to make a first person game that lets the player load there own vrm model to be the player. When i do the the first person camra is pushed into the ground, due to the skeleton of the mesh changing. Is there a way to get the head of runtime loaded vrm models? the anim retarget used in the example map seems to know wich bone is the head but i dont know how to expose that info to use for the camera.

Screenshots, log

Untitlllled

UnrealEngine Version: UE 5.0.3

ruyo commented 1 year ago

Hi. Internally, the VroidSimple model is used. So, it is a good idea to refer to the bones of this You can also reference bones from a spawned Actor.

My-Tallest commented 1 year ago

Ive tried attaching to certain bones, but not all vrm models seem to work with this method, and the J_Adj_R_FaceEyeSet bone dosnt work at all in this regard. i dont know if its because im in an older version of unreal engine 5, but it is rather odd.