CameraBackground
Draws the session's camera image behind everything else in a Filament scene, filling the viewport. This is what makes rendered content look placed in the real world.
Add entity to the scene, call update with every new frame, and destroy it before the engine. The view does not need to be transparent.
On Android it draws the external texture ARCore writes. On iOS it draws the two planes of ARKit's YCbCr pixel buffer as Metal textures and converts them to RGB.
Parameters
must come from createEngine of the same session; an engine created any other way cannot see the camera image
the session whose camera image is drawn
Draws the session's camera image behind everything else in a Filament scene, filling the viewport. This is what makes rendered content look placed in the real world.
Add entity to the scene, call update with every new frame, and destroy it before the engine. The view does not need to be transparent.
On Android it draws the external texture ARCore writes. On iOS it draws the two planes of ARKit's YCbCr pixel buffer as Metal textures and converts them to RGB.
Parameters
must come from createEngine of the same session; an engine created any other way cannot see the camera image
the session whose camera image is drawn
ARKit delivers the camera image as a pixel buffer with a luma and a chroma plane. Each plane becomes a Metal texture that shares the buffer's memory, imported into Filament for the one frame it is drawn in; the material converts to RGB.
Properties
Functions
Shows the camera image of frame, fitted to the viewport set with ArSession.setDisplayGeometry. Call it once for every frame returned by ArSession.update.
Shows the camera image of frame, fitted to the viewport set with ArSession.setDisplayGeometry. Call it once for every frame returned by ArSession.update.
Shows the camera image of frame, fitted to the viewport set with ArSession.setDisplayGeometry. Call it once for every frame returned by ArSession.update.