Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 21-Nov-2014 10:54:21

RasaMohamed
Member
Registered: 21-Nov-2014
Posts: 8

FPS Control With Leap Motion

Hi there,

I'm trying to achieve FPS control through Leap Motion. I searched lot but there is no reference and also I referred  some of Projects in OpenSpace3D but that things are not resemble to FPS control, so Anyone guide me or provide some sample project for this. I need control FPS control through LeapMotion

Swipe Up     - Walk Forward
Swipe Down - WalkBack
Swipe Left    - TurnLeft
Swipe Right  - TurnRight

Like This I'm trying . . .

Else Give some reference for moving Main camera to Forward, Backward, Left, Right with Leap Motion Gestures so that its looks like character is walking.

Cheers. . .

Last edited by RasaMohamed (21-Nov-2014 12:47:35)

Offline

#2 21-Nov-2014 16:14:32

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: FPS Control With Leap Motion

Hello,

I suppose you want that the leap control the moves with the hand, but based on relative moves.
with gestures it won't be easy to stop it.

you can try that :

leap.first hand velocity -> vector multiply.in
with parameters of vector multiply plugit set to x -1 y -1 z 1

vector multiply.out -> fps controller.Control
with link paramerter set to :
0 0 $2
$3 $1 0

and
leap.first hand lost -> fps controller.Control
with link paramerter set to :
0 0 0
0 0 0

for the Z value you could use a var plugit to get the hand pos when it's detected and compute relative moves.

Offline

#3 24-Nov-2014 07:22:32

RasaMohamed
Member
Registered: 21-Nov-2014
Posts: 8

Re: FPS Control With Leap Motion

Yes, I had try this and all after that only I came here for your HELP, There is no big difference it's just moving left and right slightly.

Look, Gesture is not an issue for I have to control Full things of FPS. Regarding Gesture we may took like this

Left Hand is to Control like mouse   And

If I show Right Hand 1st Finger is to Idle

If I show both Right Hand 1st finger and Middle Finger is to Walk

Offline

#4 24-Nov-2014 11:06:29

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: FPS Control With Leap Motion

ho ok,

I added events on finger found / lost
will be in 1.8 version that come out during this day.

Offline

#5 24-Nov-2014 11:38:45

RasaMohamed
Member
Registered: 21-Nov-2014
Posts: 8

Re: FPS Control With Leap Motion

Ya I'm awaiting for that .....

Even If we got separate Events for Fingers then how can we handle within the FPS . . .

Offline

#6 24-Nov-2014 11:42:05

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: FPS Control With Leap Motion

you should use switch or var plugit to keep and detect the desired state

Offline

#7 27-Nov-2014 08:09:05

RasaMohamed
Member
Registered: 21-Nov-2014
Posts: 8

Re: FPS Control With Leap Motion

Yes, I did it partially, It works for only one thing either Forward and back or Right and left  panning.

what I did is controlling left and right panning through circle left and right progress Gesture using switchcase and values
0 0 0
0 -1 0   and
0 0 0
0 1 0

where as for Forward and back panning through the middle finger found and lost is not working with value
0 1 0
0 0 0

refer Screen shot. Any ideas.... what I have to do now...
FPS

Offline

#8 27-Nov-2014 09:30:24

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: FPS Control With Leap Motion

Hi

to move forward you should use :
leap.middle found -> fps.control
0 0 -1
0 0 0

and leap.middle lost -> fps.control
0 0 0
0 0 0

also don't forget to set to
0 0 0
0 0 0
on circle gesture end

Offline

#9 27-Nov-2014 10:28:00

RasaMohamed
Member
Registered: 21-Nov-2014
Posts: 8

Re: FPS Control With Leap Motion

Yes, I did as you told but its not working for found and lost gesture whereas I changed Circle gesture to Forward and back is working perfectly.

Gesture Circle left and right is for panning left and right  means which gesture is suitable for walk forward and back and how it should implement.

I tried swipe left and right also but no use...

roll

Offline

#10 27-Nov-2014 10:30:25

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: FPS Control With Leap Motion

just tried it it works for me.

you must have something bad somewhere.
try to remake from scratch

Offline

Board footer

Powered by FluxBB