Page 1 of 3
Early Oculus Rift support.
Posted: Sat Jan 04, 2014 3:11 pm
by FluffyFreak
Since we have 3D cockpits I thought I'd port back my Oculus Rift support from Luomu's SSP (
Summer Side Project) from last year.
https://github.com/fluffyfreak/pioneer/tree/LibOVR
It's very WIP and a broken in some ways, mostly anything 2D - I've also just discovered that it hangs when displaying a ship in the shipyard :/
It does however work very nicely with the Oculus :)
http://quantum-thoughts.net/?p=1500
Re: Early Oculus Rift support.
Posted: Sat Jan 04, 2014 3:25 pm
by FluffyFreak
My first thought about how to deal with the 2D stuff is render it all to a texture and display it on a 3D Quad in the world whilst continuing to display the "worldview" mode and draw a mouse cursor within that 2D window.
That would work for the new UI views anyway since the "view" class is just providing a wrapper around it and it seems like the UI should work anywhere without it.
The older "View" implementations are more of a problem, things like; Sector, System, Galaxy etc.
Going to try something like this as and when I get time
Re: Early Oculus Rift support.
Posted: Sun Jan 05, 2014 5:08 pm
by FluffyFreak
Re: Early Oculus Rift support.
Posted: Mon Jan 06, 2014 2:37 am
by robn
FluffyFreak wrote:My first thought about how to deal with the 2D stuff is render it all to a texture and display it on a 3D Quad in the world whilst continuing to display the "worldview" mode and draw a mouse cursor within that 2D window.
That would probably work pretty well.
Once everything is on the new UI I'm planning to experiment with making the world rendering a permanent background with even things like the station screens etc rendered semi-opaquely over the top. Not unlike this (an old libRocket test):
I seem to recall that Luomu did an experiment to add a blur-postprocess with the new UI over the top. I can't find the screenshot right now, but the code is probably kicking around on a branch.
Honestly though, its not that hard. You could probably have half of it knocked together in the time its taken you to read this :)
That would work for the new UI views anyway since the "view" class is just providing a wrapper around it and it seems like the UI should work anywhere without it.
UIView is a transitional hack to allow the old and new UIs to coexist. It will go away when the old UI goes too.
The older "View" implementations are more of a problem, things like; Sector, System, Galaxy etc.
Yeah, I'd just ignore them for now if you can. I'm really wanting to get rid of the lot as soon as possible. I was going to do those next and WorldView but the cockpit stuff has flipped that order around, so its WorldView next.
Re: Early Oculus Rift support.
Posted: Sat Jan 18, 2014 6:28 pm
by FluffyFreak
http://www.youtube.com/watch?v=zgP7dei0hzc - clearly great minds think alike... this makes me a "great mind" :D
Honestly it's the simplest answer to the problem, render as before, use as texture on a big quad or piece of curve patch (bent quad) in 3D space. Good enough for Valve? Good enough for me!
Re: Early Oculus Rift support.
Posted: Sun Feb 16, 2014 6:04 pm
by FluffyFreak
Did another video of me testing rendering the Intro screen onto a quad in the scene.
Totally hacky but I am only trying to figure these things out right now.
https://www.youtube.com/watch?v=nEHDES7PQ9g
@nozmajner - I think I'm going to need a fuller cockpit for some of these videos ;)
Re: Early Oculus Rift support.
Posted: Sun Feb 16, 2014 6:16 pm
by bszlrd
Yeah, that cockpit only covers the bare minimum right now.
Re: Early Oculus Rift support.
Posted: Thu Feb 20, 2014 10:58 pm
by FluffyFreak
Prepare to cross-post, BEGIN cross-posting! ->
Re: Early Oculus Rift support.
Posted: Fri Feb 21, 2014 1:12 am
by Marcel
I'll probably not get an Oculus Rift, but those videos are really trippy when I do the 'cross your eyes to see the phantom 3D image in the center' thing!
Re: Early Oculus Rift support.
Posted: Fri Feb 21, 2014 7:43 am
by FluffyFreak
I wouldn't recommend one of the dev' kits to anyone other than a developer who is actually just trying to stay ahead of the curve on VR.
However the whole thing is mind blowing, I just took off, flew through on of our cities and then up the side of the mountain (near Earth start pos) and it's amazing the feeling of being there in some way.
The resolution on the dev' kit is far too low, the screen door effect is terrible and there's no positional tracking except what you simulate but honestly if they offred up the Cyrstal Cove prototype for £400-600 I'd buy it without a second thought even though I can't really afford it :) It's... completely unique.
If you get the chance to try it out then do.