ajayyy / Wiimote-FreePIE-VR-Controls

FreePIE plugin to try to make the Wiimote work as a SteamVR controller with a Leap Motion
32 stars 1 forks source link

Lots of missing plugins and compenents #4

Open guillaumeproulx opened 7 years ago

guillaumeproulx commented 7 years ago

hello, I've tried your wiimote-FreePIE-VF-Controls and when I try to run your script, many errors appear. I attach a picture to show the situation. Thanks for reading. capture capture

ajayyy commented 7 years ago

Could you change the language to english so I can understand the errors better? Also, could you show me the errors that are hidden because it is not scrolled? (You sent 2 identical images)

guillaumeproulx commented 7 years ago

I fixed the errors by using a different Dolphiimote.dll found on the freepie git and now my wiimote appears but the orientation value is stuck at PI and 0. capture 2

ajayyy commented 7 years ago

See: https://github.com/ajayyy/Wiimote-FreePIE-VR-Controls/issues/1#issuecomment-330001698

Does adding that at the top work?

Also, do you have a normal wii remote or a wii motion plus?

guillaumeproulx commented 7 years ago

No, It gives me this capture 3 Also, I'm using a wii motion plus adapter on a normal wii remote capture 4

ajayyy commented 7 years ago

Did you try it with wiimote_leap_vive.py also?

guillaumeproulx commented 7 years ago

Yes, I have both py running at the same time.

guillaumeproulx commented 7 years ago

capture 5 capture 6

ajayyy commented 7 years ago

Ok, you should only need to run one at a time. I have added 2 more files to the repo, try the no gyro one, this one uses the leap gyro instead of the wiimote gyro so it should work, but might be a little more buggy.

These files I added were made by sstf and he said "In This file, some games worked fairly good."

About "wiimote_leap_vive_2.py", he said "In this file, wiimote is return gyro values only one side, That is late model wiimote(Nintendo RVL-CNT-01-TR).

To make matters worse, often not return gyro values. and my vive wands is rampage. Because Gyro values is Drifting."

One of his controllers was not wii motion plus so that one might work for you too

EDIT: looks like wiimote_leap_vive_2.py might just be the same as wiimote_vive.py

guillaumeproulx commented 7 years ago

The no gyro one is still stuck capture 8 but the wiimote leap vive 2 works capture 9 except that the pitch grows slowly when the wiimote doesn't move and the roll grows quickly (both in the negative).

ajayyy commented 7 years ago

Oh, that's what sstf meant by extreme drift probably.

What do you mean the no_gyro one is stuck?

guillaumeproulx commented 7 years ago

My bad, I didn't think the no gyro meant the gyro values would be static.

ajayyy commented 7 years ago

Yea, try that in vr. It doesn't use the wiimote gyro at all

guillaumeproulx commented 7 years ago

I'm currently trying to do the steamVR Tutorial via VRidge but it doesn't seem to receive any input from the wiimotes. Is there another script to run so that steamvr will see the input as from vive controllers?

ajayyy commented 7 years ago

do you have the hydra driver installed? the wiimotes should appear as razer hydras in steamvr

guillaumeproulx commented 7 years ago

Yes, but maybe I didn't change the dll files correctly?

ajayyy commented 7 years ago

You can try running the sixsense hydra tester, it is a little easier to test with.

Pretty sure it's in the SDK here: http://sixense.com/sixensesdk

Also make sure you copied the sixsense fake.dll, and renamed it to replace the already existing dll

ajayyy commented 7 years ago

I think it's the one at SixenseSDK_102215\samples\win32

guillaumeproulx commented 7 years ago

Thanks for the path, but it only shows this : capture 10

ajayyy commented 7 years ago

Did you put in the fake sixsense dll

ajayyy commented 7 years ago

Also I think you have to click on the screen to bypass it, or maybe click a button on the wiimote, I forget

guillaumeproulx commented 7 years ago

I changed the sixense dll but do i also have to change the sixensed dll?

ajayyy commented 7 years ago

what?

guillaumeproulx commented 7 years ago

I already had changed the sixensed dll but I had found suspicious the presence of sixensed dll capture 11

ajayyy commented 7 years ago

Replace it here image

guillaumeproulx commented 7 years ago

Where does your sixense dll come from? Mine is 608 KB while yours is 405 KB

ajayyy commented 7 years ago

It's a different path, look at the path I'm at

Also, I have not replaced it with the sixsense fake.

guillaumeproulx commented 7 years ago

I'm still stuck on the grey screen even tough I press every button on the wiimote, enter or with the mouse

guillaumeproulx commented 7 years ago

In the sixense_simple3d, it seems the orientation values are in rad while the ones given by FreePIE are in degree. What should I change in the wiimote leap vive 2 py to change the output from degree to rad?

ajayyy commented 7 years ago

Ooooh, that would make sense. I'm not 100% sure how that one works since I didn't write it but I can look over it and see if I can find the place you need to edit.

ajayyy commented 7 years ago

Looks like line 212 and 437 would need to be changed

ajayyy commented 7 years ago

One degree is 0.0174533 rad so just multiply it by that

guillaumeproulx commented 7 years ago

Perfect thanks! I also changed the value to negative for all hydra[i] at 437. How do you think would I change the position so they are on me. capture 12 They seem to be too far away to see them in SteamVR

ajayyy commented 7 years ago

You might want to try uncommenting line 457, looks like that would be tracking it. But, there might be a reason it's commented out

BritishLad commented 6 years ago

@guillaumeproulx how did u fix there errors at the beginning, i have the same

any help?