imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Misbehaving GUI when i through libigl to use imgui

Open WhyNot134 opened this issue 9 months ago • 3 comments

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:

https://github.com/ocornut/imgui/assets/105153489/7fa7821c-1b93-4478-8e1c-bebd23b8a892

https://github.com/ocornut/imgui/assets/105153489/8ce591ff-a476-484e-a5bb-64dbd7a66fc2

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();

WhyNot134 avatar May 19 '24 19:05 WhyNot134

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

ocornut avatar May 20 '24 07:05 ocornut

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.

GamingMinds-DanielC avatar May 21 '24 09:05 GamingMinds-DanielC