VRC_get_text_from_video
VRC_get_text_from_video copied to clipboard
Quest版のVRChatで、Cameraの出力をTexture2Dにコピーできていない
Summery
Quest版のVRChatで、Cameraの出力をTexture2Dにコピーできていない
本来、 texture2d.ReadPixels();
の前で Graphics.SetRenderTarget(cameraTex);
などとして読み込み元を明示する必要がある(はずだ)けれど、これはUdon側にexposeされていない
そもそもPC版ではどうして動いているのか?
Expected
読み込み用のTexture2dに、Video2StrCoreにアタッチされたカメラの出力がコピーされる
Actual
読み込み用のTexture2dに、VRChat本体が表示した画像(直前にAvaterタブ開いたならそこに表示されたサムネイル)がコピーされる
右から
-
Textures/videoTex.renderTexture
VideoPlayerのScreen -
Textures/cameraTex.renderTexture
Cameraに割りあてたRenderTexture -
Textures/tmpTex.png
2.からコピーしたTexture2d