LiangliangNan / PolyFit

Polygonal Surface Reconstruction from Point Clouds
https://3d.bk.tudelft.nl/liangliang/publications/2017/polyfit/polyfit.html
GNU General Public License v3.0
723 stars 121 forks source link

Broken gui (macOS Catalina) #16

Closed bbrrck closed 4 years ago

bbrrck commented 4 years ago

I'm having an issue with broken gui under macOS Catalina 10.15.1 (screenshot below). Do you know what the problem might be? Apart from this, PolyFit seems to be working fine, I can load point clouds and meshes. Thanks!

Screenshot 2019-12-10 at 15 01 59

LiangliangNan commented 4 years ago

Oh. I haven’t tested it on the new OS. Did you compile from the source code or were you using the binary?

bbrrck commented 4 years ago

I've compiled from source (current master).

LiangliangNan commented 4 years ago

A few more questions (for me to guess the reason):

Thank you!

On Tue, 10 Dec 2019 at 18:21 Tibor Stanko notifications@github.com wrote:

I've compiled from source (current master).

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/LiangliangNan/PolyFit/issues/16?email_source=notifications&email_token=ADWOVCCIKH3Z5UA7HQ3TGTTQX7FYTA5CNFSM4JY7CG52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGQBN6I#issuecomment-564139769, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADWOVCG7XQ5BTTLTFAS3TF3QX7FYTANCNFSM4JY7CG5Q .

-- Liangliang

bbrrck commented 4 years ago

Everything compiled fine, there were no errors, although there were many warnings, I'm attaching the log. polyfit.log

I've tested the binary, overall it works well and I can run the whole pipeline. There are some minor glitches in the gui, i.e. checkboxes not rendered properly, but that's not a big deal: Screenshot 2019-12-10 at 18 33 41 The above screenshot is from an external monitor, there is a scaling problem on the built-in retina display:

Screenshot 2019-12-10 at 18 33 52
LiangliangNan commented 4 years ago

Thanks! I had a similar issue last year when I upgraded to a new version of macOS. It turned out to be an issue with Qt. So it might be solved when an official update of the Qt becomes available.

For the warnings: Apple doesn't support OpenGL from 4.1 and it has been popularizing its own Matel. That's why everything related to OpenGL is now deprecated.

Another note: This demo version of PolyFit uses some old OpenGL functions. For efficiency reasons, one should use modern and faster programmable-shader-style rendering. Like my Easy3D. You can easily create a new viewer for PolyFit.

bbrrck commented 4 years ago

Yeah, macOS updates can be painful…

Anyway, thanks for publishing the code, great work! (Feel free to close this issue if you want)

LiangliangNan commented 4 years ago

Thank you!