{"action":"created","issue":{"url":"https://api.github.com/repos/markusfisch/ShaderEditor/issues/76","repository_url":"https://api.github.com/repos/markusfisch/ShaderEditor","labels_url":"https://api.github.com/repos/markusfisch/ShaderEditor/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/markusfisch/ShaderEditor/issues/76/comments","events_url":"https://api.github.com/repos/markusfisch/ShaderEditor/issues/76/events","html_url":"https://github.com/markusfisch/ShaderEditor/issues/76","id":297250036,"number":76,"title":"Accelerometer/orientation unforms ignore screen rotation","user":{"login":"AntiBlueQuirk","id":25140955,"avatar_url":"https://avatars3.githubusercontent.com/u/25140955?v=4","gravatar_id":"","url":"https://api.github.com/users/AntiBlueQuirk","html_url":"https://github.com/AntiBlueQuirk","followers_url":"https://api.github.com/users/AntiBlueQuirk/followers","following_url":"https://api.github.com/users/AntiBlueQuirk/following{/other_user}","gists_url":"https://api.github.com/users/AntiBlueQuirk/gists{/gist_id}","starred_url":"https://api.github.com/users/AntiBlueQuirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntiBlueQuirk/subscriptions","organizations_url":"https://api.github.com/users/AntiBlueQuirk/orgs","repos_url":"https://api.github.com/users/AntiBlueQuirk/repos","events_url":"https://api.github.com/users/AntiBlueQuirk/events{/privacy}","received_events_url":"https://api.github.com/users/AntiBlueQuirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-14T21:23:34Z","updated_at":"2018-02-15T15:07:59Z","closed_at":null,"author_association":"NONE","body":"It seems that the various sensor outputs for orientation ignore the rotation of the screen, and since there's no way to determine screen rotation in the shader, this means that things like the gravity vector are just wrong when the screen is rotated into a landscape orientation. You can see this by loading up the Gravity Vector preset. When the device is in a portrait configuration, the screen corresponds to the device orientation quite nicely, but when the device switches to landscape configuration, the motion on the screen stops making sense.\r\n\r\nI'm not sure exactly what sensor outputs need to change, but I've had a great deal of difficulty getting any of the accelerator based uniforms to output logical values switching between portrait and landscape configuration.\r\n\r\nOther than that, awesome program!"},"comment":{"url":"https://api.github.com/repos/markusfisch/ShaderEditor/issues/comments/365955085","html_url":"https://github.com/markusfisch/ShaderEditor/issues/76#issuecomment-365955085","issue_url":"https://api.github.com/repos/markusfisch/ShaderEditor/issues/76","id":365955085,"user":{"login":"markusfisch","id":485246,"avatar_url":"https://avatars2.githubusercontent.com/u/485246?v=4","gravatar_id":"","url":"https://api.github.com/users/markusfisch","html_url":"https://github.com/markusfisch","followers_url":"https://api.github.com/users/markusfisch/followers","following_url":"https://api.github.com/users/markusfisch/following{/other_user}","gists_url":"https://api.github.com/users/markusfisch/gists{/gist_id}","starred_url":"https://api.github.com/users/markusfisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusfisch/subscriptions","organizations_url":"https://api.github.com/users/markusfisch/orgs","repos_url":"https://api.github.com/users/markusfisch/repos","events_url":"https://api.github.com/users/markusfisch/events{/privacy}","received_events_url":"https://api.github.com/users/markusfisch/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T15:07:59Z","updated_at":"2018-02-15T15:07:59Z","author_association":"OWNER","body":"Yes, that's right, with exception of the `orientation` uniform, no sensor input is remapped according to screen orientation. Did you try the Orientation sample shader from Menu -> Load sample -> Orientation by the way?\r\n\r\nIt should be possible to remap the `linear`, `gravity` and `magnetic` vectors with the `orientation` uniform but that can (and should be) done in the app too.\r\n"}}
{"actor":{"display_login":"markusfisch"}}