User Tag List

Results 1 to 16 of 16

Thread: Cardboard

  1. #1
    0
    Infiltrator
    Join Date
    Mar 2015
    Posts
    19

    Lightbulb Cardboard

    Because https://answers.unrealengine.com/questions/180804/how-to-use-get-input-motion-state-to-look-around.html is almost a little bit unsorted, i decided to start a forum thread to continue discussion.
    (It is about how to "simulate" a google cardboard application with unreal. I attached a working example)

    I uploaded my project file here :
    https://www.dropbox.com/s/bwmufuk3clqmyox/BasicVR.zip?dl=0

    Version 0.2
    https://www.dropbox.com/s/4yyrqiuomxfpjah/BasicVR_02.zip?dl=0
    Last edited by DRob; 10-17-2015 at 02:24 PM.

  2. #2
    0
    Hi DRob,

    That's a nice contribution.

    If I was to make a suggestion...

    In VR, performance is paramount.

    It looks like you've opted for the 2 virtual cameras in game for this. Whilst that is fine, it may not be the most performant or easiest to manage rout.

    Have you taken a look yet at the SimpleHMD implementation? This uses a similar pipeline to the other HMD implementations (Gear VR, Oculus etc) Building off that as a starting point might be a strong bet.

    Best,
    Minxies

  3. #3
    0
    Just got it working on my Nexus 5. Looks like you hit a Gimbal Lock issue with your pitch. Yaw looks fine but roll is non existent.

    To resolve these, I'd recommend looking at the Google Cardboard SDK and using that for your device rotation values. It is open source but it will involve hacking at the UE engine's source code.

    Best,
    Minxies

  4. #4
    0
    Hi Mixie.
    All the movements run fine and smoothly in my Nexus 5. Did you tested compiling directly from DRob's project?

    Rob, thank you a lot, really, for giving a project that finally works from all treads that I could read. It's seen that you solved a lot of problems exposed in all VR threads.
    Using 2 players instead of the SimpleHMD implementation, which have a really poor reference material, was very smart from you.
    Thanks again!

  5. #5
    0
    Infiltrator
    Join Date
    Mar 2015
    Posts
    19
    Thank you for testing. Im on vacation/holidays now. I will fix the issues next weekend. It was just a point to start :-)
    The lock you described is because i locked rotation from -90 to 90 degrees. Roll isn't implemented but should not be a problem.
    Technical the idea here is to spawn a second player (splitscreen) and sync his movement with the first player. (But putting him a little bit to the right). If this setup runs stable i will look into the simplehmd plugin.
    Greetings
    Drob
    Last edited by DRob; 10-11-2015 at 09:33 AM.

  6. #6
    0
    Any progress on this project yet? I'm just starting to learn Unreal and so far I'm having a hard time finding examples for google cardboard that work well. I really don't want to have to go to Unity just to develop for cardboard. So I hope there is still progress being made on solving the remaining issues with cardboard and unreal.

    Cheers!

  7. #7
    0
    Infiltrator
    Join Date
    Mar 2015
    Posts
    19
    I fly to my hometown today. I will try to fix issues this weekend. So "yes" there is still progress. :-)

  8. #8
    0
    Infiltrator
    Join Date
    Mar 2015
    Posts
    19
    I edited my first post. I tried to implement "roll" feel free to test it. It works but i think it is not perfect.

  9. #9
    0
    Hi I am a newby in UE4 and I am very happy for the results of your demo.

    I have 2 questions to make.

    1. Can I disabled the substance plugin dialog that opens every time I open the project on editor and on my android phone?

    2. Can I use a bt controller (to move around) or with an otg keyboard connected to the phone ?

    Thanks keep up the good work.

  10. #10
    0
    Infiltrator
    Join Date
    Mar 2015
    Posts
    19
    Hi,
    i'll try to answer.
    1. Yes you can do it this way :
    Open the project. In top menu choose "Edit" and then choose "Plugins".
    Go to "Editor" somewhere there should the substance plugin be visible. Simple uncheck it.

    2. You need to open the FirstPersonCharacter blueprint.Here you can see the whole movement behavior.
    I think bt controller should already work.
    You need to extend this blueprint with your movement wishes (It is the same as all other templates)
    Example : Create a key node and wire the "pressed connector" to Add Movement Input.

    I prefer gestures to move. I dont use keyboard or controller.

    Greetings.

  11. #11
    0
    Hey dude,ur link is unlinkable, can u share ur project link here again??
    thank u very much!

  12. #12
    0
    Infiltrator
    Join Date
    Mar 2015
    Posts
    19
    Hey,
    what means "unlinkable" ? I tried both links and they are still work.

  13. #13
    0
    Quick update from the horses mouth:

    https://youtu.be/s54vIBeG1js?t=1h4m39s

    Doesn't look like 4.11 is going to get Cardboard support.

    Regards,
    Minxies

  14. #14
    0
    Great news, official Google Cardboard support seems to be coming to the engine!

    See here: https://www.reddit.com/r/oculus/comments/4iq3rq/androidvr_likely_to_be_announced_next_week_at/

    It looks like the existence of a new "AndroidVR" (Google Cardboard) plugin was leaked in the breakdown of the latest 4.12 Preview 3 release notes.

    This note has since been pulled.

    It is slated that the Google Cardboard SDK will be relaunched as AndroidVR this coming Google IO.

    From the looks of it, AndroidVR looks to be a collaboration of sort between Epic Games and Google.

    Best,
    Minxies

  15. #15
    0
    Infiltrator
    Join Date
    Jun 2015
    Posts
    14
    Some different unofficial workarounds to try out for now:
    1) http://www.reddit.com/r/oculus/comments/23gp2m/enable_stereo_distortion_in_ue4_without_the_rift/

    2) "Unreal Engine 4 supports all the major devices and you don’t need to perform any hassle to setup your project for VR. Just make sure that the correct plugins are loaded for your HMD under Edit > Plugins."
    From there find "Virtual Reality" category fromenable "basic HMD" plugin (stereo quality is quite bad)
    After that "Play game as" Menu in Unreal Engine will have non-grayed out Virtual Reality (stereo) mode (where you normally can choose Play In Editor or Stand Alone mode, etc)

    3) Community Plugin for Cardboard (not sure if its updated/works)
    https://github.com/NivalVR/UE4Cardboard

    4) https://forums.unrealengine.com/showthread.php?87236-Cardboard
    by DRob

    that is all just about "stereo" mode, controlling using sensors is not supported, probably.

  16. #16
    0
    Infiltrator
    Join Date
    Aug 2016
    Posts
    11
    Hey DRob, I liked your project a lot, and actually I would like to print text on screen in cardboard mode but if I add a trigger, the FirsPersonGameMode doesn't allow to fire the trigger. If I change to the standar GameMode in project settings the trigger is fired but the display works weird.. Could you help me? I would be very grateful..

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •