Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: Terked on October 09, 2015, 03:27:37 AM
-
Hey there,
I am currently developing for the HTC Vive and like to use playMaker to speed up my prototyping process. Are there any plans to add actions for the HTC Vive's controller and/or HMD for actions such as button presses and getting the current size of the pre-measured room your interact in?
Looking forward to hear from your answer!
Edit: The SDK is available here (https://github.com/ValveSoftware/openvr) and API documentation there. (https://github.com/ValveSoftware/openvr/wiki/API-Documentation)
-
Hi,
this is pure c++, and as is not compatible with Unity unless someone builds a dll out of this. and I am falling short of expertize on this.
So the first step is to get someone to port steamVR for Unity, then we can study a PlayMaker support on top of this.
Bye,
Jean
-
Sometimes the solutions to our problems require us to come up with creative, yet inelegant solutions. I started a demo yesterday for the vive, and like a few others, my coding skills are restricted to playmaker (I have seen some online in the same boat).
Well, since vive does not play nice with the unity input system... I jsut worked around it, by having the vive controllers change the values of global variables, and then use variable compare logic to initiate my event sequences :)
-
@Terked @ricard2798
My two cents..
You need to create a plug-in then you can create actions or call methods, function, etc.. like Jean said, create a dll..
here is a tutorial: http://www.alanzucconi.com/2015/10/11/how-to-write-native-plugins-for-unity/
The tutorial uses a C++ example and it seems quick + straight forward..
Good luck 8)
-
Are there any legitimate programmers in here that would be willing to undertake this task for the community and/or financial gain? If someone were to come up with and support some Vive-Playmaker Actions, I am sure they would do well on the Unity Asset store. I am certain there are some of us including myself that would pay good money to see this happen. I purchased and love Playmaker because it is a LIFE SAVER for people like me who take forever to code. Having to make a .dll is something outside of my skill set :(
-
Now that steam VR is out on the asset store, is there a way for someone at playmaker to bless us with actions for the vive ? I have a project entirely done with playmaker and porting it to vive seems impossible. I am not skilled at all for that. Thanks in advance.
-
I second this. I really really wish there were actions built in that offered some easy implementation like "if key down => Vive_Controller_1_Trigger" or something like that.
At the moment the solution I'm using is so hacky!
-
Same here you love for playmaker to help with this
-
Worth keeping an eye on this? https://t.co/iy7QO8npJS (https://t.co/iy7QO8npJS)
-
Hi,
Unity seems to be working hard on a new Input System at last, so that would also definitly be a solution to look for in the near future.
Bye,
Jean
-
I think that is the same solution I am using.
I have an FSM on the controller Getting the position of the trigger/buttons and storing it in a Global Variable.
That way you can do a float compare check in any other FSM and check if the value of the rotation/position of each button is above a certain threshold to see if it has been pressed.
Is this the simplest solution at the moment JeanFabre? Until Unity implements the input directly and we can use proper Playmaker actions to call them :)
-
In times of need there will be a hero.
Coming in the form of a playmaker HTC Vive action plugin (https://www.assetstore.unity3d.com/en/#!/content/60854) that came out today.
I tried it out already; works with both HTC Vive Pre and First Generation hardware.
-
Looks like a good base but it seems to be missing a bit of noteworthy actions the API is capable of.
Note: I also don't own this so I was wondering if the creator is going to add more later on.
-
I purchased the Steam VR tools to test out what functionality there is, however I get a load of errors after importing;
Assets/SteamVR_Playmaker/ChangeBodyModelController.cs(11,46): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/ChangeModelController.cs(11,42): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/ChangeTouchpadModelController.cs(11,50): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/GetControllerPosition.cs(9,38): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/GetControllerRotation.cs(11,38): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/GetGrip.cs(11,24): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/GetMenu.cs(11,24): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/GetSystem.cs(11,26): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/GetTouchpad.cs(11,28): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/GetTrigger.cs(11,27): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Assets/SteamVR_Playmaker/Remove this or install Vectrosity/Drawing.cs(5,7): error CS0246: The type or namespace name `Vectrosity' could not be found. Are you missing a using directive or an assembly reference?
-
If you ever get the error, type or namespace name 'FsmStateAction' could not be found. It either means Playmaker is not installed OR playmaker is broken.
It's basically trying to find playmaker.
I am also working on a more extensive list of actions for steamVR, which will include samples, like bow/arrow, boxing, shooting.
-
I tried removing PM and reinstalling it and still the same issue :(
That's great news. If possible can you add the function for the ability to pick objects up by holding the controller over the action (model) point of an object?
It would be pretty awesome if PM could one day have in VR editing capabilities much like the point and click interface of Steam mixed with the game Modbox.
-
Try a completely new project and import playmaker and the scripts to test.
-
An update was released yesterday, so going to try again.
Also worth checking out what NewtonVR have created.
http://vrinflux.com/newtonvr-a-free-physics-based-interaction-system-for-unity-and-the-htc-vive/
https://github.com/TomorrowTodayLabs/NewtonVR/
-
Hey I just released the asset. It includes all the custom actions that I thought were necessary. It also includes the example scene with a bunch of the assets in use including the throwing objects that you mentioned.
http://u3d.as/u20 (http://u3d.as/u20)
Its $15 dollars which is competitively priced :P
Let me know if you have any questions or suggestions.
-
Hi,
Cool , I twitted (https://twitter.com/JeanAtPlayMaker/status/739718248212668416) about this, good luck with this :)
Bye,
Jean
-
Thanks Jean! Those tweets help a lot so I appreciate it.
-
Super work sebaslive!! Thank you for working on this, I've just purchased it and will give it a go over the weekend.
Very best
re
-
Thanks Re! More updates and examples will be coming soon!
-
Excellent! Looking forward to the next update :)
-
Hi sebaslive,
I've got the most up to date PM and just installed your plugin via the Unity Store and have hit on these errors. A prod in the right direction would be most helpful.
Thanks
re
-
Hey Retox!
'FsmStateAction' Not found means that it is having a problem finding playmaker. And since you mentioned that you have the latest PM would mean that there is a script inside playmaker that is throwing it off.
A couple of things you could do:
Remove the playmaker asset and reinstall it from the asset store.
Make a completely new package and install steam vr, and playmaker first, then the toolkit.
If you added or altered some scripts either remove them or revert them back to their original script.
If there is a problem with any of these solutions or it doesn't solve the problem, just let me know and we can move this to Skype.
-
Hi sebaslive,
That got it working. Thanks for the clear direction. :)
-
Good to hear!