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.
Pages: 1
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
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
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
Ya I'm awaiting for that .....
Even If we got separate Events for Fingers then how can we handle within the FPS . . .
Offline
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...
Offline
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
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...
Offline
Pages: 1