GLPlot.jl icon indicating copy to clipboard operation
GLPlot.jl copied to clipboard

Oculus Rift support

Open Keno opened this issue 10 years ago • 7 comments

Sorry this has taken so long, but I've finally managed to carve some time out to work on the Rift API. I think I have all the pieces in place. Could you post a short snippet that basically renders the view point for the two eyes to a texture each inside a render loop? We can integrate all the fancy features to adjust the camera position based on tracking etc. later.

Keno avatar Aug 21 '14 05:08 Keno

Awesome! I'm on it

SimonDanisch avatar Aug 21 '14 12:08 SimonDanisch

okay here you go: https://gist.github.com/f92c1b9513b085808d53.git This is a first simple test file, hope it includes everything you need!

SimonDanisch avatar Aug 21 '14 14:08 SimonDanisch

Thanks. Looking at the Oculus SDK, I need two textures (one for each eye). I'll try to play with it to make that work, but you might be quicker.

Keno avatar Aug 21 '14 19:08 Keno

Never mind. Figured it out.

Keno avatar Aug 21 '14 19:08 Keno

Yeah I think, it just needs one texture right? I seems to work both ways, but one texture seems to be easier to me.

SimonDanisch avatar Aug 21 '14 20:08 SimonDanisch

You can pass it either two textures or one texture and two viewports.

Keno avatar Aug 21 '14 20:08 Keno

Well, it's doing something: screen shot 2014-08-21 at 4 45 50 pm

Keno avatar Aug 21 '14 20:08 Keno