0

Only happening with depth supported devices. With latest version of filament. I am using camera stream like this. The green screen is appearing intermittently on camera feed.

stream = Stream.Builder().width(width).height(height).build(filament.engine)

texture = Texture.Builder().importTexture(cameraStreamTextureId.toLong()).sampler(Texture.Sampler.SAMPLER_EXTERNAL).format(Texture.InternalFormat.RGB8).build(filament.engine).apply { setExternalStream(filament.engine, stream) }

When I use it like this it works fine. But this has been deprecated.

stream = Stream.Builder().stream(cameraStreamTextureId.toLong()).width(width).height(height).build(filament.engine)

Then I am using this stream for the MaterialInstance.

The camera texture is opaque, plane is texture transparent. I have already tried priority workarounds and material updates.

ray
  • 11,310
  • 7
  • 18
  • 42

0 Answers0