Skip to content
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

Misbehaving GUI when i through libigl to use imgui #7606

Open
WhyNot134 opened this issue May 19, 2024 · 2 comments
Open

Misbehaving GUI when i through libigl to use imgui #7606

WhyNot134 opened this issue May 19, 2024 · 2 comments
Labels

Comments

@WhyNot134
Copy link

Version/Branch of Dear ImGui:

Version 1.90, Branch: master (master/docking/etc.)

Back-ends:

imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp

Compiler, OS:

Windows10 + MSVC2019

Full config/build information:

No response

Details:

Menu is drawn fine in the libigl EXAMPLE 106 but problem comes when I interact with the window.

  • Before clicking anything, hovering over menu items highlights them as I would expect, but if I click on one of them (say, "Show texture", for example), A) nothing happens in the window, B) this is now the only GUI item that highlights when the mouse is hovered over it. I cannot interact with the mesh, rotating, scaling etc with the mouse or keyboard. The GUI is essentially now locked. Clicking on the same GUI item does nothing.
  • If, upon the window opening, I first interact with the mesh with a click (ie rotating, translating etc) with the mouse, this is now the only thing I can interact with. I cannot use the GUI menu to select checkboxes etc. The GUI elements do not highlight when I hover over them.
  • If, upon first opening, I use the hotkeys for stuff (such as "f" to toggle face-based rendering), the corresponding GUI checkbox changes. Once I click on anything however, the GUI locks again.

Using latest versions of libigl, imgui etc.

Screenshots/Video:

libigl.viewer.2024-05-20.03-25-07.mp4
libigl.viewer.2024-05-20.03-24-09.mp4

Minimal, Complete and Verifiable Example code:

// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
@ocornut
Copy link
Owner

ocornut commented May 20, 2024

I have no idea what igl is nor what the code looks like.

@GamingMinds-DanielC
Copy link
Contributor

Since you didn't post any code, I have to assume that the problem occurs with unmodified example sources from the libigl project. I'm not familiar with libigl, but it looks like this issue would be better located in that projects issue section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants