{"action":"created","issue":{"url":"https://api.github.com/repos/mosra/magnum-examples/issues/10","labels_url":"https://api.github.com/repos/mosra/magnum-examples/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mosra/magnum-examples/issues/10/comments","events_url":"https://api.github.com/repos/mosra/magnum-examples/issues/10/events","html_url":"https://github.com/mosra/magnum-examples/pull/10","id":84799624,"number":10,"title":"Add an example for Magnum LibOvrIntegration","user":{"login":"Squareys","id":1889284,"avatar_url":"https://avatars.githubusercontent.com/u/1889284?v=3","gravatar_id":"","url":"https://api.github.com/users/Squareys","html_url":"https://github.com/Squareys","followers_url":"https://api.github.com/users/Squareys/followers","following_url":"https://api.github.com/users/Squareys/following{/other_user}","gists_url":"https://api.github.com/users/Squareys/gists{/gist_id}","starred_url":"https://api.github.com/users/Squareys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Squareys/subscriptions","organizations_url":"https://api.github.com/users/Squareys/orgs","repos_url":"https://api.github.com/users/Squareys/repos","events_url":"https://api.github.com/users/Squareys/events{/privacy}","received_events_url":"https://api.github.com/users/Squareys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-06-03T22:34:05Z","updated_at":"2015-06-20T10:37:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mosra/magnum-examples/pulls/10","html_url":"https://github.com/mosra/magnum-examples/pull/10","diff_url":"https://github.com/mosra/magnum-examples/pull/10.diff","patch_url":"https://github.com/mosra/magnum-examples/pull/10.patch"},"body":"*This is an early pullrequest and should not be merged.*\r\n\r\nHello @mosra, hello everybody, \r\n\r\nI am currently working on an example which shows how to use magnum for rendering to the Oculus Rift. I will share my progress and ask questions here.\r\n\r\nCurrent state and plans:\r\n - [x] connect the rift\r\n - [x] apply rift head orientation and position to camera\r\n - [x] render to the rift via the sdk compositor\r\n - [x] find a neat design for everything\r\n    - [x] use libovr integration library\r\n - small interesting demo scene (Decided against, since this isn't supposed to be a rift demo, but a simple example. And I should get back to studies soon.)\r\n - [x] improve FindOVR cmake module\r\n - [x] cleanup code and codestyle\r\n\r\nAll code is subject to change, `fixup!` commits will be autosquashed after everything is done.\r\n\r\nTo compile and run the code, you need the latest [oculus sdk and runtime](https://developer.oculus.com/). For rendering, a debug HMD is created automatically, in case no hardware is connected. Headtracking obviously requires an actual headset.\r\n\r\nAll suggestions, inspiration and critique are welcome ;)\r\n\r\nGreetings, \r\nSquareys"},"comment":{"url":"https://api.github.com/repos/mosra/magnum-examples/issues/comments/113743699","html_url":"https://github.com/mosra/magnum-examples/pull/10#issuecomment-113743699","issue_url":"https://api.github.com/repos/mosra/magnum-examples/issues/10","id":113743699,"user":{"login":"mosra","id":344828,"avatar_url":"https://avatars.githubusercontent.com/u/344828?v=3","gravatar_id":"","url":"https://api.github.com/users/mosra","html_url":"https://github.com/mosra","followers_url":"https://api.github.com/users/mosra/followers","following_url":"https://api.github.com/users/mosra/following{/other_user}","gists_url":"https://api.github.com/users/mosra/gists{/gist_id}","starred_url":"https://api.github.com/users/mosra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosra/subscriptions","organizations_url":"https://api.github.com/users/mosra/orgs","repos_url":"https://api.github.com/users/mosra/repos","events_url":"https://api.github.com/users/mosra/events{/privacy}","received_events_url":"https://api.github.com/users/mosra/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T10:37:30Z","updated_at":"2015-06-20T10:37:30Z","body":"> Is there a way to set the projection matrix of a camera directly? As far as I know there is only setPerspective() and setOrthographic().\r\n\r\nThis has been on my TODO list for ages. I wanted to add a function that would allow you to set projection matrix directly, but that would then break `near()` and `far()` getters -- looks like there is no single way to obtain them from 4x4 matrix that would work on both perspective and orthographic projections.\r\n\r\nResearching more on this topic..."}}