Babylon React Native snapshot without 3D objects

Hi!

I have a quick question about the snapshot tool in Babylon React Native. When I use it in AR it captures the whole scene, with both real world objects and 3D rendered objects. I was wondering if it’s possible to have just the real world camera view instead.
I’ve tried VideoTexture.CreateFromWebCam but that just gives ‘undefined’.

VideoTexture.CreateFromWebCam(
scene,
function (videoTexture: any) {
console.debug('VideoTexture: ', videoTexture);
},
{maxWidth: 640, maxHeight: 480},
);

It could be really helpful in my image tracking endeavors.

Thanks!

Hi @HedwigAR

Camera support in BabylonNative is in progress. It should be merged in the coming days. You can follow progress here: https://github.com/BabylonJS/BabylonNative/pull/614

3 Likes

Hi @Cedric,

Good to know! I’ll wait for that then.

1 Like