Jump to content

leapMotion implementation possibility


Kariyann71

Recommended Posts

Hi everybody,

 

 

[2nd June EDIT]

New version 1.20 :

https://github.com/kariyann/DCLeap/tree/master/DCLeap/LatestRelease

Recoded knob function

Degug Log function

Kneeboard feature (advise you to download this https://github.com/rkusa/dcs-scratchpad)

 

Now compatible with Oculus, you’ve to force SteamVR with the --force_steam_vr command line

 

 

 

[19th January EDIT]

New version 1.11 :

https://github.com/kariyann/DCLeap/tree/master/DCLeap/LatestRelease

Better knob behaviour

Ability to show hands

New cursor offset setting

 

[13th December EDIT]

New version available 1.09:

https://github.com/kariyann/DCLeap/tree/master/DCLeap/LatestRelease

Modification of the sensitivity management of the "pinch - pinch" gesture

Also modified the management of the mouse control script, possibility of improvement for Rift and Pimax users.

I'm waiting for your feedback.

 

[23rd November EDIT]

Removed blue text "Right Click Available" and replaced by blue cubes.

Change ESCAPE key to RCTRL + ESCAPE to quit DCLeap, this will avoid parasite comportment when going to Pause Menu in DCS.

Changed Index trigger / click logic.

 

[17th November EDIT]

DCLeap is now available as first v1.0 release. Unfortunately, DCLeap is not compatible with Oculus and PiMAX, I'm waiting feedbacks from HTC users.

You'll get the ability to move your mouse cursor with your hands, set sensitivity on both axes X and Y.

Knob rotation is executed with pinch movement, then cursor is paused and you have to rotate your palm (maintain pinch) to turn the knob. You can set the sensitivity in the main menu.

You can also set the pinch sensitivity in the main menu.

Two new gesture have been added, Recenter (close both right and left fists) and automatic startup (index finger pointing to the sky during 2 seconds. Mind to map this two new command in DCS (see DCLeap Help Menu).

 

[27th Octobre EDIT]

Removed "RightClick avalaible" when no hand are designated to control the mouse.

Added catapult align gesture with thumb up.

Other minors modifications.

 

Be warned that if you change a toggle box, you will need to inform new resolutions before saving, otherwise your changes will not be taken into account (will be corrected in the future).

 

Here's a video showing carrier operation with the Hornet. I added hands in overlay in order to illustrate the gestures.

 

[14th October EDIT]

Pinch gesture and index trigger are now disabled when hand tracking is disabled.

"Right click available" text is now shown when palm is facing HMD

Introduction of catapult shoot gesture (based on the salute gesture), "Catapult Shoot !" is displayed on the right top of the HMD when triggered

Manual update

 

[11th October EDIT]

Updated installation instructions:

1) Be sure to have installed https://github.com/cbuchner1/driver_leap and https://github.com/SDraw/driver_leap

2) Open the 7zip file, uncompress the archive where you want and launch DCLeap.exe.

3) Double click DCLeap.exe

4) Choose windowed mode in the Default Unity window and press Play!

5) You will show the DCLeap's Main menu, and first of all you need to enter the width and height resolution of one of your HMD screen (WMR 1440*1440 - Oculus Rift 1080*1200 - etc...).

6) Press the Save Settings button, it is needed to register your resolution in the registry. DCLeap will use these registry keys.

 

After you can check the help menu to understand the basic gestures.

Click Start to start the application, after that remember to Alt Tab to get DCS window on top of the screen.

You will see 2 colored cubes on top of your HMD device screen, extend all fingers of one hand and face the palm in front of you to disable this hand and control the cursor with the other hand.

You can access the main menu to pause or quit by pressing ESCAPE on your keyboard.

 

Known issue :

sometimes, cursor goes out the DCS window and DCS goes background, so you cannot continue to control the game, just ALT TAB to go back to DCS.

 

Back in 2018

do you think it could be possible to get a cockpit model from blender, export it to unity, add interaction stuff (LeapMotion and InteractionEngine with InputEmulator), compile it to run in Steamvr background ?

The idea is to send keystroke when LeapMotion controler interact with this app, then interact with keymapping used in DCS.


Edited by Kariyann71
change post's name

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

I know these Apps, that’s why I started wondering to include a 3D model instead 2D model like virtual button use. I succeed in importing f18 cockpit with blender, configuring button collision to send keystroke. All works nicely but now I would like get this unity app to run in background or to be shown as DCS overlay, like virtual button. But as my app is based on 3D model, I’m not sure this could be work. Any idea ?

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

This basically proves of concept and functionality if ED wants to implement VR hands in the cockpit. All this is already built in any module. The only thing we now need is 3D mouse cursors like in this videos.

DCS is a hi-end simulation with the even higher price but unfortunately without finish quality expected under this price range.

 

ED wake up and give us what you charging us. Our dedication is deserving that.

Link to comment
Share on other sites

I would like to know the who created VirtualButtonBox, because I don't undestand how to HeadlessOverlay ToolKit.

If he's looking this post...:music_whistling:

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

Here's my very early dev on LeapMotion integration.

https://www.youtube.com/watch?v=A562fnJOmIg&feature=youtu.be

I've to deal with some camera settings now.

