Skip to content
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

How can I render whole DirectX11 scene into an ImGui window? #4336

Closed
jkooooo99 opened this issue Jul 19, 2021 · 3 comments
Closed

How can I render whole DirectX11 scene into an ImGui window? #4336

jkooooo99 opened this issue Jul 19, 2021 · 3 comments

Comments

@jkooooo99
Copy link

Version: 1.83
Branch: master

Back-ends: imgui_impl_win32.cpp + imgui_impl_dx11.cpp
Compiler: vs2109
Operating System: win10

My Question:

Sorry to interrupt,I am a newbie to everythings....

I am following a tutorial of DirectX11,and I have set up imgui in my tiny program.

imgui

and I want to make the whole scene be rendered in ImGui window.

I found that a lot of people who use opengl have asked similiar questions.
#984

https://gamedev.stackexchange.com/questions/140693/how-can-i-render-an-opengl-scene-into-an-imgui-window

but It seems like that there is a big difference between DirectX11 and opengl......

really hope someone can help me!!

sorry for my english

@jkooooo99 jkooooo99 changed the title How can I render whole DirectX11scene into an ImGui window? How can I render whole DirectX11 scene into an ImGui window? Jul 19, 2021
@rokups
Copy link
Contributor

rokups commented Jul 19, 2021

You can render your scene into a texture and then render a texture using ImGui::Image(). How exactly to do that is out of scope of dear imgui as this is general 3D rendering question.

@ocornut
Copy link
Owner

ocornut commented Jul 19, 2021

You'll need to lookup "render to texture" in DX11. Closing this as out of scope of dear imgui.

@ocornut ocornut closed this as completed Jul 19, 2021
@jkooooo99
Copy link
Author

Thank you so much!!!!!!!!!!!!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants