{"action":"created","issue":{"url":"https://api.github.com/repos/Hotrian/OpenVRDesktopDisplayPortal/issues/51","repository_url":"https://api.github.com/repos/Hotrian/OpenVRDesktopDisplayPortal","labels_url":"https://api.github.com/repos/Hotrian/OpenVRDesktopDisplayPortal/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/Hotrian/OpenVRDesktopDisplayPortal/issues/51/comments","events_url":"https://api.github.com/repos/Hotrian/OpenVRDesktopDisplayPortal/issues/51/events","html_url":"https://github.com/Hotrian/OpenVRDesktopDisplayPortal/issues/51","id":184902926,"number":51,"title":"Problem with apps that switch to Seated mode","user":{"login":"bgr","id":425768,"avatar_url":"https://avatars.githubusercontent.com/u/425768?v=3","gravatar_id":"","url":"https://api.github.com/users/bgr","html_url":"https://github.com/bgr","followers_url":"https://api.github.com/users/bgr/followers","following_url":"https://api.github.com/users/bgr/following{/other_user}","gists_url":"https://api.github.com/users/bgr/gists{/gist_id}","starred_url":"https://api.github.com/users/bgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgr/subscriptions","organizations_url":"https://api.github.com/users/bgr/orgs","repos_url":"https://api.github.com/users/bgr/repos","events_url":"https://api.github.com/users/bgr/events{/privacy}","received_events_url":"https://api.github.com/users/bgr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T17:22:30Z","updated_at":"2016-10-24T18:20:18Z","closed_at":null,"body":"Hi,\r\nI'm trying to use this app for development so I don't have to take the headset off every so often, and I was so close to a perfect setup. However I've encountered the following problem:\r\n\r\nin Unity, if I choose \"Tracking Universe Seated\" and enter Play mode, OpenVRDesktopDisplayPortal will get confused about where the overlays/colliders* should be.\r\n\r\n(*) Note that I'm using AlphaAndScale mode, so it might appear to be working OK with default settings. I've set it up so that the overlay is in front of me as a large monitor, that is small and transparent when I'm not looking at it, and enlarged and opaque when looking at it. Once I enter Play mode in my project, looking at the overlay no longer works, and after about 10 seconds the overlay gets shifted to another position.\r\n\r\nIdeally, the overlay would always stay at the same spot.\r\n\r\nI've tried running OpenVRDesktopDisplayPortal from source, with [SteamVR] prefab added to the scene and set to Seated as well, but it doesn't seem to help."},"comment":{"url":"https://api.github.com/repos/Hotrian/OpenVRDesktopDisplayPortal/issues/comments/255822555","html_url":"https://github.com/Hotrian/OpenVRDesktopDisplayPortal/issues/51#issuecomment-255822555","issue_url":"https://api.github.com/repos/Hotrian/OpenVRDesktopDisplayPortal/issues/51","id":255822555,"user":{"login":"Hotrian","id":580880,"avatar_url":"https://avatars.githubusercontent.com/u/580880?v=3","gravatar_id":"","url":"https://api.github.com/users/Hotrian","html_url":"https://github.com/Hotrian","followers_url":"https://api.github.com/users/Hotrian/followers","following_url":"https://api.github.com/users/Hotrian/following{/other_user}","gists_url":"https://api.github.com/users/Hotrian/gists{/gist_id}","starred_url":"https://api.github.com/users/Hotrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hotrian/subscriptions","organizations_url":"https://api.github.com/users/Hotrian/orgs","repos_url":"https://api.github.com/users/Hotrian/repos","events_url":"https://api.github.com/users/Hotrian/events{/privacy}","received_events_url":"https://api.github.com/users/Hotrian/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T18:20:18Z","updated_at":"2016-10-24T18:20:18Z","body":"This is because you are changing tracking setups in SteamVR on the fly. Technically this is not supposed to happen while an application is using a given tracking setup.\r\n\r\nIn specific, it is happening because [of these lines](https://github.com/Hotrian/OpenVRDesktopDisplayPortal/blob/master/Assets/HOTK/Portal/DesktopPortalController.cs#L1029-L1030). Before [I added this line](https://github.com/Hotrian/OpenVRDesktopDisplayPortal/commit/0a7ec4fa4ee85f6de84b6a46b971e6f5b31b2c61) it was causing #11 to occur. E:D is the only game I know of so far that was having issues with me setting the tracking space instead of getting it - Now I'm getting it every 10 seconds instead of setting it.\r\n\r\n>  Once I enter Play mode in my project, looking at the overlay no longer works,\r\n\r\nThere isn't anything I can do about this because SteamVR is calculating from an incorrect position (OVRDDP's internal model and SteamVR's internal model become desynchronized for a bit). It should work again after the 10 second timer resets though. Does interacting with the overlay stay broken?\r\n\r\n> Ideally, the overlay would always stay at the same spot.\r\n\r\nThis isn't possible because your tracking reference is changing. In one tracking space your \"world center\" is in one place, and in another it is in another. Seated I believe allows you to \"recenter\" your world center, which is what's causing this issue. Your Seated \"world center\" and your Play Area \"world center\" are in two different locations (I believe this is just how it is).\r\n\r\nI don't think anything I can do about this because SteamVR is physically shifting your world center.\r\n\r\nIt might be possible to grab the offset from SteamVR somewhere or calculate it though, I'll look into that."}}
{"actor":{"display_login":"Hotrian"}}