You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

jl-krp

Intermediate

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

21

Wednesday, July 31st 2013, 11:00am

leaping

Hi
Got my Leap controller yesterday - leaping, er more like groping, towards controlling it
Has anyone actually managed to control a pano with one?
bw

JL

Tubbritt

Trainee

  • "Tubbritt" started this thread

Posts: 55

Location: Ireland

  • Send private message

22

Wednesday, July 31st 2013, 1:35pm

Hello.
Its relatively easy to control a pano, the only thing that is difficult is zooming in and out.

Install Touchless from Apirpsace on your computer. Run it in Basic Mode. Now to pan around your pano, open all your fingers and spread them apart.

To point on a Hot Spot, remove your hand and change it's shame to fist closed with your index finger out as a pointer.

Regards
James

jl-krp

Intermediate

Posts: 140

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

23

Thursday, August 1st 2013, 11:57am

more leaping

Thanks James
After trying with mac and win7 on my desktop I've had most success with a laptop and now have some very rudimentary control of a pano.
I look forward to software updates for the motion controller and to Klaus's krp plugin.

After some time one becomes aware of the weight of the hands which are unsupported unlike other drawing/writing activities. I'll try some acrylic and glass sheets and see if the controller can see the hands though them.

Regards

JL

24

Wednesday, August 21st 2013, 9:35pm

Regarding Oculus Rift support: ;-)
krpano Stereoscopic 3D / Oculus Rift Support

rey

Trainee

Posts: 44

Location: Tallinn, Estonia

Occupation: 360VR photographer

  • Send private message

25

Tuesday, September 17th 2013, 1:32pm

Hi all!

Any news here? Anyone succeeded in control panoramas using Leap Motion controller?

jordi

Intermediate

Posts: 486

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

26

Thursday, September 19th 2013, 11:14am

I'm on the way, I already did some nice improvments with communication between leapmotion and krpano, but still nothing to show...

You can check that :

http://vimeo.com/64691782
everpano.com step beyond 360

Tubbritt

Trainee

  • "Tubbritt" started this thread

Posts: 55

Location: Ireland

  • Send private message

27

Saturday, September 21st 2013, 2:06pm

I've tons of practice at this point using Krpano with Touchless and I can make it look effortless.

I would show friends and the odd client how it works. They are all blown away by what they see, but when they ask for a go and I let them, ho man it's funny to watch. They don't have a hope of controlling it with any ease.

A dedicated plugin is badly needed.

Regards
James

jeromebg

Professional

Posts: 796

Location: Angers - France

Occupation: Photographer

  • Send private message

28

Thursday, September 26th 2013, 7:07pm

Leap motion used to control krpano : http://www.dailymotion.com/video/x14w4fu…itone-2013_tech
Very basic function as it's hard for new users to use this device... left, right, up, down and click (hotspots automaticly selected when middle of screen.

Tubbritt

Trainee

  • "Tubbritt" started this thread

Posts: 55

Location: Ireland

  • Send private message

29

Sunday, September 29th 2013, 1:27am

Thanks for sharing that.

So little of Leap is shown that I'm afraid it just
teases me. lol...


Regards

James

jordi

Intermediate

Posts: 486

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

30

Tuesday, October 1st 2013, 12:15am

That looks amazing !! By the way, how do you know it's using krpano ?
It should be 3 slipteed screens which I m sure that can be done using js
everpano.com step beyond 360

jeromebg

Professional

Posts: 796

Location: Angers - France

Occupation: Photographer

  • Send private message

31

Tuesday, October 1st 2013, 12:33am

That looks amazing !! By the way, how do you know it's using krpano ?
It should be 3 slipteed screens which I m sure that can be done using js

The slipped screens are done with matrox display port.
You can see the virtual tour displayed here : www.explornova360.com

jordi

Intermediate

Posts: 486

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

32

Wednesday, October 16th 2013, 11:59am

leap motion is getting closer to HTML5

everpano.com step beyond 360

Tubbritt

Trainee

  • "Tubbritt" started this thread

Posts: 55

Location: Ireland

  • Send private message

33

Friday, January 3rd 2014, 2:50pm

Any update on this?
I would really like to get some good use for Leap Motion with Virtual Tours.

Regards
James

34

Friday, January 17th 2014, 9:47pm

Hi.
This is a very basic script that you can start off with. You'll be able to navigate left, right, top, bottom by holding your open hand
over the leap controller and tilting your hand left and right and up and down. You may want to change the numbers in the if statements
to something more comfortable. Obviously lots of room for improvement.

Have Fun!

