ImGui vs Overlay. Help :( (UPDATED)

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
nuke
Halfling
Posts: 72
Joined: Wed Oct 01, 2014 1:16 am
Location: Crimea
x 5

ImGui vs Overlay. Help :( (UPDATED)

Post by nuke »

Ogre Version: : v1.9.0
Operating System: Windows 10 x64
Render System: OpenGL

I have applied the integration of ImGui in OGRE v1.9

Here is the link and repo of this implementation:
viewtopic.php?t=89081 (wrong link fixed, sorry :D )
https://github.com/only-a-ptr/ogre-imgui-testbed1

The integration works great.
But unfortunately in this implementation the ImGui overlaps the cursor :( (see screenshots)
How do I draw the cursor OVER (AFTER) the ImGui?

P.S.
By the way, in the latest versions of Ogre (v1.12.xx+), the integrated ImGui is implemented as a part of Ogre Overlay system, and there is no problem with cursor overlapping.
But in case of Ogre v1.9 ImGui is not a part of Overlay system, it implemented using Ogre::Renderable (see sources in the repository)

Help ((

Screenshots:
Image
Image
Last edited by nuke on Wed Jun 16, 2021 1:14 pm, edited 2 times in total.
User avatar
nuke
Halfling
Posts: 72
Joined: Wed Oct 01, 2014 1:16 am
Location: Crimea
x 5

Re: ImGui vs Overlay. Help ((

Post by nuke »

I'm sorry, I was wrong, I gave the wrong link.
Here is the correct one:

Ogre ImGui binding:
viewtopic.php?t=89081
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: ImGui vs Overlay. Help :( (UPDATED)

Post by paroj »

this was precisely the reason why I integrated ImGui as an overlay. Previously it was rendered after RENDER_QUEUE_OVERLAY instead of being properly ordered in.
You could try rendering after an earlier RENDER_QUEUE so the overlays end up on top.
Post Reply