rtabmap icon indicating copy to clipboard operation
rtabmap copied to clipboard

iOS : Need Control Over Background Overlay Alpha During Non-LiDAR Camera Scan

Open gulam-luxolis opened this issue 5 months ago • 1 comments

Hello,

During a non-LiDAR scan, when the scanning starts, a background color overlay appears on the camera feed with some transparency (alpha value).

Image

I’ve successfully set the background color as needed via the following method:

NativeWrapper > Scene.h > void setBackgroundColor(float r, float g, float b)

However, I haven't been able to locate the logic that controls the alpha (transparency) value of this overlay specifically for the non-LiDAR scan mode.

Could you please point me to where this alpha value is being set or managed? Any guidance would be greatly appreciated.

Thank you!

gulam-luxolis avatar Jul 08 '25 12:07 gulam-luxolis

The gray color is created by this shader: https://github.com/introlab/rtabmap/blob/9650b71d8eb48e1bf9f96ee3e164106601754263/app/android/jni/background_renderer.cc#L70-L79

matlabbe avatar Jul 14 '25 00:07 matlabbe