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

imgui in 3d #1627

Closed
siddharthcmdz opened this Issue Feb 17, 2018 · 6 comments

Comments

4 participants
@siddharthcmdz

siddharthcmdz commented Feb 17, 2018

can imgui widgets be rendered on a 3d quad in 3-space? I was wondering if i can use imgui in VR? is it possible to do that currently? is there a roadmap to have this? or a recommendation to look at any of imgui derived projects or any other projects that can do this?

@ocornut

This comment has been minimized.

Owner

ocornut commented Feb 17, 2018

Hello,

Dear ImGui gives you a bunch of 2d vertices (think of it as 2d meshes), it's easy to render in any way you see fit, so you can render them in a 3d world as long as you can provide the correct input (e.g. virtual mouse using your headset controls, gamepad controls, mouse control if appropriate for development). Some people render it flat, some people render it in a 3D space they can control.

See for example what @temcgraw has been doing:
https://www.youtube.com/watch?v=nlwfn4HJw5E
https://github.com/temcgraw/ImguiVR

-Omar

@siddharthcmdz

This comment has been minimized.

siddharthcmdz commented Feb 18, 2018

awesome! thanks for the pointers omar! appreciate the response

@iKlsR

This comment has been minimized.

iKlsR commented Jul 6, 2018

@siddharthcmdz Did you ever have any success with this?

@iKlsR

This comment has been minimized.

iKlsR commented Jul 6, 2018

@ocornut Any more specifics where I can see this in use?

@n8vm

This comment has been minimized.

n8vm commented Jul 26, 2018

Is there an efficient way to add some extrusion to the geometry of Imgui? I have a 3D imgui window rendering in VR, and I’d like to add some thickness to certain elements, and make certain objects pop out in the 3rd dimension.

@ocornut

This comment has been minimized.

Owner

ocornut commented Jul 26, 2018

@iKlsR There's a video linked above.

@n8vm it's a little difficult since we don't have much information/semantic per vertex.
However, for each ImDrawList the first draw call will be the window background + title + outline, and you may offset the subsequent draw calls a little to give the impression that widgets are over the window. The problem you'll have is filling the gap between both layer, but if that gap is sufficiently small you may get away with it and give a slight 3d effect to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment