How do I control camera(created in vred) with the vive tracker?

How do I control camera(created in vred) with the vive tracker?

Anonymous
Not applicable
576 Views
0 Replies
Message 1 of 1

How do I control camera(created in vred) with the vive tracker?

Anonymous
Not applicable

//Situation

I'm trying to create a mixed reality so that a 3d model exists on a real screen by attaching a vive tracker to a real camera.

For example, you might want to create a screen that overlaps a 3d car on a real car. The background is chroma keyed so that it receives the actual camera screen.

In order to work with the actual "GoPro" camera screen, I'm going to create a virtual camera in VRED to work with the tracker.

 

// Development environment

: Windows 10 64bit
: VRED 2020.1
: HTC Vive biz edition
: vive tracker
: GoPro (real camera)
: DISPLAY -> OPENVR HMD

: good at python but not used to 3D.

 

//Questions
Q1. In the OpenVRTracker.vpb code, I replaced the parameter of findNode(function) to the camera I created.    
     Change the tracker visible to True and not touch anything else.

     In the attached image, you can see the tracker attached toward the front of the camera. The tracker is a             attached to the top of the actual camera, so I want to turn the tracker's three legs to the top, not the front.

    I would be grateful if you could tell me python code or API function.

 

Q2. Often the camera and tracker are not attached and the camera is orbiting around the tracker, wondering

       if it's a bug. If it's not a bug, I'd be happy to provide some code that keeps the camera stuck

 

Q3. I would like to know if there is a better way to link the camera and tracker.
       If you have a good example to reference, I'd like to know the example name.

      vr/attachToTracker.py
      camera-fixed-object.py (1 ,2)


    I also referenced the example above, but attaching a camera node behaved strangely.
    As in the example, a box or a normal object works well, but it works strangely with only a camera attached.
    In the code, I changed the objects (box, teddy, and so on) to camera nodes.

 

Thanks.

0 Likes
577 Views
0 Replies
Replies (0)