VRC_get_text_from_video icon indicating copy to clipboard operation
VRC_get_text_from_video copied to clipboard

Quest版のVRChatで、Cameraの出力をTexture2Dにコピーできていない

Open m-hayabusa opened this issue 3 years ago • 0 comments

Summery

Quest版のVRChatで、Cameraの出力をTexture2Dにコピーできていない 本来、 texture2d.ReadPixels(); の前で Graphics.SetRenderTarget(cameraTex); などとして読み込み元を明示する必要がある(はずだ)けれど、これはUdon側にexposeされていない そもそもPC版ではどうして動いているのか?

Expected

読み込み用のTexture2dに、Video2StrCoreにアタッチされたカメラの出力がコピーされる

Actual

読み込み用のTexture2dに、VRChat本体が表示した画像(直前にAvaterタブ開いたならそこに表示されたサムネイル)がコピーされる

com vrchat oculus quest-20211110-102031 右から

  1. Textures/videoTex.renderTexture VideoPlayerのScreen
  2. Textures/cameraTex.renderTexture Cameraに割りあてたRenderTexture
  3. Textures/tmpTex.png 2.からコピーしたTexture2d

m-hayabusa avatar Nov 09 '21 03:11 m-hayabusa