I tried to configure it when creating the pixel sensor in ConfigureSensorRoutine. I’m just modifying your PixelSensorExample.cs
if (isPicture)
{
// Request RGBA8888 for color (avoid JPEG)
PixelSensorFeature.ApplySensorConfig(
SensorId,
PixelSensorCapabilityType.Format,
(uint)PixelSensorFrameFormat.Rgba8888,
ConfiguredStream
);
}
But I’m still getting JPEG data returned to me.
Thank you.
I should add context to this. I’ve been trying to make the Picture sensor give me RGB instead of JPEG, but I’m having no luck. I’m using ML SDK 2.6 and Unity 6000 (which is what your demo requested when I opened it). I spent a day trying different combinations and failing. I tried PixelSensorFeature.ApplySensorConfig both before and after Configure sensor. I tried two ways of configure sensor. Then I tried to see if I could get it to tell me the capabilities but these don’t seem to exists: EnumeratePixelSensorFrameTypes, EnumerateCapabilityValues. And I tried to follow some examples on your support site.
I either get JPEG or nothing, sometimes seeing: Error: XrConfigurePixelSensorAsync in the Magic Leap API failed.
Reason: CallOrderInvalid or ValidationFailure depending on what method I tried.
So does the Picture Pixel sensor even support RGB8888? The docs make it seem so but it’s not working out so far.
Thank you.