Announcement

Collapse
No announcement yet.

Simple parallax scene

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simple parallax scene

    Hi guys,

    I'm new comer in VR/AR. I usually work on visualization on C4D, but i want to do some real time scene with the engine.

    I would like to track my head position like this:
    https://www.youtube.com/watch?v=h9kPI7_vhAU

    And remote the cam in the scene.

    Do you know any tutorial or any tips?

    Thanks a lot for your help,

    Best

    Axel

    EDIT, SOLUTION:

    I used a kinect V2 to track the head, with the plugin kinect4unreal:
    https://www.youtube.com/watch?v=TizTuZ2ZQTk

    Then I added this plugin to change the "lens shift X,Y" with some formulas, like this the view frustum plan stay at the same place
    https://www.unrealengine.com/marketp...ic-perspective

    Run on 4.18.3
    Last edited by axl-l; 04-18-2018, 03:57 AM.

    #2
    Hi, axl-l!
    You could use Kinect2 for head position tracking. Kinect2 gives you 3d-coordinates of a head position in meters. It's very precise and fast but it not for free. As alternative - OpenCV face detection and template matching algorithms. Much more painful way imho.

    Comment


      #3
      Hey Plastik21,

      Thanks for your response.

      I just bought a Kinect V2, I still need to modify it to get the connexion to the PC.

      I've read that the camera need a "camera projection matrix" in order to have a good illusion.
      I found some stuff on Unity, but not on Unreal.

      Do you know a bit about that?

      Best,

      Axel

      EDIT:
      Found this topic, but not clear enough for a noob like me..
      https://forums.unrealengine.com/unre...matrices/page2
      Last edited by axl-l; 04-09-2018, 07:56 AM.

      Comment


        #4
        What I'm looking for, fixing the camera frustum:

        https://static1.squarespace.com/stat...if?format=750w

        Seems to have a function in unity, but cant find the equivalent in unreal.

        Thanks for your help

        Axl

        Comment


          #5
          Originally posted by axl-l View Post
          Hi guys,

          I'm new comer in VR/AR. I usually work on visualization on C4D, but i want to do some real time scene with the engine.

          I would like to track my head position like this:
          https://www.youtube.com/watch?v=h9kPI7_vhAU

          And remote the cam in the scene.

          Do you know any tutorial or any tips?

          Thanks a lot for your help,

          Best

          Axel

          EDIT, SOLUTION:

          I used a kinect V2 to track the head, with the plugin kinect4unreal:
          https://www.youtube.com/watch?v=TizTuZ2ZQTk

          Then I added this plugin to change the "lens shift X,Y" with some formulas, like this the view frustum plan stay at the same place
          https://www.unrealengine.com/marketp...ic-perspective

          Run on 4.18.3
          Hi axl-l how did you figure out the formula for the lens shift?

          I'm trying to do the same thing, I'm already tracking the head position and the screen but I can't figure out the right way to keep the view frustum plane fixed using the fantastic perspective plugin, can you point me in the right direction?

          I have my camera position set to a fixed distance away from the target, and the target remains fixed, and I've downloaded the perspective plugin but I don't know how to figure out the proper ratio to shift the plane by.

          Comment

          Working...
          X