kinect - Trackball [Solved]

Sep 12, 2013 at 3:01 PM
Hi, everyone,

I am new here and in kinect world, and I have a simple question. (I guess)

Using Helix3D I can zoom, rotate, etc by mouse. But is it possible using kinect?
Because I use:
<helix:HelixViewport3D CameraRotationMode="Trackball" ZoomExtentsWhenLoaded="False">

                            <helix:HelixViewport3D.Camera>
                                <PerspectiveCamera Position="0,0,0" LookDirection="0,6,0" UpDirection="0,0,1" NearPlaneDistance="0.01" FarPlaneDistance="1000" FieldOfView="57"/>
                            </helix:HelixViewport3D.Camera>

                            <helix:SunLight/>
                            
                            <ModelVisual3D Content="{Binding Model}"/>
                        </helix:HelixViewport3D>
And Kinect did not recognize.

Then I thought: "I need execute any code", but I was not able to find anything about this.

Can you help me?

Thanks
Sep 25, 2013 at 3:15 PM
Hi, everyone,

I get 2 ways to resolve my problem and I finished with the regular and the best way, using HelixViewport3D.CameraController.
But I completelly forget close this topic...

Well, thanks very much, because this tool is very simple to use.
Jun 10, 2014 at 2:07 PM
Hi,
    We also facing same issue. Can you please give more details how you resolved the issue, if possible can you share code snippet for the same.
Thanks
Sep 1, 2014 at 4:51 AM
Karuna, sorry by the time... I rarely see my email. :(

Well, I hope that you've already solved the problem.
But... here is my explanation:

As I needed finish the project quickly I just think: "Well I can rotate/move (Control) the Camera to solve my problem"

So I use this code to rotate the camera, where vector is a Vector3D calculated by Kinect Joints Position
helixViewport.CameraController.AddRotateForce(vector.X, vector.Y); 
And I use that code to zoom in/zoom out the camera, where force is a double value that I calculated by hands distance...
helixViewport.CameraController.AddZoomForce(force);
I hope that you solve your problem and my sincere apologies again (by the wait time).