Skip to content

Do I need to use Babylon.js's "immersive-ar" for WebAR? #212

Answered by xavierjs
elifares asked this question in Q&A
Discussion options

You must be logged in to vote

Babylon.js immersive-ar session is relying on WebXR.
AFAIK WebXR is only implemented on Android mobile devices (not on IOS and not on desktop).
WebXR direct access to camera aligned video stream for computer vision is not guaranteed yet by the standard.

Jeeliz FaceFilter relies on MediaStream API, a part of WebRTC (formerly getUserMedia API). It is the easiest way to get the camera video feed, and it works everywhere.

You don't need immersive-ar to use Jeeliz FaceFilter. The best way is to use 2 canvases aligned using CSS, 1 behind to initialize Jeeliz FaceFilter and display the video stream, 1 atop to display the babylon.js scene with a transparent background.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@elifares
Comment options

@elifares
Comment options

@xavierjs
Comment options

Answer selected by elifares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants