-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android GLRsSurfaceView not showing a single Frame #11740
Comments
Hi @electro-logic Are you able to achieve the depth stream on its own if you define a custom config stream configuration like in #11670 so that only the depth stream is enabled and the color stream is not? If config instructions are not defined then the SDK will enable both the depth and color streams by default. |
Hello, by enabling the Depth stream only, I can see only that frame. But I need to record the Color and the IR stream too (without displaying them). |
I wonder whether you could configure two separate pipelines, each with their own config instruction sets (such as 'config1' and 'config2'), and put depth on 'pipeline1' and color + IR on 'pipeline2'. #1735 (comment) has an example of this method in Python whose structure should be convertable to Android instructions, since you know how to define a pipeline and a config instruction. Having set up individual pipelines, you would then have two pipeline start lines for 'pipeline1' and 'pipeline2'. |
I need frames to be synchronized and, though may work, this looks like a workaround. Any chance to get this fixed? |
I am not aware of a past example of a RealSense Android case in which the visual rendering of one stream type has successfully been disabled whilst the other is enabled. So I do not have an alternative suggestion, unfortunately. |
I can always process the depth data and create a bitmap without the GLRsSurfaceView, I will try this way. |
Hello, at the end I solved in this way (pseudocode)
where the for loop can be parallelized and some variables (ex. bmp and arrays) can be cached for better performance. |
No problem at all, @electro-logic - I'm pleased to hear that you achieved a solution! |
Hello,
This code is working
var frames = _pipeline.WaitForFrames().ReleaseWith(fr).As(Extension.Frameset) as FrameSet
_glSurfaceView1.Upload(frames);
But if I want to display only the Depth frame
var depthFrame = frames.First(StreamType.Depth).ReleaseWith(fr).As(Extension.DepthFrame) as DepthFrame
_glSurfaceView1.Upload(depthFrame);
this code is not showing anything. Is this a bug?
The text was updated successfully, but these errors were encountered: