Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Oculus Rift Support
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
RE: Oculus Rift Support

(08-21-2013, 12:39 AM)MungeParty Wrote: Game programmer and Rift dev kit owner here. The Oculus SDK is pretty darn close to plug-and-play. The SDK gives you the head tracking input from the sensor fusion in the form of a transform matrix that you just apply to your camera's view matrix prior to rendering and they have documentation on the algorithm used to create the distortion effect needed to work with the lens distortion in the headset. It really is pretty straightforward - maybe 1-2 days to get it working properly with both tracking and rendering. The vast majority of the work in integrating Rift support for a game is typically related to HUD and controls, which is relatively simple in this case. This talk about the engine needing to be rewritten or even significantly reworked is greatly exaggerated. Posting because I would personally love to see this happen, although I would not blame them for holding off until the consumer version of the OR is closer to release - especially if adoption rates aren't looking great.


Check this page out
https://github.com/FrictionalGames/Penum...teract.cpp
Specifically 'cPlayerState_Grab::OnUpdate'

That's the Penumbra gameplay code in HPL1, specifically the object interaction. Assuming that the interaction in HPL2 is anything like in HPL1, the basis for moving objects that you are holding is the Camera position. It may be trivial to get the SDK implemented and tracking/rendering working, but that's the smallest and easiest part.

The hardest part is going to be redesigning the object interaction. Assuming you've played this game quite a lot, you know how important the feel of grabbing & moving objects around is. Separating the camera for head movement and the body for moving objects may not be a huge task (not trivial either), but think about the kind of consequences you would need to deal with for things as simple as knowing which way you're body is facing, since you're going to need to move things accurately, and it needs to feel natural.

I haven't picked through all the relevant code in HPL1, but I'm guessing they didn't build in the potential for a separate 'head' and 'body', so now it's not just picking up boxes that's the issue, never mind drawers & doors & wheels, but actually the way your 'body' is represented in the game world will need to be re-thought (if you're grabbing from the eyes as before it wouldn't feel right, but if you're grabbing from the body would the start position for grabbing an object be further down, what would that mean in the code above? Would that still work if it's a wheel you're turning?). I actually can't think of an interaction system that would be any harder to get working right with the Rift than the kind Amnesia uses.

Obviously the whole thing doesn't need re-writing, Statyk already did a good job pointing that out, but a good solution will be a lot more than a few days work. The design issues are fun to tackle, but when these guys need to make a living out of their development time, spending a lot of time thinking through UI implications for a niche hardware product doesn't make sense. Leave it to the hobbyists till there's a decent standard to work from. I'm not sure how you feel but there's no project on the Rift development showcase I've tried that I would point to and say 'that's how to do it'

(This post was last modified: 08-21-2013, 10:26 PM by Adrianis.)
08-21-2013, 11:59 AM
Find


