Giter VIP home page Giter VIP logo

Comments (30)

antcodd avatar antcodd commented on May 20, 2024

Found the reason for this. Infinite loop in vrserver due to a typo in a nested loop:

vr::HmdMatrix34_t OSVRTrackedDevice::GetHeadFromEyePose(vr::Hmd_Eye eye) (osvr_tracked_device.h:388)

vr::HmdMatrix34_t OSVRTrackedDevice::GetHeadFromEyePose(vr::Hmd_Eye eye)
{
    vr::HmdMatrix34_t matrix;
    // TODO

    // Return an identity matrix for now
    for (int i = 0; i < 3; ++i) {
        for (int j = 0; j < 4; ++i) {
            matrix.m[i][j] = (i == j ? 1.f : 0.f);
        }
    }

    return matrix;
}

Edit: There is another identical infinite loop on line 628 in vr::HmdMatrix34_t OSVRTrackedDevice::GetMatrix34TrackedDeviceProperty(vr::TrackedDeviceProperty prop, vr::TrackedPropertyError* error)

Now connects but get no head pose. Not sure if this function needs to be implemented properly first?
Note: I have no headset and haven't really explored the code base. My intention is to try and get SteamVR connected to Cardboard.

PS: Why does this header file have so much implementation in it?

from steamvr-osvr.

rpavlik avatar rpavlik commented on May 20, 2024

Thanks for noticing this! I've pushed changes that resolve that loop issue and all similar ones (by using an object/expression-based method of converting math types, as well as the Eigen math library).

from steamvr-osvr.

d235j avatar d235j commented on May 20, 2024

I have not experienced this issue; can someone else test and close if fixed?

from steamvr-osvr.

pavlo1031 avatar pavlo1031 commented on May 20, 2024

you can play steamVR game using osvr hmd now? these 2 are interacting normally for you?

from steamvr-osvr.

d235j avatar d235j commented on May 20, 2024

@pavlo1031: I was able to, at least up until a recent build which seems to have changed the SteamVR driver API (without updating the "OpenVR" headers), so I'm stuck until this is resolved. Try previous versions in the betas tab for SteamVR, but be warned — the steamvr server may not start automatically if you're on Mac OS or Linux.

from steamvr-osvr.

pavlo1031 avatar pavlo1031 commented on May 20, 2024

i'm using the driver "Windows alpha binaries: Download Windows Alpha", still trying and the issue is still there, which has the only directory "drivers" in it.

do i have to rebuild this project for my own driver on my computer?

from steamvr-osvr.

d235j avatar d235j commented on May 20, 2024

@pavlo1031: what issue are you experiencing exactly? You shouldn't have to rebuild it. What you may have to do is downgrade the SteamVR software in Steam (on the Betas tab in SteamVR properties).
Are you following the instructions at https://github.com/OSVR/SteamVR-OSVR#binary-usage-instructions?

from steamvr-osvr.

pavlo1031 avatar pavlo1031 commented on May 20, 2024

i downgraded steamVR and it does not crash now but still shows warning messagebox that says "VR_Init failed with Unable to initialize necessory OpenVR interfaces."

Then i ran Team Fortress 2. Screen direction was changed by hovering the mouse right & left, but i don't know if the osvr HMD is really interacting with steam.

What does it look like when they interacts normally? rotating the hmd by an angle can change screen direction in the game? (for now it cannot)

Could you please tell me how to know if steam and osvr hmd are interacting normally?

from steamvr-osvr.

Someguysname avatar Someguysname commented on May 20, 2024

I'm also unable to get SteamVR working properly with my hmd. I'm using v1448479831 of SteamVR but I'm getting a timeout on the VR_Pipe instead.
vrclient_hellovr_sdl.txt

from steamvr-osvr.

zhengjiezxxy avatar zhengjiezxxy commented on May 20, 2024

@pavlo1031 how to downgrade steamvr? Steam will update the software automatically.

from steamvr-osvr.

d235j avatar d235j commented on May 20, 2024

I'm having a hard time getting this to work with any current version of SteamVR. I'm sorry there isn't more progress, but it's not in my hands at this point.

from steamvr-osvr.

pavlo1031 avatar pavlo1031 commented on May 20, 2024

Finally, my elder colleague sort of solved it
steam apps now can co-work with osvr hmd now.

1). Please upgrade/downgrade SteamVR to the version "v1444268063".
[!] right-click on steamvr item, open the "properties" window, go to "BETAS" tab
you'll see a drop-down list, and select the version you wanna use, and re-downloading
and re-installation will start then.

2). Before you run steam app (hellovr_sdl.exe or other steam games), please confirm your pc's resolution is set to exactly 1920x1080.
(if your computer does not support such a high resolution, your can use other monitor, like TV)

3). Start SteamVR.

4). Start the game.

5). After entering the game (for example, Team Fortress 2), open the "option" window, enable Virtual Reality mode, and go back to TF2's homescreen, you'll see a button
"Activate virtual Reality Mode" or sth like that, click on it, and the screen will become side-by-side.

P.S. If the button "Activate virtual Reality Mode" doesn't show, set launch parameter "-vr"
(not including the double-quote) to the steam app or game that you're going to run.
[!] HOW-TO: Same way open the "properties" window, you may see something about launch
parameter, set it to -vr and start the game.

After doing all of these everything works fine, hope it helps :) !!

from steamvr-osvr.

typhoidcoma avatar typhoidcoma commented on May 20, 2024

