FreePieIO not working?

Home Forums Troubleshooting FreePieIO not working?

This topic contains 7 replies, has 4 voices, and was last updated by loxai loxai 1 day, 10 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7219

    JustCallMeDanTheMan
    Participant

    I have no gyroscope 🙁

    I do, however, have a gyroscopic mouse. Using regular PC games with No Sensor and this gyroscopic mouse works absolutely fine. However, SteamVR doesn’t care about where my mouse cursor is as it’s expecting an HMD to provide head position and rotational data… and so I turn to FreePie:

    Guessing from other FreePie scripts like those for PSmove and the wording used on the page for TrinusPSVR (though I am using Trinus VR with my Android phone), I made a short script to transfer mouse movements into FreePieIO[0].pitch and yaw (everything else maintained at zero)… and on the SteamVR tab (server 2.1.3) I have FreePieIO selected as External Input. Only I don’t know what data TrinusVR is expecting there, and no matter what I put, it seems nothing is happening… no motion whatsoever in SteamVR Home, though the Watch tab shows that FreePieIO[0].pitch and yaw are at least doing what I coded them to do as I move my mouse around.

    Any clues what to do here?

    Also… seriously… get a Paypal donate button and put it in your sig. You do a tremendous amount of work for a one-off $10 per user, and this support must cost a ton of time. Especially now you have three versions of these VR products out! Those of us who are hacking away beyond the care of most should at least be able to throw a few dollars your way for your ongoing care and support 🙂

    Otherwise, I fear we’ll lose you to the faceless horde of gimme-that-app-for-50-cents-or-I-will-trash-it-in-the-Google-Play-reviews users, who seem to expect that software maintenance is a costless endeavour.

    • This topic was modified 2 weeks, 6 days ago by  JustCallMeDanTheMan.
    • This topic was modified 2 weeks ago by loxai loxai. Reason: Easier title search match
    #7224
    loxai
    loxai
    Keymaster

    Thank you for the support. There certainly is a type of user that can be quite frustrating. It can be difficult to understand what’s behind a project.
    I did have a donation option a long time ago, but it wasn’t that successful. And power users like yourself can already bring great value by helping others and sharing with friends/social outlets.

    Regarding FreePie, it should just work (fp[0] is for head tracking, fp[1] and fp[2] for hand trackers). I’ll check if there’s an issue with that.

    #7238

    jomeady
    Participant

    I’m using FreePieIO as external input under SteamVR tab. I tried the sample script from FreePIE for PSVR page, but I can’t change even the head position (freePieIO[0]) using it. Any ideas?

    I’m using Trinus VR Server 2.1.3

    Alt. Mode, Sync, and Legacy Capture Method are all disabled under SteamVR tab

    #7241
    loxai
    loxai
    Keymaster

    I found a bug in the Trinus server FreePie code, please update and check if it fixes the issue.

    #7243

    jomeady
    Participant

    Sorry for late reply, thank you very much for fixing it

    #7263

    daniisfound
    Participant

    1. can someone send me that freepieio script? i don’t have a gyro either. 2. how does freepieio work? same phone install or second phone?

    #7266

    JustCallMeDanTheMan
    Participant

    Glad to hear you solved a bug for jomeady at least! Unfortunately, it is still not working for me 🙁

    daniisfound, this script is for converting mouse movements into yaw and pitch head movements – the thing is: I don’t know if it should work or not! There isn’t much documentation out there at all for FreePie, especially for this example. so I found it a real challenge

    if starting:
    	yaw = 0.0
    	pitch = 0.0
    	sensitivity = 180
    	
    yaw = freePieIO[0].yaw
    yaw += mouse.deltaX / sensitivity * 180
    	
    if yaw > 180.0:
    	yaw = -180.0
    elif yaw < -180.0:
    	yaw = 180.0
    		
    freePieIO[0].yaw = yaw
    	
    pitch = freePieIO[0].pitch
    pitch += mouse.deltaY / sensitivity * 180
    	
    if pitch > 180.0:
    	pitch = 180.0
    elif pitch < -180.0:
    	pitch = -180.0
    		
    freePieIO[0].pitch = pitch
    
    freePieIO[0].x = 0
    freePieIO[0].y = 0
    freePieIO[0].z = 0
    freePieIO[0].roll = 0
    
    #watch
    
    diagnostics.watch(mouse.deltaX)
    diagnostics.watch(mouse.deltaY)
    diagnostics.watch(freePieIO[0].yaw)
    diagnostics.watch(freePieIO[0].pitch)

    I also tried the much simpler:

    freePieIO[0].yaw = mouse.deltaX
    freePieIO[0].pitch = mouse.deltaY

    As I saw a pretty much zero context example that did this kind of thing. From the watched variables, I can see both are working as I intended in terms of values of output into yaw and pitch, but my in-world VR head never moves once Steam VR Home is showing on my phone through Trinus VR. After a while, it says the display is in standby (a default effect of Steam not detecting any movement, I assume)

    jomeady, since you have it working, if you use the ‘watch’ commands above in FreePie, what values do FreePie[0].yaw and pitch take? Does it seem to be degrees from -180 to 180, as I would expect, or a series of small numbers that would indicate deltas are the proper usage? I assume nobody is using radians…. but who knows, I can’t seem to find any explanative documentation about the values these FreePie[#].yaw/pitch/roll/x/y/z variables should take!

    If I’ve got it right already with FreePie, I have no idea why it isn’t translating into movement in Steam VR…

    #7267
    loxai
    loxai
    Keymaster

    Which FreePIE version are you using? I’m on 1.9.629
    Data is in degrees. Here’s the quick mouse input test script I use:
    if starting:
    x = 0
    y = 0
    z = 0

    x = x+mouse.deltaX
    z = z+mouse.deltaY
    y = y+mouse.wheel

    #freePieIO[1].roll = x
    freePieIO[0].pitch = z
    #freePieIO[2].pitch = x
    #freePieIO[2].roll = z
    freePieIO[0].z = y

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.