-
Notifications
You must be signed in to change notification settings - Fork 859
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
Do not set GLX_SAMPLES when asking for framebuffer options #81
Conversation
Does using it like this not have the same effect? https://github.com/mp3guy/ElasticFusion/blob/master/GUI/src/Tools/GUI.h#L44 |
The issue with commenting those lines is that they specify the minimum requirements for enumeration. This means that you will end up with the worst framebuffer available. We could instead return the best, but this results in performance issues. You're running into this problem because your display does not support the minimum framebuffer requirements specified by the application (as per Tom's comment). I've been thinking about a fix, and the best option is probably for Pangolin to enumerate all options (as per your PR), but then to select the best option less than or equal to the requested samples. This will then be more forgiving for software renderers etc. |
I've just pushed 45b38c1 which will hopefully address this issue whilst keeping the current behaviour on systems with decent graphics support. Please comment further if that still does not work for anyone. |
That works great. Thanks @stevenlovegrove and sorry for the dirty PR ;-) One detail is that i needed to add librt to the link libraries to build the devel branch (https://github.com/stevenlovegrove/Pangolin/compare/devel...paulinus:add-librt?expand=1) |
Thanks for the heads up. I've applied your patch in the conditional that uses librt: e4a79aa. Hope that solves it. |
perfect, thanks! |
i met the same problem as above .i have use the method you suggested as "e4a79aa" but it did not work on my computer . |
@sakurazhu To clarify, you see this behaviour in the devel branch? I don't have any concrete suggestions, but you should try playing with the visual_attribs variable here https://github.com/stevenlovegrove/Pangolin/blob/devel/src/display/device/display_x11.cpp#L97 to see if you can find a mode supported by your renderer. I'm not overly familiar with X11, so you may have to do some googling. You could also see if VMware has any options for enabling OpenGL acceleration or something. |
Tthank you for your suggestion. I have solved the problem by changing my dataset's path and the path of asssociation. 2016-05-28 myworldpig 发件人:Steven Lovegrove notifications@github.com @sakurazhu To clarify, you see this behaviour in the devel branch? I don't have any concrete suggestions, but you should try playing with the visual_attribs variable here https://github.com/stevenlovegrove/Pangolin/blob/devel/src/display/device/display_x11.cpp#L97 to see if you can find a mode supported by your renderer. I'm not overly familiar with X11, so you may have to do some googling. You could also see if VMware has any options for enabling OpenGL acceleration or something. |
I use Parallels Desktop on Mac with installed Ubuntu 14.04. Problem solved after disable 3d acceleration on virtual machine settings. After this works laggy but works. |
Can you describe how to turn off 3d acceleration? And is this only relevant when running in a virtual machine or could I try to turn of hardware acceleration like here? |
Using on virtual machines people are getting the following error:
see (#74, #80, raulmur/ORB_SLAM2#4 and raulmur/ORB_SLAM2#15)
This PR solves the problem by not setting the GLX_SAMPLES option when asking for framebuffer options as done in this tutorial as it is done in this tutorial. As far as i understand, the GLX_SAMPLE_BUFFERS and GLX_SAMPLES are set later on the same function anyway