SimonDanisch / GLPlot.jl

Plotting for Julia with OpenGL
Other
74 stars 8 forks source link

Oculus Rift support #9

Open Keno opened 10 years ago

Keno commented 10 years ago

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.

SimonDanisch commented 10 years ago

Awesome! I'm on it

SimonDanisch commented 10 years ago

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

Keno commented 10 years ago

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 commented 10 years ago

Never mind. Figured it out.

SimonDanisch commented 10 years ago

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

Keno commented 10 years ago

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

Keno commented 10 years ago

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