psvr and freepie stopping

Home Forums Trinus PSVR psvr and freepie stopping

This topic contains 10 replies, has 4 voices, and was last updated by  acsdani 5 months, 3 weeks ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #7324

    hellpluss
    Participant

    I have a strange problem when using trinus psvr with freepie, in steam games evey 30 – 50 seconds the view will reset to the front for a fraction of a second. its like a quick flicker to the front view then back to where it supposed to be.

    set up.

    trinus psvr
    psmove service (psmove controler on psvr headset and 2 pseye cameras)
    freepie
    freepiebridge
    steam vr
    then game

    I am lost for ideas

    #7344

    hellpluss
    Participant

    after alot of testing and re installing of software. I have found that trinus psvr is the problem.. possible bug.

    if I run as listed below
    trinus psvr
    psmove service (psmove controler on psvr headset and 2 pseye cameras)
    freepie
    freepiebridge
    steam vr
    then game

    When pc mode is set to steamvr in trinus psvr I get the bug as explained in the first post, everything else is ok.

    If I run pc mode in steamvr alt mode (sbs) The flicker does not happen but my view is out side the ship and i cant recenter to the pilots seat.

    so thinking caps on folks

    #7546

    acsdani
    Participant

    Hi! I have the same problem! I just started a new topic. (It’s the first at the moment)
    Did you find a solution since then???

    #7635

    Kotgoth
    Participant

    Same problem here. I have already replied to another post here in the psvr forum. Somehow connection between freepie position and SteamVR position is lost for a fraction of a second in TrinusPSVR. Rotation seems stable.

    #7644
    loxai
    loxai
    Keymaster

    Ok, time to focus on this issue and see if I can get it fixed.
    As I understand the problem, the position resets to 0 every n seconds.
    I have looked into the Trinus FreePIE code and found one notable mistake, which I have addressed in this test build: https://trinusvirtualreality.com/files/psvrTest.zip
    To simplify the testing process, I use the following FreePIE script:

    if starting:
        a = 0.0
    	
    a+= 0.01
    freePieIO[0].x = 50 * math.sin(a)

    And then set Trinus FreePIE mapping to this:
    {
    “head”:{
    “rotIndex”:0,
    “posIndex”:0,
    “posScale”:1,
    “enabled”:true
    }
    }

    For this test scenario, and using the new build, I am not experiencing the reset to 0 bug. So please first try with the script and mapping above, if it does work then try the full scenario.

    • This reply was modified 5 months, 3 weeks ago by loxai loxai.
    • This reply was modified 5 months, 3 weeks ago by loxai loxai.
    #7645

    acsdani
    Participant

    Hi! I tested the test build you linked, but sadly it still happens for me. 🙁
    I don’t know why but your freepie script doesn’t want to start for me, so I used this simple one:
    freePieIO[0].y = 78
    freePieIO[0].x = 70
    freePieIO[0].z = 0

    It occurs even when PsMoveService and PsMoveFreepireBridge are closed.
    For the first time I believed it’s fine now, because for more than 1 min it doesn’t occur, but after that it occured in every 20-30 sec.

    #7648
    loxai
    loxai
    Keymaster

    The reason the script wasn’t working is that the indentation was removed when posting here. Fixed it.
    Regardless, your script works better to see the problem. It is trickier to notice with constant movement, but setting the x value I was able to clearly see the problem. Now that I can reproduce I’ll have to dig deeper to find the culprit. I’ll work on it.

    #7649

    Kotgoth
    Participant

    Hello, Xavier!
    While I was testing the build you have already confirmed that the drop 0 bug occurs.
    Yes, I see it too. I am here, I’m alive 🙂

    Another strange thing happens to me:

    0.9.3d (installed) still works
    0.9.3h (extracted) – position ignored
    0.9.4b (extracted) – rotation(!) ignored

    Just tested them all in 5 minutes…

    All above with PSVR v1, PSMoveSteamVRService + PSMoveFreepieBridge
    {
    “head”:{
    “rotIndex”:-1,
    “posIndex”:0,
    “posScale”:0.1,
    “enabled”:true
    }

    What is posScale? I tried it from 0.001 to 1 and 10 but did not see any difference.
    Is it ok just extract and run test versions from any directory? Is it good idea to register them?

    P.S. Sorry to bother you while you are fixing bugs.

    #7651
    loxai
    loxai
    Keymaster

    Ok, new update 0.9.4c (same link as before), I think the reset to 0 is not there anymore (stared trying not to blink for a few minutes).
    To avoid interference (and the sake of simplicity), better to run the tests with a FreePIE script. Here’s an update on the previous one using mouse wheel to change x axis:

    if starting:
    	a = 0.0
    	b = 0.0
    	
    a += 0.01
    b += mouse.wheel
    #freePieIO[0].x = 50 * math.sin(a)
    #freePieIO[0].x = 50
    freePieIO[0].x = b

    posScale is to set the position scale. There was a bug in the mapping but should be fixed now.
    Also fixed the rotation being ignored

    #7653

    Kotgoth
    Participant

    Great!!! Thank you!
    Rotation works, position works, no drops to 0 in 5 minutes of Elite Dangerous – perfect tracking!

    #7654

    acsdani
    Participant

    Thank you so much for you work!!! I can confirm too it’s working without a problem even with PSMoveFreepieBridge! 🙂

    The only thing I wish you could fix now is the bad asynchronous reprojection – which I mentioned in another topic!

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

You must be logged in to reply to this topic.