The plugin code is as follows:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
var krpanoplugin = function () {
    var local = this,
        krpano = null,
        plugin = null;


    /* Register the plugin for use with Krpano */
    
    local.registerplugin = function (krpanointerface, pluginpath, pluginobject) {
        krpano = krpanointerface;
        plugin = pluginobject;
        
        initializeleapcontroller();
    }


    /* Clean up when unloading the plugin */
    
    local.unloadplugin = function () {
        plugin = null;
        krpano = null;
    }


    /* Detect clicks on the plugin [ NOT USED ] */
    
    local.hittest = function (x, y) {
        return false;
    }


    /* Plugin was resized from XML Krpano [ NOT USED ]  */
    
    local.onresize = function (width, height) {
        return false;
    }
    
    /* Initialize Leap Controller */
    
    function initializeleapcontroller() {
        
        Leap.loop(function (frame, done) {
            var hand = frame.hands[0];


            if (hand) {
                
                var x = hand.palmPosition[0],
                    y = hand.palmPosition[1],
                    z = hand.palmPosition[2];
		
                var pNx = hand.palmNormal[0],
                    pNy = hand.palmNormal[1],
                    pNz = hand.palmNormal[2];
		
                var pDxr = hand.direction[0],
                    pDyr = hand.direction[1],
                    pDzr = hand.direction[2];
                
                /* Tilting Forward and Backward Actions */
                
if ( pNz > 0.3 ) {
                    // Forward
                    krpano.set("vlookat_moveforce", "0.5");
                } 
                else if ( pNz < -0.3 ) {
                    // Backward
                    krpano.set("vlookat_moveforce", "-0.5");
                } 
                else {
                    // Steady
                    krpano.set("vlookat_moveforce", "0.0");
                }
                
                /* Tilting Left and Right Actions */
                
                if ( pNx > 0.3 ) 
                {
                    if ( pNx > 0.6 ) { 
                        // Fast Left
                        krpano.set("hlookat_moveforce", "-2.0");
                    } else {
                        // Left
                        krpano.set("hlookat_moveforce", "-0.5");
                    }
                } 
                else if ( pNx < -0.3 )
                {
                    if ( pNx < -0.6 ) {
                        //Fast Right
                        krpano.set("hlookat_moveforce", "2.0");
                    } else {
                        // Right
                        krpano.set("hlookat_moveforce", "0.5");
                    }
                }
                else {
                    // Steady
                    krpano.set("hlookat_moveforce", "0.0");
                }
            }
            else {
                // Hand is no longer visible then we stop all movement
                krpano.set("vlookat_moveforce", "0.0");
                krpano.set("hlookat_moveforce", "0.0");
            }
            
            done();
        });
        
    }
};



To use, include the leap library in the html tour file and lastly in the xml file include the following lines:


Source code

1
<plugin name="leapcontroller"	url="leapcontroller.js"	parent=""	preload="true"	x="0" y="0"	visible="true"	keep="true"/>

jeromebg

Professional

Posts: 796

Location: Angers - France

Occupation: Photographer

  • Send private message

35

Monday, January 20th 2014, 9:07pm

Great Stefan, great base for starting developing krpano/leap plugin !
Would be great if someone could do the same basic function in as3 as it looks the js plugin can't be used with the flash player...
here is the leap as3 ressource :https://github.com/logotype/LeapMotionAS3
sorry but I really don't know anything about as3....

thanx !

36

Sunday, April 6th 2014, 7:37am

A little issue

Thanks so much for the plugin but I am having a little issue.
I just go the device and I tried the code but I am getting this error with the latest release of KRpano

ERROR: decoding failed - leapcontroller.js

I have this in my html file
<script src="leapcontroller.js"></script>

And this in my xml file

<plugin name="leapcontroller"
url="leapcontroller.js" parent=""
preload="true" x="0" y="0"
visible="true" keep="true"
/>

and the code above is in a file called "leapcontroller.js" as suggested

What am I missing?

Thank you

jeromebg

Professional

Posts: 796

Location: Angers - France

Occupation: Photographer

  • Send private message

37

Sunday, April 6th 2014, 8:34am

You have to force html5 player, flash can't decode js.

38

Sunday, April 6th 2014, 7:27pm

You have to force html5 player, flash can't decode js.
Thank you all so much, the error is gone.
I don't mean to be a bather but I don't know so I ask so that I may know.
Can someone who has done it and gotten it to work give a step by step procedure on how they get the leapmotion to work with krpano.
1. Do I have to edit or modify any variables in the "leapcontroller.js" file?
2. I was getting a black screen until I remove "preload="true" from the plugin statement. I remove preload="true" and then I get no error but nothing happens.

Am I suppose to load something else?

I seem to be missing something.

Thank you

EDITED
I found this "Airspace" app for leapmotion that allows you to control the entire computer screen and it works OK (not great) when I load the VT in a browser.
https://airspace.leapmotion.com/apps/tou…windows/windows

This post has been edited 1 times, last edit by "thevtman" (Apr 7th 2014, 2:05am)


39

Saturday, April 12th 2014, 5:32am

I would really appreciate an example file if anyone has done this successfully, I have a leap motion sitting doing nothing because I bought it just for this.

Sorry to be one of those who ask questions but I call it the learning stage.

Thank you

dcc

Beginner

Posts: 12

Location: London

  • Send private message

40

Friday, May 16th 2014, 2:12pm

Leap Motion Success

Seems to be some FUD regarding how to use LeapMotion with KRPano, with some nice videos but no info. The included Touchless app is simpy useless for Panoramas, so I was excited to see some Leap KRPano code in this Forum, however just like others I could not get it to work with the “leap library”.




However hope is at hand with the Gamewave app (£3 on the Airspace Store) which is the only app which I have seen which does not emulate a jerky mouse. It has a steering mode ideal for panoramas, since it allows you to control actions with continuous hand movement, like a joystick. When it is correctly set up anyone could use it after a few minutes practise.




Setup is quite simple, since you do not need to set all the parameters for panoramas. Combined with the KRPano XML control code Gamewave is very flexible and can be precisely adjusted. At present I am using a right hand swipe to navigate panoramas and a left hand finger for hotspots. Have also made some KRPano key code calls to flick between little planet and normal view with my thumb.




I do not however intend using Leap with my computer when there is work to be done…


http://www.z360.com