Search Unity

Vuforia Ground Plane and GearVR

Discussion in 'Vuforia' started by De-Panther, Jan 21, 2018.

  1. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    589
    Hey,

    Just did a little test with the new Ground Plane and Samsung Gear VR on Galaxy S7.
    Got positional tracking on mobile VR :)

     
    Vuforia-Strasza likes this.
  2. aggietech

    aggietech

    Joined:
    May 24, 2017
    Posts:
    1
    Cool awesome! On my last try, the augmented objects moved with me, what did you do to make the objects stay in place?
     
  3. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    589
    The ARCamera show only the VideoBackground, and I added MainCamera under a parent object. Then I set the position of the parent object, to the position of the ARCamera, and set the rotation of it to be the difference between the headset rotation and the ARCamera rotation
     
  4. danielesuppo

    danielesuppo

    Joined:
    Oct 20, 2015
    Posts:
    331
    Hi De-Panther, good job!
    I'd have 2 questions if you can help me...
    1) What do you mean with
    ?
    Did you made some changes by script to the ARCAmera?
    2) And what do you mean with
    ?
    Did you parented the parent object to the ARCamera (for me it's not working)? Or did you link it by script?
    Thank-you!
     
  5. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    589
    Set the camera Culling Mask to a specific layer, and set the GameObject of the camera and it's children to use this layer.

    A little script that follows the ARCamera...
     
  6. danielesuppo

    danielesuppo

    Joined:
    Oct 20, 2015
    Posts:
    331
    Thank-you!
     
    De-Panther likes this.