Skip to content

Stereo display mode

nutiteq edited this page Feb 5, 2013 · 1 revision

Some HTC and LG Android devices (HTC EVO 3D, LG P970 etc) have so-called naked eye 3D display. It works in a way that OpenGL has to render two different images: one for right and another for left eye, with specific view point adjustments. So technically it is stereoscopic vision. Nutiteq SDK has built-in detection of HTC 3D API and LG Real3D API and does required configurations for them, and you need to add just one or two lines to your application code:

        Components components = new Components();
        // Optional - adjust stereo base. Default 1.0
        components.options.setStereoModeStrength(1.0f);
        // Set rendering mode to stereo
        components.options.setRenderMode(Options.STEREO_RENDERMODE);
        mapView.setComponents(components);

Note that current 3D mobile displays work only on landscape orientation.

Clone this wiki locally