Lg real3 d-sdk
-
Upload
droidcon-berlin -
Category
Technology
-
view
902 -
download
2
description
Transcript of Lg real3 d-sdk
1
Stand out from the crowd with Real3D
• LG's Android highlights
• 3D without glasses – The LG Optimus 3D series
• Make it 3D – The LG Real3D Engine
• Real3D SDK hands-on
2
LG's Android Engagements
'06, Jan
'07, Nov
'09, Oct
'10, Q4
'11, Q1
'11, Q2
'11, Q4
3
4X
4
5
(M Units)
20122010
Booming of 3D TV Sales
23.4M54.2M
159.2M*
1.5M
2011 2015* Worldwide 3D TV Shipment Forecast, iHS iSuppli Research
52% of TV market share
3D content from users
Nintendo 3DS3D cameras LG Optimus 3D
3D content for TV
(# of Movies)
3D content from Movie Studios
2011
100
2010
50
24
2009
Why we believe in 3D
6
FULL 3D EXPERIENCE 3DSharing
3DViewing
3DRecording
7
FULL 3D EXPERIENCE 3DSharing
3DViewing
3DRecording
8
FULL 3D EXPERIENCE 3DSharing
3DViewing
3DRecording
9
SUPERPHONE PERFORMANCE DUALMEMORY
DUALCORE
DUALCHANNEL
MEMORY
CORE 1
CORE 2
CURRENT DUAL CORE SYSTEM
BURDEN ON A SINGLE CHANNEL & SINGLE MEMORY
BOTTLENECK EFFECT
CORE 1 CORE 2
DUAL CORE/DUAL CHANNEL/DUAL MEMORY
IMPROVED PERFORMANCE & RUN-TIME COMPARED TO 1GHz DUAL-CORE SMARTPHONES
2x BETTER GRAPHICS PERFORMANCEBETTER MULTI-TASK BETWEEN APPLICATIONS
MEMORY 1 MEMORY 2
10
SUPERPHONE PERFORMANCE
DUALCORE
DUALCHANNEL
DUALMEMORY
FULL 3D EXPERIENCE
3DRecording
3D Viewing
3DSharing
FULL 3D EXPERIENCE
3DRecording
3D Viewing
3DSharing
11
3D STEREOSCOPY: TECHNOLOGY
12
3D StereoscopyBasic Principle
Left eye Right eye
By showing independent images to each eye, it is possible to createa sense of depth. (binocular parallax)
Display Display Display
[Zero parallax]on the screen (zero depth)
[Negative parallax]in front of the screen
[Positive parallax]behind the screen
Left eye Right eye Left eye Right eye
13
3D StereoscopyKnown technologies
14
L R L R L R LR L R L R L R
Right eye Left eye
Barrier layer
LCD layer
3D Stereoscopy without GlassesActive switchable barrier display of LG Optimus 3D
Note: This technology requires a certain distance and viewing angle to achieve the optimum 3D effect. Also, it works only in one orientation, e.g. in landscape mode but not in portrait mode.
R
15
SavingCapturing Composing
3D StereoscopyFrom display to content
LL RRL R
Supp. Enh. Information
Process left/right images + 3D informationGet left and right images from camera Save as standard media file
L R
16
Formatting
Apply formatting as provided in SEI-Element
3D StereoscopyFrom content to display
Supp. Enh. Information
Loading
Read the file-elements
Display
Display 3D image
LL RRL R
L R
17
How to apply Real3D to your application?
• Let Real3D convert on-the-fly (3D conversion)
• Take control over the 3D experience (Real3D SDK)
18
On-the-fly conversionConverting 2D to 3D using z-buffer information
Scene is rendered.
OpenGL ES
OpenGL ES
3D Conversion
Two scenes are rendered,using two different viewpoints
19
• Enables developers to implement stereoscopic 3D applications & media contents.
• Provides a new target platform within ADT
• Provides a API to control the Real3D hardware.
• Provides an anaglyphic 3D emulator to test your application on your PC
The Real3D SDKCreate the perfect 3D-Experience
20
In-SDK downloadDirect download
http://developer.lgmobile.com http://developer.lgmobile.com/sdk/android/repository.xml
The Real3D SDKWhere to get it
21
The API and Process Overview
• The Real3D API allows you to control the Real3D parameters of the Real3D engine.
• Only difference to a ‘normal’ application is that we need to inform the device how we are composing the surface.
• The Real3D engine takes a surface holder as input and produces a final frame buffer for the screen.
2D Surface Surface Flinger 3D Surfacewith all layers
HAL
Screen output
22
Frame Buffer Composition
Real3D surface
Surface flinger
2D surface
Frame Buffer
Hardware Abstraction Layer
Final Image
• Real3D surface is defined and waits for end of frame rendering into the surface.
• When rendering is finished, surface flinger will compose the final image for the frame buffer.
• Hardware Abstraction Layer will convert the image into the format required by the screen.
i.e. for a Column-Barrier 3D-LCD the Frame buffer will contain an interleaved image of scene.
23
// Create Real3DInfo class instance and define surface format.Real3DInfo mR3DInfo = new Real3DInfo(true, REAL3D_TYPE_SS,
REAL3D_ORDER_LR);
// Create Real3D object instance, and pass in a surface holder.Real3D mReal3D = new Real3D( mSurfaceView.getHolder() )
// Pass the surface format to the Real3D object.mReal3D.setReal3DInfo( mR3DInfo );
API Usage / Initialization
24
OpenGL Example
• Overview
• Sample Code
25
• Initialization of Real3D OpenGL remains the same as other OpenGL applications
• Scene rendering involves more a few more steps
• Two images of a scene need to be created and rendered into the correct part of the surface – left and right
• This is typically a two step process for each eye• Setup viewport / camera• Render frame
OpenGL Applications
26
Let’s take a look at the SDK OpenGL Sample code ..
SDK Sample Code
MainActivity.java
27
Let’s take a look at the SDK OpenGL Sample code ..
SDK Sample Code
GLTestRenderer.java
28
New Features in Real3D 2.3
Three new features were introduced in the latest SDK version:
1. Compensation of Brightness
To allow direct control of the brightness of each pixel, a new API for brightness has been introduced.
2. View Mode Toggle (API Function)
Can handle 3D button presses to toggle between 2D and Real3D rendering mode.
3. Modify convergence based on z-buffer values
Manually set the focal depth of your scene.
29Date or Presentation Name (Grey, 10 Pt, Verdana - optional)
Q&A
30
http://developer.lgmobile.com
www.lgworld.com
Thank you.