How to show 2 camera preview side by side?[For cardboard apps]

前端 未结 2 649
时光取名叫无心
时光取名叫无心 2020-12-09 05:36

I am trying to build a Cardboard android application that shows 2 camera view side by side. [Just like the camera view works for VRCinema Android app.]

相关标签:
2条回答
  • 2020-12-09 06:26

    Basically you need to draw the camera into an OpenGL texture and show the texture.

    I wrote two versions of this here, feel free to modify the code and add pull requests: https://github.com/Sveder/CardboardPassthrough

    0 讨论(0)
  • 2020-12-09 06:27

    I updated @Mikle code to work with the new GoogleVR SDK:

    https://github.com/SalahEddin/DJI-Vision/commit/45fe28302d96ef4b1cd07472997d9feb1da5d009

    0 讨论(0)
提交回复
热议问题