-
Notifications
You must be signed in to change notification settings - Fork 770
Description
Hello there!
I successfully compiled libfreenect2 on my MacBook Pro Retina (2013; QuadCore i7; Intel Iris GPU), but the IR/Depth Steam is just black. My first thought on this is a incompatible GPU … Does anybody have the same problem?
Some debugging code I added in SyncMultiFrameListener::onNewFrame(Frame::Type type, Frame *frame)
(frame_listener_impl.cpp:69) outputted the following information:
if ( type == 4 ) {
printf( "Got depth frame!\n" );
printf( "width: %i\n", int(frame->width) );
printf( "height: %i\n", int(frame->height) );
printf( "bytes per pixel: %i\n", int(frame->bytes_per_pixel) );
double sum;
for (int i = 0; i < frame->width*frame->height*frame->bytes_per_pixel; ++i)
sum += frame->data[i];
printf( "sum: %f\n", sum );
}
Got depth frame!
width: 512
height: 424
bytes per pixel: 4
sum: 0
After skimming through the code I ended up looking at the different DepthPacketProcessors and swapped OpenGLDepthPacketProcessor
with CpuDepthPacketProcessor
(libfreenect.cpp:76) and commented out depth_packet_processor_(0)
(libfreenect.cpp:277) to make Protonect compile again.
Now Protonect is outputting IR and Depth information, but turns my MacBook into a pocket heater: