Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question VR 360 video on android mobile, how?

Discussion in 'VR' started by manscomgamedesign, Dec 5, 2022.

  1. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
    I currently need to make a simple 360VR video on Android mobile, I followed the steps of create a 360 videos with video player component (already tried both the flip normal sphere or use a render texture skybox) to play out the video. And then I also enable the virtual reality support option in Unity 2018.4.36f1. Things were working fine in the Editor, but after I build the app on my phone, I got a fully black screen on my phone (did not even know if the VR feature is working out), but the music from the video is still working,

    What is this problem and how should I solve it?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,530
    Is there a reason you use an ancient version?
    I thought cardboard also had an xr manager plugin
     
  3. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
    Hi there,

    Actually I already tried versions from 2018-2021, but non of it works out when use virtual reality support builds.

    If I build with a older version, 2018-2019 with the older virtual reality support option, then I can run the application on my phone but getting a fully black screen issue.

    If I build with version above 2019, then I need to use the new xr plugin management, but when I use it, the application crash every time when I open it.

    Because this is my first try on VR, I actually don’t know much about it, I want to ask for android mobile VR, do I have to use Google VR sdk for the build? Basically I just want to make a simple 360video that I can use the VR head tracking to see the video on a phone.

    exactly like this YouTube example :


    I don’t even need the muti pass render on the phone.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,530
  5. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,530
    so not VR
     
  7. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
    but I need the video rotate around with the head, this has to be a VR feature right?
     
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,530
    So just rotation from the gyro?
     
  9. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
    finally got the word, gyro is the thing that support the 360 rotation on the screen like a head rotation, and yes, I just need that to work. How should I do this?
     
  10. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,530
  11. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
    DevDunk likes this.
  12. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    771
  13. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
  14. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    771
    Which version of Android do you have? Think the plugins supporting Vulcan requires Android 7. (I would rather have that as an option to not have to drop "old" Android 6 yet)
     
  15. manscomgamedesign

    manscomgamedesign

    Joined:
    Feb 17, 2021
    Posts:
    37
    for Unity, I separate all the sdks, NDK and openJdk that works for each of Unity version.

    For the phone, I got both the older and new version of Android.

    but all the vr builds from above Unity 2019 were not working on the phones.

    but as long as I found out my project only require the gyro feature, I just stop bother the Vr thing for now.