-
Notifications
You must be signed in to change notification settings - Fork 746
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
fixed OpenGLDepthPacketProcessor texture upload #171
Conversation
Great if it works! You have some details how you figured this out? |
Following your comments from half a year ago in #31 I used the stage1 debug value to check ptables as you suggested. I noticed that the ptables are black, so I suspected they didn't get uploaded. Since the ptables are stored in integer textures they don't allow filtering. The initial value of |
Tested on my Macbook Air (Intel GPU) and it works great! I get right around 55Hz for the depth frames. I tried it without the GL_UNPACK_ALIGNMENT line as well and it worked just as well but as you said, probably no harm in keeping it. Thank you for figuring this out! This explains why switching the tables to floats started to fix much of the problem. I would have never guessed we needed to set different values for GL_TEXTURE_MIN_FILTER/GL_TEXTURE_MAG_FILTER. |
Thanks for testing it. I'm glad that it works. |
Tested on Toshiba Portege Z30 with Intel embedded card. Ir and depth still black. Output of lspci: |
You could test if the textures are uploaded properly in test_opengl. You can dump the necessary data with #169. Then switch back to #171, change the last line of If you don't see anything try to change the Debug value to some colour, e.g. |
Hi gaborapp, I have tried proposed solution and does not work. Let me explain my steps to see if I'm doing something wrong. My impression is that some OpenGL commands still dislike my OpenGL configuration. Running glxinfo, I have (resumed information): Any clues? Thanks |
in 1) & 3) you mean it seems that your issue is not connected to the texture upload fix. do you see anything dumped on the console when running |
Yes, I mean test_opengl, sorry for the mistake. thanks, Ricard |
I have a similar issue as ricardborras and having the same configuration: Using libfreenect2::CpuPacketPipeline() everything works fine (but slow). I did:
I didn't dig into code really and I'm not very OpenGL educated, but from my understanding, this is only OpenGL/drawing problem related? |
OpenGL 3.3 should be fine. I think your issue is caused by something else. Would be worth to check for OpenGL errors and capabilities. |
I just did a fresh install on a Mac 10.10.3 a MBP Retina (early 2013) with a NVIDIA GeForce 650M. However, only the RGB frame is showing. I also tried this pull request but didn't work, it actually crashes at the beginning, any suggestion? Thomas |
Have you tried the suggestions above? What did you get? Can you see the tables? If not does the shaders compile and link? |
I tried to make some OpenGL debug, but error codes are not really describing: function: void upload() function: void run (.....) I tried to google it, but didn't find anything usefull. I'm sorry for the message format, I just put error handling messages after every opengl command which kind of messed up line numbering (dont know any smarter way) |
These are error codes GL_INVALID_VALUE (0x501), GL_INVALID_OPERATION (0x502), and GL_INVALID_FRAMEBUFFER_OPERATION (0x506). https://www.opengl.org/wiki/OpenGL_Error |
Ok I tried #169, and i got the following toms-MBP:bin tom$ ./test_opengl The I did #171. crashes at before running, I so tried the ./test_opengl I get the same error the above |
|
yeah strange, I do test_openg_dump first and then test_opengl, I get the same error massage on both, I don't know if I'm missing something. |
You are compiling the wrong source at #169 for test_opengl_dump. |
Oh, sorry about this. Fixed in #169. Thanks for reporting it. |
I had the same issue (black IR and depth), this fixed it. Thanks. (Still getting pink in RGB though). I'm on a macbook pro 13" early 2013 retina, Intel HD Graphics 4000 1024 MB. |
I tried on Ubuntu with Intel Haswell Mobile GPU and it did not help. Still getting black output. |
Since this fixes the issue for at least some configurations and doesn't negatively affect the implementations where it was already working, I'm merging the PR. |
fixed OpenGLDepthPacketProcessor texture upload
Hi, I am also facing the same problem in ubuntu 14.04. i have installed kernel 13.16 but still i am facing the same problem. I am unable to see dept and ir image. only rgb image shows up. |
fixes #31