Messages In This Thread
Oculus Rift Support - by GrixM - 08-02-2012, 12:41 AM
RE: Oculus Rift Support - by palistov - 08-02-2012, 01:04 AM
RE: Oculus Rift Support - by cdoublejj - 08-04-2013, 02:33 AM
RE: Oculus Rift Support - by PutraenusAlivius - 08-04-2013, 02:44 AM
RE: Oculus Rift Support - by cdoublejj - 08-05-2013, 08:26 PM
RE: Oculus Rift Support - by Statyk - 08-05-2013, 08:33 PM
RE: Oculus Rift Support - by failedALIAS - 08-02-2012, 01:17 AM
RE: Oculus Rift Support - by Arvuti - 08-02-2012, 01:51 AM
RE: Oculus Rift Support - by GrixM - 08-02-2012, 01:15 PM
RE: Oculus Rift Support - by Traggey - 08-02-2012, 02:00 PM
RE: Oculus Rift Support - by Jakob Rosenblatt - 08-02-2012, 02:21 PM
RE: Oculus Rift Support - by Arvuti - 08-02-2012, 03:44 PM
RE: Oculus Rift Support - by GrixM - 08-02-2012, 04:10 PM
RE: Oculus Rift Support - by Your Computer - 08-02-2012, 04:20 PM
RE: Oculus Rift Support - by HateSolstice - 08-02-2012, 07:58 PM
RE: Oculus Rift Support - by Arvuti - 08-02-2012, 08:16 PM
RE: Oculus Rift Support - by HateSolstice - 08-02-2012, 09:12 PM
RE: Oculus Rift Support - by Argoon - 08-02-2012, 09:36 PM
RE: Oculus Rift Support - by HateSolstice - 08-03-2012, 02:47 AM
RE: Oculus Rift Support - by Deep One - 08-02-2012, 09:46 PM
RE: Oculus Rift Support - by Bridge - 08-02-2012, 09:52 PM
RE: Oculus Rift Support - by Traggey - 08-03-2012, 10:11 AM
RE: Oculus Rift Support - by Arvuti - 08-03-2012, 03:48 PM
RE: Oculus Rift Support - by Your Computer - 08-03-2012, 05:08 PM
RE: Oculus Rift Support - by Macgyverthehero - 08-03-2012, 03:54 PM
RE: Oculus Rift Support - by Bridge - 08-03-2012, 04:23 PM
RE: Oculus Rift Support - by Macgyverthehero - 08-03-2012, 04:31 PM
RE: Oculus Rift Support - by Traggey - 08-03-2012, 05:09 PM
RE: Oculus Rift Support - by Arvuti - 08-03-2012, 05:14 PM
RE: Oculus Rift Support - by Traggey - 08-03-2012, 05:16 PM
RE: Oculus Rift Support - by Arvuti - 08-03-2012, 05:21 PM
RE: Oculus Rift Support - by GrixM - 08-03-2012, 10:24 PM
RE: Oculus Rift Support - by Kman - 08-04-2012, 12:41 AM
RE: Oculus Rift Support - by J.R.S.S. - 08-06-2012, 03:57 PM
RE: Oculus Rift Support - by GrixM - 08-07-2012, 10:47 PM
RE: Oculus Rift Support - by J.R.S.S. - 08-08-2012, 04:47 AM
RE: Oculus Rift Support - by Plissken - 08-12-2012, 06:57 AM
RE: Oculus Rift Support - by GrixM - 08-19-2012, 07:47 PM
RE: Oculus Rift Support - by Traggey - 08-19-2012, 07:55 PM
RE: Oculus Rift Support - by GrixM - 08-19-2012, 10:14 PM
RE: Oculus Rift Support - by Traggey - 08-20-2012, 10:34 PM
RE: Oculus Rift Support - by Plissken - 08-30-2012, 10:28 PM
RE: Oculus Rift Support - by Zaffre - 08-31-2012, 11:09 PM
RE: Oculus Rift Support - by J.R.S.S. - 09-01-2012, 01:38 AM
RE: Oculus Rift Support - by Zaffre - 09-01-2012, 01:39 AM
RE: Oculus Rift Support - by J.R.S.S. - 09-01-2012, 02:43 AM
RE: Oculus Rift Support - by Zaffre - 09-01-2012, 04:46 AM
RE: Oculus Rift Support - by Clord - 11-30-2012, 01:42 PM
RE: Oculus Rift Support - by Veraxus - 10-31-2012, 08:04 PM
RE: Oculus Rift Support - by GrixM - 01-16-2013, 11:47 PM
RE: Oculus Rift Support - by Zaffre - 01-17-2013, 01:43 AM
RE: Oculus Rift Support - by J.R.S.S. - 01-17-2013, 07:29 PM
RE: Oculus Rift Support - by Prelauncher - 01-17-2013, 08:12 PM
RE: Oculus Rift Support - by Deep One - 01-17-2013, 08:31 PM
RE: Oculus Rift Support - by OkinKun - 01-18-2013, 06:50 AM
RE: Oculus Rift Support - by pewpewk - 01-18-2013, 08:24 AM
RE: Oculus Rift Support - by besttype - 01-18-2013, 03:27 PM
RE: Oculus Rift Support - by Statyk - 01-18-2013, 06:16 PM
RE: Oculus Rift Support - by Grexeo - 01-20-2013, 01:10 PM
RE: Oculus Rift Support - by MaZiCUT - 01-20-2013, 01:13 PM
RE: Oculus Rift Support - by GrixM - 02-11-2013, 10:58 PM
RE: Oculus Rift Support - by Deep One - 01-20-2013, 01:34 PM
RE: Oculus Rift Support - by sethdonut - 03-20-2013, 02:35 AM
RE: Oculus Rift Support - by Traggey - 03-20-2013, 12:16 PM
RE: Oculus Rift Support - by sethdonut - 03-20-2013, 06:43 PM
RE: Oculus Rift Support - by GrixM - 03-21-2013, 12:28 PM
RE: Oculus Rift Support - by Adrianis - 03-21-2013, 01:50 PM
RE: Oculus Rift Support - by GrixM - 03-21-2013, 07:28 PM
RE: Oculus Rift Support - by Adrianis - 03-22-2013, 12:37 AM
RE: Oculus Rift Support - by WALP - 03-21-2013, 06:12 PM
RE: Oculus Rift Support - by J.R.S.S. - 03-21-2013, 06:29 PM
RE: Oculus Rift Support - by sethdonut - 03-23-2013, 03:39 PM
RE: Oculus Rift Support - by Acies - 03-23-2013, 08:23 PM
RE: Oculus Rift Support - by yomer - 04-17-2013, 04:03 PM
RE: Oculus Rift Support - by Adrianis - 04-19-2013, 01:36 PM
RE: Oculus Rift Support - by GrixM - 03-31-2013, 11:46 AM
RE: Oculus Rift Support - by Kman - 03-31-2013, 12:05 PM
RE: Oculus Rift Support - by trens - 04-03-2013, 05:35 AM
RE: Oculus Rift Support - by Traggey - 04-04-2013, 03:48 PM
RE: Oculus Rift Support - by trens - 04-05-2013, 05:02 AM
RE: Oculus Rift Support - by GrixM - 04-07-2013, 01:22 PM
RE: Oculus Rift Support - by EnDash - 04-04-2013, 04:11 PM
RE: Oculus Rift Support - by PutraenusAlivius - 04-05-2013, 05:08 AM
RE: Oculus Rift Support - by yomer - 04-19-2013, 04:45 PM
RE: Oculus Rift Support - by Veraxus - 04-24-2013, 04:12 AM
RE: Oculus Rift Support - by GrixM - 04-19-2013, 10:50 PM
RE: Oculus Rift Support - by PutraenusAlivius - 04-24-2013, 01:06 PM
RE: Oculus Rift Support - by GrixM - 04-25-2013, 07:24 PM
RE: Oculus Rift Support - by PutraenusAlivius - 04-26-2013, 06:48 AM
RE: Oculus Rift Support - by GrixM - 04-26-2013, 09:04 AM
RE: Oculus Rift Support - by PutraenusAlivius - 04-26-2013, 10:22 AM
RE: Oculus Rift Support - by eliasfrost - 04-26-2013, 10:46 AM
RE: Oculus Rift Support - by J.R.S.S. - 04-26-2013, 07:05 PM
RE: Oculus Rift Support - by eliasfrost - 04-24-2013, 03:25 PM
RE: Oculus Rift Support - by PutraenusAlivius - 04-24-2013, 03:30 PM
RE: Oculus Rift Support - by yomer - 04-24-2013, 04:50 PM
RE: Oculus Rift Support - by eliasfrost - 04-25-2013, 10:43 AM
RE: Oculus Rift Support - by Tiger - 04-24-2013, 05:18 PM
RE: Oculus Rift Support - by Tiger - 04-26-2013, 11:57 AM
RE: Oculus Rift Support - by Statyk - 04-26-2013, 07:22 PM
RE: Oculus Rift Support - by Prelauncher - 04-26-2013, 07:49 PM
RE: Oculus Rift Support - by Statyk - 04-26-2013, 07:57 PM
RE: Oculus Rift Support - by Tiger - 04-26-2013, 09:24 PM
RE: Oculus Rift Support - by GrixM - 04-26-2013, 09:51 PM
RE: Oculus Rift Support - by Tiger - 04-26-2013, 09:53 PM
RE: Oculus Rift Support - by ElectroPulse - 04-26-2013, 10:30 PM
RE: Oculus Rift Support - by J.R.S.S. - 04-26-2013, 10:44 PM
RE: Oculus Rift Support - by Tiger - 04-26-2013, 10:44 PM
RE: Oculus Rift Support - by J.R.S.S. - 04-26-2013, 10:52 PM
RE: Oculus Rift Support - by ElectroPulse - 04-26-2013, 10:57 PM
RE: Oculus Rift Support - by Traggey - 04-27-2013, 12:49 AM
RE: Oculus Rift Support - by spire8989 - 04-27-2013, 01:02 AM
RE: Oculus Rift Support - by Traggey - 04-27-2013, 02:38 AM
RE: Oculus Rift Support - by Argoon - 05-25-2013, 03:27 AM
RE: Oculus Rift Support - by GrixM - 05-26-2013, 03:38 PM
RE: Oculus Rift Support - by PutraenusAlivius - 05-26-2013, 04:35 PM
RE: Oculus Rift Support - by GrixM - 05-26-2013, 08:25 PM
RE: Oculus Rift Support - by Acies - 05-26-2013, 09:33 PM
RE: Oculus Rift Support - by Paddy™ - 05-26-2013, 09:57 PM
RE: Oculus Rift Support - by GrixM - 05-27-2013, 02:44 PM
RE: Oculus Rift Support - by Draug - 06-01-2013, 12:39 AM
RE: Oculus Rift Support - by kdawgmaster - 07-20-2013, 03:21 AM
RE: Oculus Rift Support - by PutraenusAlivius - 07-20-2013, 09:00 AM
RE: Oculus Rift Support - by Tiger - 07-21-2013, 06:52 AM
RE: Oculus Rift Support - by Statyk - 07-21-2013, 05:42 AM
RE: Oculus Rift Support - by Artyom - 07-21-2013, 07:50 AM
RE: Oculus Rift Support - by Statyk - 07-22-2013, 12:46 AM
RE: Oculus Rift Support - by Adrianis - 07-23-2013, 03:23 PM
RE: Oculus Rift Support - by plutomaniac - 08-03-2013, 12:41 PM
RE: Oculus Rift Support - by cdoublejj - 08-10-2013, 03:11 AM
RE: Oculus Rift Support - by PutraenusAlivius - 08-10-2013, 11:23 AM
RE: Oculus Rift Support - by nawoa - 08-17-2013, 05:41 PM
RE: Oculus Rift Support - by Statyk - 08-18-2013, 03:04 AM
RE: Oculus Rift Support - by PutraenusAlivius - 08-18-2013, 03:32 AM
RE: Oculus Rift Support - by Statyk - 08-18-2013, 04:46 AM
RE: Oculus Rift Support - by MungeParty - 08-21-2013, 12:39 AM
RE: Oculus Rift Support - by Adrianis - 08-21-2013, 11:59 AM
RE: Oculus Rift Support - by LazyGunn - 09-21-2013, 07:21 AM
RE: Oculus Rift Support - by Adrianis - 10-18-2013, 02:36 PM
RE: Oculus Rift Support - by cdoublejj - 10-14-2013, 05:26 PM
RE: Oculus Rift Support - by GrixM - 11-03-2013, 11:40 PM
RE: Oculus Rift Support - by Acies - 11-04-2013, 12:15 AM
RE: Oculus Rift Support - by GrixM - 11-16-2013, 01:33 PM
RE: Oculus Rift Support - by PutraenusAlivius - 11-16-2013, 04:24 PM
RE: Oculus Rift Support - by Acies - 11-17-2013, 01:11 AM
RE: Oculus Rift Support - by GrixM - 06-07-2014, 07:49 PM
RE: Oculus Rift Support - by Ashtoreth - 06-09-2014, 08:39 PM
RE: Oculus Rift Support - by GrixM - 08-13-2014, 06:56 PM
RE: Oculus Rift Support - by GrixM - 05-30-2015, 12:48 AM
RE: Oculus Rift Support - by Romulator - 05-30-2015, 01:13 AM
RE: Oculus Rift Support - by J.R.S.S. - 05-30-2015, 02:32 AM
RE: Oculus Rift Support - by Romulator - 05-30-2015, 03:09 AM
RE: Oculus Rift Support - by GrixM - 05-31-2015, 01:03 AM
Amnesia + Oculus Rift - by Clord - 09-30-2012, 12:18 PM
RE: Amnesia + Oculus Rift - by Kman - 09-30-2012, 12:24 PM
Oculus Rift integration? - by Phayton14 - 08-03-2013, 04:21 AM
RE: Oculus Rift integration? - by Statyk - 08-03-2013, 05:11 AM



Users browsing this thread: 1 Guest(s)