CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImGuizmo not working

lukasino1214 opened this issue · comments

Hi. I am trying to get ImGuizmo get working. It renders fine but I when I hover or click on it. It doesnt work. In my older opengl engine it worked but vulkan one doesnt work. I am using glm and vulkan. ImGui buttons, sliders works fine so input is okay.

Code:
https://github.com/lukasino1214/StellarEngine/blob/main/EngineEditor/app.cpp#L243

not_working

Can you please try to invert Y from mouse position ? it might be a coordinate top/down inversion.

Finally solved it. It was ImGuizmo wasnt getting mouse info. When I moved files around it started working.
Thanks for effort of helping me and thank you for making this library.

@lukasino1214. What do you mean it wasn't getting the mouse info, what files did you move? I am running into the exact same issue with vulkan. It would be extremely helpful if you could give me a hand :)

i solved a similar problem by just use that func in my window. because the main issue, was the gizmo drawlist window was not detected as hovered

ImGuizmo::SetDrawlist(ImGui::GetCurrentWindow()->DrawList);