Just got the files to build on Win 10, no longer getting a crash with latest SteamVR beta and latest Core, but now Its back to not reconizing the HMD. Progress :-)

from steamvr-osvr.

fatalnickle avatar fatalnickle commented on May 20, 2024

What core version Tyhpoid? Im pretty sure I have the latest.. SteamVR doesnt crash anymore, but still isnt detecting my osvr.

from steamvr-osvr.

zhengjiezxxy avatar zhengjiezxxy commented on May 20, 2024

version "v1444268063" doesn't work for me(latest driver). The error is not recognizing the HDM. But v1448479831 works.

from steamvr-osvr.

fatalnickle avatar fatalnickle commented on May 20, 2024

Nice. Kind of half way working. Still says Not Ready, and my left and right's seem to be backwards. even though when i look at the screen under the lenses its not. I put it on and theyre backwards. its weird. Keeps telling me Compositor is not fullscreen as well, when it is.

from steamvr-osvr.

fatalnickle avatar fatalnickle commented on May 20, 2024

image

from steamvr-osvr.

typhoidcoma avatar typhoidcoma commented on May 20, 2024

Yup, looks pretty typical as of late.

from steamvr-osvr.

fatalnickle avatar fatalnickle commented on May 20, 2024

When I look at my screen under the lenses it looks just like that. But when I put it on I can see the left side in my right eye and the right side in my left eye... So confusing.

from steamvr-osvr.

zhengjiezxxy avatar zhengjiezxxy commented on May 20, 2024

@pavlo1031 which versions of core and plugin do you use?

from steamvr-osvr.

typhoidcoma avatar typhoidcoma commented on May 20, 2024

Downloaded v0.6-740-g0195020 and updated to the latest SteamVR beta on Win 10. Works like a friggin charm. Having some camera height calibration issues, but I think I can work through that with the config file. Also using latest core snapshot.

from steamvr-osvr.

zhengjiezxxy avatar zhengjiezxxy commented on May 20, 2024

@typhoidcoma Also using latest core snapshot. do you mean the latest plugin?

from steamvr-osvr.

typhoidcoma avatar typhoidcoma commented on May 20, 2024

Yes latest plugin as well.
https://bintray.com/osvr/SteamVR-OSVR/SteamVR-OSVR-Win/v0.1-35-g8a0724b-core-v0.6-740-g0195020/view

On Mon, Jan 11, 2016 at 12:04 AM zhengjiezxxy [email protected]
wrote:

@typhoidcoma https://github.com/typhoidcoma Also using latest core
snapshot. do you mean the latest plugin?


Reply to this email directly or view it on GitHub
#5 (comment).

from steamvr-osvr.

zhengjiezxxy avatar zhengjiezxxy commented on May 20, 2024

@typhoidcoma Thanks. It work on me(windows7), I can run the demo(hellovr_sdl.exe ), but when I play Team Fortress 2, I cannot find "Virtual Reality" mode, and there is a message box that says " Init failed with unable to initialize necessary OpenVR interface.

from steamvr-osvr.

toxicFork avatar toxicFork commented on May 20, 2024

Is your HMD / HDK display on portrait or landscape, and is it to the left
or right of your other displays, and what is its resolution? Can you take a
screenshot of your monitor arrangement window please? I think it may be
related to another issue.

On Mon, 11 Jan 2016 09:12 zhengjiezxxy [email protected] wrote:

@typhoidcoma https://github.com/typhoidcoma Thanks. It work on
me(windows7), I can run the demo(hellovr_sdl.exe ), but when I play Team
Fortress 2, I cannot find "Virtual Reality" mode, and there is a message
box that says " Init failed with unable to initialize necessary OpenVR
interface.


Reply to this email directly or view it on GitHub
#5 (comment).

from steamvr-osvr.

zhengjiezxxy avatar zhengjiezxxy commented on May 20, 2024

This is my display settings.

display1

display2

from steamvr-osvr.

toxicFork avatar toxicFork commented on May 20, 2024

Hmm... I think it's because your main window is not 1920 pixels wide... Can
you try setting it to 1920 wide please? May be related to #23.

On Mon, 11 Jan 2016 09:20 zhengjiezxxy [email protected] wrote:

This is my display settings.

[image: display1]
https://cloud.githubusercontent.com/assets/5151510/12229964/832a3be0-b887-11e5-905d-802f39a00082.PNG

[image: display2]
https://cloud.githubusercontent.com/assets/5151510/12229971/9b2440d8-b887-11e5-9bcc-13f53ec7b6ad.PNG


Reply to this email directly or view it on GitHub
#5 (comment).

from steamvr-osvr.

fieldy1 avatar fieldy1 commented on May 20, 2024

Ok all, u can get this working by doing the following -
Steamvr = latest version
Osvr-steam driver = SteamVR-OSVR-Win-Build-v0.1-35-g8a0724b-core-v0.6-743-g790672e.7z

This works for me and I can run hl2, I'm testing more this week

from steamvr-osvr.

godbyk avatar godbyk commented on May 20, 2024

We've just released an updated SteamVR-OSVR driver that should work with the current release of SteamVR. Please give it a try and report back if you encounter any problems.

from steamvr-osvr.

godbyk avatar godbyk commented on May 20, 2024

I'm closing this isssue due to a lack of information. If you are the original filer of this issue and still encounter this problem, feel free to reopen this issue. If you're not the original filer of this issue, please open a new issue instead.

from steamvr-osvr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.