kinect - Trackball [Solved]

Anonymous 9 years ago updated by Øystein Bjørke 9 years ago 1
This discussion was imported from CodePlex

MrNikito wrote at 2013-09-12 17:01:

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">

                                <PerspectiveCamera Position="0,0,0" LookDirection="0,6,0" UpDirection="0,0,1" NearPlaneDistance="0.01" FarPlaneDistance="1000" FieldOfView="57"/>

                            <ModelVisual3D Content="{Binding Model}"/>
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?


MrNikito wrote at 2013-09-25 17:15:

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.

karunakarreddy123 wrote at 2014-06-10 16:07:

    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.

MrNikito wrote at 2014-09-01 06:51:

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...
I hope that you solve your problem and my sincere apologies again (by the wait time).