Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Oculus rift and Cinemachine

Discussion in 'Cinemachine' started by RennanRdC, Oct 13, 2017.

  1. RennanRdC

    RennanRdC

    Joined:
    Sep 2, 2015
    Posts:
    13
    How do i use cinemachine with oculus rift? When i use it, i got this error and the cinemachine features not work. Scene open normaly upload_2017-10-13_16-2-55.png
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Both Cinemachine and VR are trying to drive the same camera at the same time. Put the VR on one Camera, and the CinemachineBrain on another.
     
    Tobber14 and BlasMena like this.
  3. RennanRdC

    RennanRdC

    Joined:
    Sep 2, 2015
    Posts:
    13
    `But cinemachine moviment will work?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Cinemachine will drive the camera with the Brain, the other camera will be driven by VR. They are independent. With VR, the headset is normally used to control the rotation of the camera. It seems a little strange to be wanting to use Cinemachine in this context, unless you're wanting to position the headset with it. What would you like it to do for you?
     
    Tobber14 likes this.
  5. RennanRdC

    RennanRdC

    Joined:
    Sep 2, 2015
    Posts:
    13
    I want to use cinemachine dolly track and camera cut system
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Do camera cuts make sense in VR? To suddenly snap the VR headset somewhere else? Seems like overkill to me. Just change the transform. Unless you need some other features?

    For the dolly track, you can use it without virtual cameras. In the Cinemachine menu, there is Create dolly Cart with track (or something like that). You can make a track, and then use the cart to move along it. Put the VR headset in the cart.
     
  7. RennanRdC

    RennanRdC

    Joined:
    Sep 2, 2015
    Posts:
    13
    I like smooth cinemachine cuts.. better do lerp?
     
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    ah, I understood a cut to be instantaneous.
    If you want the VR headset to smoothly transition from one location to another, you can do it with Cinemachine, but you would have to wrestle with it a little because as I mentioned, Cinemachine and VR are both trying to control the camera at the same time, and are in some ways mutually-exclusive. That said, you could probably persuade them to work together if you really want. Alternatively, you could try Vector3.SmoothDamp to do your transitions.
     
  9. RennanRdC

    RennanRdC

    Joined:
    Sep 2, 2015
    Posts:
    13
    where is that? i cant found: Create dolly Cart with track
     
  10. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
  11. RennanRdC

    RennanRdC

    Joined:
    Sep 2, 2015
    Posts:
    13
    Ohh, i dont get that upload_2017-10-17_16-23-16.png
     
  12. RennanRdC

    RennanRdC

    Joined:
    Sep 2, 2015
    Posts:
    13
    Updating.. lmao
     
  13. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
  14. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    Is the workflow described in this thread still up-to-date? Thanks
     
  15. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
  16. srinivasra

    srinivasra

    Joined:
    Oct 16, 2020
    Posts:
    1
    Appreciate it. I'm kinda starting to figure that out over the past few days after I dumped trying to force it. I just put the Camera in a game object and I've been animating that movement. Which is probably another horrible way to go about it lol