Closed kan8pachi closed 1 year ago
ありがとうございます、確かにExternalSender時にRoomAdjustを考慮していません。 1.31においてはNoodleも更新された影響で変更を入れるため、PR#27については検討させてください。
Thanks, certainly not considering RoomAdjust when ExternalSender. In 1.31, Noodle will also be updated and changes will be made, so please consider PR#27.
Thank you so much. PR #27 is just for sharing the workaround that is working at maigo-san's environment regarding RoomAdjust only, so no problem. Please just close it when you no longer need it. Since our use case doesn't currently depend on Noodle so much and the workaround above is almost good for us, please take your time fixing it including Noodle!
I tried reconfirming the code and behavior, but since the changes in the Room settings are absorbed elsewhere, For VMCProtocol, there should be no problem in sending ThirdPersonPos and ThirdPersonRot as they are. I checked in 3 environments, but I can't confirm Maigo's symptoms.
Additional information may be required for verification.
CameraPlus is now CameraPlusBehaviour +Camera Plus Origin ++ inGame Camera It has a hierarchy structure of , and the inGame Camera Local value is sent to the VMC. RoomAdjust is a structure that doesn't need to consider the rotation of in-game objects, but since only Noodle's PlayerTrack is affected, only GameScene handles RoomAdjust in Origin. Therefore, LocalPosition and LocalRotation of inGame Camera are not affected by RoomAdjust at all. And it sends Position and Euler as it looks to VMC.
Development environment (1.31.0) My delivery environment (1.29.1) I built (1.29.1) on a new PC and entered Maigo's Room settings and more extreme values, but I couldn't confirm the reproduction.
I'm sorry, I was able to reproduce the situation. There is no problem with the code you provided, so I will merge it. Thank you for the issue.
The camera position and rotation sent from
External Linkage (VMC Protocol)
does not seem to be as intended whenRoom
configuration is edited in game setting. ゲーム内のRoom
設定が変更されていると、External Linkage (VMC Protocol)
から送られるカメラの位置と向きがその分ずれるようです。How to reproduce:
Add New Camera
in CameraPlus setting in the game window, and setExternal linkage
to it asSender
with proper Address and Port. CameraPlusのカメラに、External linkage
を適当に設定します。VirtualMotionCapture
to receive it. ばもきゃ等で受信します。CameraPlus
) withExternal Linkage
in front of my avatar in the any scene. (just for making it easy to understand) CameraPlusのカメラを、自分の正面に持ってきます。CameraPlus
camera and theVirtualMotionCapture
camera has the same position and rotation. Maybe this is a natural behaviour. ゲーム内のRoom
設定が変更されていない場合は、特に不自然な挙動はありません。VirtualMotionCapture
camera shoots from my right? side even though theCameraPlus
camera is still in front of my body in VR. Those two cameras have different FOV as a result, which I think is an unnatural behaviour. ゲーム内のRoom
設定が変更されている場合、例えば90度回すと、CameraPlusのカメラはVR空間では変わらず正面から撮る位置にあるにもかかわらず、ばもきゃのカメラは右側?から撮影する角度になり、不自然に見えます。