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

前端 未结 2 657
时光取名叫无心
时光取名叫无心 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

提交回复
热议问题