CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui
MIT License
3.22k stars 907 forks source link

Using glViewport with ImGuizmo #299

Closed felipunky closed 1 month ago

felipunky commented 1 year ago

Is there a way to make ImGuizmo usable on an split screen app using glViewport? I've tried setRect with no luck.

CedricGuillemet commented 1 year ago

It's as much possible as maknig Dear Imgui rendering to 2 different viewports. I think it's possible but it depends of your rendering loop. I don't think it's easy.

felipunky commented 1 year ago

That was my first thought too (to use the multiviewport branch) but unfortunately I am quite constrained given that I am using Emscripten. Do you have any resources on achieving something similar?

CedricGuillemet commented 1 year ago

Nop. I would look at existing projects (maybe in Dear Imgui project gallery threads) in case someone found a solution.

felipunky commented 1 year ago

Thanks for the help and for the awesome library, will look around and maybe provide an answer in this thread if I do find it.

CedricGuillemet commented 1 month ago

Closed for inactivity.