Hydra emulation through PSMove + navigation controllers
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Hydra emulation through PSMove + navigation controllers
Hi guys!
I recently posted this idea in physical VR tools but there is no movement at all there
I'm planning to emulate Hydra/STEM through psmove + navigation controller setup for each hand.
I've recently seen this project idea[1] but looks like the DUALPlay project did not suceed with their campaing.
I plan to use the psmove only for the tracking orientation + position and other controller like the navigation controller attached for the joysticks and the buttons emulation. I'm looking for a way to build myself an attachment similar to the dualplay one.
Currently and thanks to FreePIE looks like Hydra emulation could be done and I'm working to integrate psmove api into freepie right now.
Unfortunatelly looks like the only software that supports the navigation controller/sixaxis/dualshock 3 is motion in joy so I'll have to use it to get the data from the navigation controllers (and use one extra bt dongle exclusively for this software)
Tips or other approach ideas are welcome.
I recently posted this idea in physical VR tools but there is no movement at all there
I'm planning to emulate Hydra/STEM through psmove + navigation controller setup for each hand.
I've recently seen this project idea[1] but looks like the DUALPlay project did not suceed with their campaing.
I plan to use the psmove only for the tracking orientation + position and other controller like the navigation controller attached for the joysticks and the buttons emulation. I'm looking for a way to build myself an attachment similar to the dualplay one.
Currently and thanks to FreePIE looks like Hydra emulation could be done and I'm working to integrate psmove api into freepie right now.
Unfortunatelly looks like the only software that supports the navigation controller/sixaxis/dualshock 3 is motion in joy so I'll have to use it to get the data from the navigation controllers (and use one extra bt dongle exclusively for this software)
Tips or other approach ideas are welcome.
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Hydra emulation through PSMove + navigation controllers
Very cool! How is your plugin coming along?
We will have to update the SDK when STEM is released, I hope it wont be to hard to emulate it
We will have to update the SDK when STEM is released, I hope it wont be to hard to emulate it
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
I have just started looking at it. I have never used VS before so I'm a lil bit lost locating the linker properties to set the psmove libraries.CyberVillain wrote:Very cool! How is your plugin coming along?
We will have to update the SDK when STEM is released, I hope it wont be to hard to emulate it
Btw unfortuately windows bt stack is a pain in the ass and I have only suceed pairing moves in win7 so I'll need to wait until I arrive home tomorrow.
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Hydra emulation through PSMove + navigation controllers
C# can only load C libraries, if its in C++ you need to create a C wrapper for it.. If its a C lib, import a function using dllimport
http://msdn.microsoft.com/en-us/library ... s.71).aspx
http://msdn.microsoft.com/en-us/library ... s.71).aspx
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
It is a C library, I've already created the imports for it but, don't I need to set the psmove library path inside the IDE for the plugins project?CyberVillain wrote:C# can only load C libraries, if its in C++ you need to create a C wrapper for it.. If its a C lib, import a function using dllimport
http://msdn.microsoft.com/en-us/library ... s.71).aspx
I have already located the commands to copy the libraries to the FreePIE.GUI release folder.
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Hydra emulation through PSMove + navigation controllers
Just put the library in the Libs folder.
Under the properteis for the GUI project choose Build Events / post build event and add something like
You also need to add it to the CopyDependecies step in the build_output.xml fle, this is so that the installer will include it
Under the properteis for the GUI project choose Build Events / post build event and add something like
Code: Select all
copy "$(SolutionDir)\Lib\PSMove\*.dll" "$(TargetDir)"
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
Fine, I had already added the copy post build event and now I've added the CopyDependencies to te build_output.xml too.CyberVillain wrote:Just put the library in the Libs folder.
Under the properteis for the GUI project choose Build Events / post build event and add something like
You also need to add it to the CopyDependecies step in the build_output.xml fle, this is so that the installer will include itCode: Select all
copy "$(SolutionDir)\Lib\PSMove\*.dll" "$(TargetDir)"
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Hydra emulation through PSMove + navigation controllers
Just noticed that its missed spelled
-
- One Eyed Hopeful
- Posts: 2
- Joined: Tue Jul 22, 2014 9:10 am
Re: Hydra emulation through PSMove + navigation controllers
Hello everyone!
I would like to play Surgeon Simulator with a PS Move controller emulated as a Razer Hydra.
My question is, can I do this? If Yes, please someone explain me how.
Thank You very much in advance!
I would like to play Surgeon Simulator with a PS Move controller emulated as a Razer Hydra.
My question is, can I do this? If Yes, please someone explain me how.
Thank You very much in advance!
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
There is no way to do so yet.SD456 wrote:Hello everyone!
I would like to play Surgeon Simulator with a PS Move controller emulated as a Razer Hydra.
My question is, can I do this? If Yes, please someone explain me how.
Thank You very much in advance!
I'll post a tutorial when I'm done but unfortunately psmove does not provide a joystick so you will still have to create a custom psmove+navigation controller attachment like the ones shown in the pics above :S
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
I've created a simple script today to test the navigation (no position or orientation yet) to hydra controls and it works pretty well. It took me a while to remember I have to use the custom "sixense_fake" dlls
But I've got a question. I've never used the hydra before but I've seen in some videos that some demos require you to "dock" the controllers. Can that action be replicated inside FreePIE too?
But I've got a question. I've never used the hydra before but I've seen in some videos that some demos require you to "dock" the controllers. Can that action be replicated inside FreePIE too?
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Hydra emulation through PSMove + navigation controllers
I dont think the is such functionality in the SDK. Here is the fake code
https://github.com/AndersMalmgren/FreeP ... e_fake.cpp
edit: Most demos do require you to hold the hydras infront of you and press the fire button, that can be faked in FreePIE
edit2:
So the answer is yes, you can fake docked state, but... We do not expose it in the FreeePIE plugin for some reason, that should be added
edit3:
I added isDocked to the plugin
https://github.com/AndersMalmgren/FreeP ... f808fab66a
ops, i was a little too fast on that last commit, here is the correction
https://github.com/AndersMalmgren/FreeP ... 059a02e7a1
https://github.com/AndersMalmgren/FreeP ... e_fake.cpp
edit: Most demos do require you to hold the hydras infront of you and press the fire button, that can be faked in FreePIE
edit2:
Code: Select all
output->is_docked = data.is_docked;
edit3:
I added isDocked to the plugin
https://github.com/AndersMalmgren/FreeP ... f808fab66a
ops, i was a little too fast on that last commit, here is the correction
https://github.com/AndersMalmgren/FreeP ... 059a02e7a1
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
I'll sync my fork. Thank you.CyberVillain wrote:I dont think the is such functionality in the SDK. Here is the fake code
https://github.com/AndersMalmgren/FreeP ... e_fake.cpp
edit: Most demos do require you to hold the hydras infront of you and press the fire button, that can be faked in FreePIE
edit2:So the answer is yes, you can fake docked state, but... We do not expose it in the FreeePIE plugin for some reason, that should be addedCode: Select all
output->is_docked = data.is_docked;
edit3:
I added isDocked to the plugin
https://github.com/AndersMalmgren/FreeP ... f808fab66a
ops, i was a little too fast on that last commit, here is the correction
https://github.com/AndersMalmgren/FreeP ... 059a02e7a1
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
My PC with win7 died today, ( I have to replace the Graphics Card ) so I'll be unable to test anything in a few days :S
I've got a laptop with win8 but unfortunately pairing a move with win8 is not possible atm due to windows bt stack.
I've got a laptop with win8 but unfortunately pairing a move with win8 is not possible atm due to windows bt stack.
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Hydra emulation through PSMove + navigation controllers
How is FreePIE side of things going? Any trouble there?
-
- One Eyed Hopeful
- Posts: 44
- Joined: Thu May 15, 2014 8:04 am
Re: Hydra emulation through PSMove + navigation controllers
I haven't done that much yet, I'm looking at WiiMote and Android plugins as a reference from time to time.CyberVillain wrote:
How is FreePIE side of things going? Any trouble there?
I've already created all the C library imports.
I will create the actual "move manager" that uses the imports and then populate the plugin and global.
I'll only add buttons and orientation data at the beginning since I've never tested the positional tracking of the library before. That will be the last thing I'll be adding.