NYUGraphics / GM_Assignment_1

2 stars 1 forks source link

igl viewer toolbox does not display #4

Closed majia67 closed 6 years ago

majia67 commented 6 years ago

I can't see igl viewer toolbox when viewing the mesh. Do I need to toggle it manually or enable it during the build?

Below is a screenshot of viewing mesh: image

Testing environment: OS: Windows 10 IDE: VS 2017 Build Mode: x64 Release

danielepanozzo commented 6 years ago

I cannot reproduce it on macosx. Can you check if the NANOGUI option enabled in your cmake file?

option(LIBIGL_WITH_NANOGUI     "Use Nanogui menu"   ON)

If it is on and the bar is not visible, you can try to delete CMakeCache.txt and rerun cmake. The bar is not strictly necessary for this assignment (you can use the keyboard callbacks for the various steps), if it does not work, we can try to figure it out together during the office hours.

majia67 commented 6 years ago

Thanks! After enabling NANOGUI option, I can see the viewer toolbox now. A smaller issue is the toolbox does not scale correctly in my window:

image

However, it seems to scale correctly on Windows 7 as I saw this screenshot in the tutorial: http://libigl.github.io/libigl/tutorial/tutorial.html#visualizingsurfaces

majia67 commented 6 years ago

By the way, the NANOGUI option is by default disabled in the CMakeLists.txt file in the assignment repository. Is this due to the consideration of the building time?

jiangzhongshi commented 6 years ago

I believe there was some problem for Travis last year. I can try to check it.

danielepanozzo commented 6 years ago

Yes, it is tricky (and unnecessary) to compile NANOGUI on travis. It is best to leave it disabled for the continuous integration.