ofxKinect2 icon indicating copy to clipboard operation
ofxKinect2 copied to clipboard

depth image does not render with programmable renderer

Open julapy opened this issue 9 years ago • 2 comments

hey,

if i turn on the programmable renderer, something like...

    ofGLFWWindowSettings windowSettings;
    windowSettings.setGLVersion(4, 1);
    ....
    ofCreateWindow(windowSettings);

then the depth image no longer renders.

julapy avatar Oct 12 '15 04:10 julapy

I've never checked. I will check soon!

sadmb avatar Oct 12 '15 11:10 sadmb

I found that same problem was reported at, https://github.com/openframeworks/openFrameworks/issues/4378

Changing texture format resolved the problem. For me, changing line 753 in ofxKinect2.cpp worked!

from: tex.allocate(getWidth(), getHeight(), GL_RGBA, true, GL_LUMINANCE, GL_UNSIGNED_SHORT);

to: tex.allocate(getWidth(), getHeight(), GL_R8, true, GL_RED, GL_UNSIGNED_SHORT); tex.setRGToRGBASwizzles(true);

shiyamon avatar Dec 10 '15 03:12 shiyamon