~/talk

Building an AR app with Compose & OpenGL ES

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [android, webxr]
links:none on file
slides:none on file

Concrete recipe for a working AR prototype: use Compose + OpenGL ES + ARCore, host GL on a SurfaceView/TextureView via AndroidView or AndroidExternalSurface, render the camera as a full‑screen quad in clip space, then replace the virtual camera matrices with ARCore’s view and projection. Implement framebuffer FBO passes to render the scene and a normalized depth map, apply depth‑based occlusion in the fragment shader and use ARCore EIS data to stabilize; result: occlusion mostly works, with occasional artifacts on dark or shiny surfaces. Code is on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 3:14OpenGL with Compose on Android
  3. 7:35OpenGL crash course for AR
  4. 14:45Virtual to augmented reality
  5. 18:43ARCore's tracking and rendering
  6. 22:19Depth API and occlusion
  7. 25:11Image stabilization challenges
  8. 31:27Frame buffers for AR rendering
  9. 34:34Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.