googlevr / cardboard

Open source Cardboard SDK and samples
Other
1.49k stars 256 forks source link

Do you have any sample for Video 360? #14

Open murgupluoglu opened 4 years ago

jballoffet commented 4 years ago

We currently don’t have any sample for Video 360 using this SDK. Thanks for requesting the feature. We'll put it in the backlog of features to consider on our roadmap.

Consti10 commented 4 years ago

Hello, I have created an example application that renders a 360° image using cardboard's undistortion model with vertex displacement distortion correction. Example Repository As explained here youtube video abut Vertex displacement distortion correction VDDC has many advantages on mobile devices and allows you to skip the intermediate render texture. Here is a screenshot of the test application I am using to validate my distortion corection: example_distortion_vertex_displacement

And here is a screenshot of the 360° image activity: example_distortion_360

If you want to compare it is possible to switch between intermediate render texture (gvr) and vertex displacement distortion correction

Consti10 commented 4 years ago

Since you are asking for 360° video, I am using RenderingXCore to render live video in this application: FPV_VR_OS

langbeck commented 4 years ago

@Consti10 I think https://github.com/Consti10/RenderingX/RenderingXCore may be defined as a private repository. I can't access it.

Consti10 commented 4 years ago

I think the link was just wrong. Fixed. You can also find it under 'example repository' from above.

khaojam commented 4 years ago

Hello, What about 360 video example on iOS? Thanks. ☺️

irwinwilliams commented 4 years ago

Here for a 360 video example, too, please. 🖐🏾

Consti10 commented 4 years ago

Hello, I have modified my example to play 360 video instead of images: Java code cpp code Note that I did not implement correct sync of video fps <-> OpenGL fps because my app is intended for live video streaming.

joshuaGnol commented 4 years ago

I am using SkyboxPanoramicShader from Unity Technology , it works well for me.

azizi436 commented 4 years ago

@joshuaGnol How did you add SkyboxPanoramicShader to your Android project? do you have any example?

joshuaGnol commented 4 years ago

Hi @azizi436 , you need to use SkyboxPanaromicShader it in unity. tutorial here To run in your Android app, unity have option to build into Android devices/ export as a aar lib and consume by your app.

kennylemon commented 4 years ago

What about 360 video example on iOS? +1 Thanks. ☺️

DaReign commented 10 months ago

There is really very good explanation from unity https://docs.unity3d.com/Manual/VideoPanoramic.html and youtube tutorial https://www.youtube.com/watch?v=RxlQnPcOoYc