Re: Bug 1021: Add OculusVR distortion renderer (single FBO and dual FBO) ..

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Bug 1021: Add OculusVR distortion renderer (single FBO and dual FBO) ..

Sven Gothel
Administrator
On 07/01/2014 09:29 PM, Sven Gothel wrote:

> Bug 1021: Add OculusVR distortion renderer (single FBO and dual FBO)
>
> Commit:
>   <http://jogamp.org/git/?p=jogl.git;a=commit;h=36327e24cf586b50bf18e87d7d13d53eb41cf1d9>
>
> Screenshots:
>   <http://jogamp.org/files/screenshots/oculusvr/ovr-snap03.png>
>   <http://jogamp.org/files/screenshots/oculusvr/>
>
> OculusVR support .. finally :)
>
> Adoption (aka usage) is quite simple, see:
>   <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/stereo/ovr/OVRDemo01.java;h=c20af1389c2351e566f0b1823a97072e6016f630;hb=36327e24cf586b50bf18e87d7d13d53eb41cf1d9>
>
> It uses the new support classes to render stereo manually w/ all the distortions.
>
> The sensors shall work implicit via the 'eye pose'
> and the derived modelview matrix.
> However, we have to see how that works w/ 'rotating the head',
> no DK2 available here.
The DK1 has the accelerometer sensor, hence eye orientation works (head turn).

The code has been updated, cleaned-up and make vendor agnostic.
See respective bug report
 <https://jogamp.org/bugzilla/show_bug.cgi?id=1021>

+++

OpenGL client rendering support framework
and implementation has been added, allowing user GL code
to be rendered for stereoscopic display on the OculusVR
using it's static eye parameters as well as sensor input,
i.e. eye position and orientation.

++

To adopt OculusVR for your rendering code
using our support classes, simply implement
  'com.jogamp.opengl.util.stereo.StereoGLEventListener'
which is a specialization of 'javax.media.opengl.GLEventListener'.

StereoGLEventListener:

<http://jogamp.org/deployment/archive/master/gluegen_806-joal_548-jogl_1300-jocl_981/javadoc/jogl/javadoc/com/jogamp/opengl/util/stereo/StereoGLEventListener.html>

'StereoGLEventListener' can be dropped into
  'com.jogamp.opengl.util.stereo.StereoClientRenderer'

StereoClientRenderer:

<http://jogamp.org/deployment/archive/master/gluegen_806-joal_548-jogl_1300-jocl_981/javadoc/jogl/javadoc/com/jogamp/opengl/util/stereo/StereoClientRenderer.html>

which uses the 'StereoDeviceRenderer' and operates as described here:

<http://jogamp.org/deployment/archive/master/gluegen_806-joal_548-jogl_1300-jocl_981/javadoc/jogl/javadoc/com/jogamp/opengl/util/stereo/StereoDeviceRenderer.html>

See the whole vendor agnostic demo code here:

<http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/stereo/StereoDemo01.java;h=b33b18358348d0a19d3cd188d8e5699857d22e46;hb=bda482e4eee76a5ba2139645682ae64dadacbc6b#l196>

You may notice we also have added a 3d SBS movie player :)

Precompiled jar files are available here:

<http://jogamp.org/deployment/archive/master/gluegen_806-joal_548-jogl_1300-jocl_981/archive/jogamp-all-platforms.7z>

After adding more demos .. and a probably more refinements,
a signed build will come up w/ maven support.

>
> Cheers, Sven
>


signature.asc (894 bytes) Download Attachment