Next step, push button interaction


Edited by BIGNEWY
fixed youtube

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

Let me know if u want a tester

That's my il2 video above using the virtual button box (it has since stopped working for me with updates to vive firmware )

Here's my very early dev on LeapMotion integration.

https://www.youtube.com/watch?v=A562fnJOmIg&feature=youtu.be

I've to deal with some camera settings now.

Next step, push button interaction

 

Sent from my SM-G925I using Tapatalk

Link to comment
Share on other sites

I’m making small progress but I still have lot of work. But it’s not a problem cause I really want to do something useful with my Leap.

More than testers, it would be nice to get more hands to help me handle with unity and Leap.

If someone want to join I could push him the current project.

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

Trying to match a 3d model of an f18 out of game with the in game 3d model seems like an exercise in extreme patience or even futility for both you and then the user when they try to recenter their view in game ...

Is the model you used in blender come from dcs files ? If not they may not even match dimensions

 

Sent from my SM-G925I using Tapatalk


Edited by jimiC
Link to comment
Share on other sites

leapMotion implementation possibility

 

That’s exactly what I was wondering about. I will give a test with panels like button box but I’m not sure that It will work as I intend.

I want to implement buttons and toggles switches in 3D to interact with like in real life and give a better experience tu users.


Edited by Kariyann71

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

Yes sorry should have been more clear

 

Perhaps still 3d models (if it works in steam vr) but make separate panels that can then be moved about to adjust for user perspective rather than one rigid cockpit model that can't be adjusted ?

 

Sent from my SM-G925I using Tapatalk

Link to comment
Share on other sites

I didn’t have a lot of time past week to continue this project. I’ve got many issues solved recently and I hope have more time this week. I don’t want to promise too much but I expect to post a video of the current state of my progress by the end of this week.

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

I can't tell you how excited I am that someone is taking this project on! I just wanted to leave a message to provide one more voice of encouragement. I can't write code but despite that I am computer savvy. I have a lot of experience in Blender but minimal in Unity. I'm most experienced in Rhino 3d if that could be useful. I have created three Virtual Button Box profiles now and what a pain that is! Although the finished product works great, I would love an alternative.

Link to comment
Share on other sites

Berserk what language are you working in I have visual studio from ms a couple of different versions I’m fluent in vb but after some wrk might be able to get with c I took a. Course in programming that used java about 15 years ago and got an A from Park college. If you want some help.i also have the leap motion device

BlackeyCole 20years usaf

XP-11. Dcs 2.5OB

Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram

 

 

New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.

Link to comment
Share on other sites

  • 2 weeks later...

BlacleyCole,

I'm an impostor, I use Unity with assets, I manage these and only write some piece of C# to get virtual keyboard input.

I spent to many time last days trying to deal with SteamVR / DCS position reference but this drive me crazy. So I recenter my work on getting panels with push buttons.

 

See below :

https://www.youtube.com/watch?v=I6jED9v-8os&feature=youtu.be

 

Sorry for the quality, this is my first VR video.

As you can see, when I try to use UFC Bottom's buttons, nothing is happening.

This piece of code work

        public void PressButtonNumpad7()
       {
           //Press Numpad 7
           sim.Keyboard.KeyPress(VirtualKeyCode.NUMPAD7);
       }

This one doesn't

            public void PressButtonA()
       {
           //Press Enter
           sim.Keyboard.KeyPress(VirtualKeyCode.VK_A);
       }

 

Next step is to set a working knob button.


Edited by Kariyann71

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

Nice work Berserk.

 

 

Will be good if some more people join and help with this. It is obvious that this is possible to be done. We just need more support from the community.

I come from the ArmA community where modding is a way of using the game. People doing miracles but here on DCS comunity... I didn't see more inert community than here. Come one people move your self and join in the effort. This could be something beautiful.

Link to comment
Share on other sites

  • 2 weeks later...

leapMotion implementation possibility

 

I use the BenOtterOVRlay http:// https://github.com/benotter/OVRLay.

Icebeat, you’re right, sharing this project is probably the best way to make it progress quickly and surely better. Indeed I’m very busy a work these past weeks and this fall I will be very busy.

Is there anyone comfortable with the github platform ??


Edited by Kariyann71

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

  • 2 weeks later...

i have leap. they had that update like 3 years ago or something which i tried it again early this year and found that the leap works descent when you place the sensor on the desk, but i place it on my rift and move around, it is effin janky...

 

how is the leap functionality now a days, has there been any recent updates? i bought that when it was kickstarter 4 or 5 years, it has been a dssappointment ever since it came out. they want to put an app store, and it didnt work well to subsitute a mouse.. garbage

find me on steam! username: Hannibal_A101A

http://steamcommunity.com/profiles/76561197969447179

Link to comment
Share on other sites

  • 2 weeks later...
How about using something like http://uwyn.com/gamewave/ or other leap motion mouse emulators for mouse control and using DCS's built in mouse pointer for the switch location problem.

 

 

 

I tried this way but I was not satisfied. Gamewave is not so bad but it is optimized to use LeapMotion in the desktop mode, that’s why accuracy was not perfect.

Now, with the Onion version of the leap motion, I’m sure we can do something very great with a head mounted type device.

Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3

HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...