imgui::image corrupted texture... Have any idea? #4048
mbeytekin
announced in
Old/Archived discussions
Replies: 3 comments
-
Consider using RenderDoc (https://renderdoc.org/) to debug graphics issues such as DX11 ones. |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you so much. I hope it solves my problem :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
hmm .. As I attached it to the host program, it only shows the operations on it. Anyway, I guess this topic is a little bit beyond me Thank you anyway for your attention. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't think my problem is directly related to imgui. But despite dealing with this issue for almost a week, I could not get any results. So I would be glad if you could give me an idea of where I went wrong.
I am trying to use imgui in a dll I have created. I access the functions related to the main program and make the process. But when it comes to displaying images, I can't do anything.
I am using dx11 backend. I created a texture by following the steps in https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples. Then again as in this example;
ImGui :: Begin ("DirectX11 Texture Test"); ImGui :: Text ("pointer =% p", my_texture); ImGui :: Text ("size =% d x% d", my_image_width, my_image_height); ImGui :: Image ((void *) my_texture, ImVec2 (my_image_width, my_image_height)); ImGui :: End ();
The image appears, but its content shows a dynamic region, although its dimensions are correct.
The image it shows is the host program's own content .. and as it moves the imgui window, it displays the things in the host program's window by scaling the size of the image I want to display in the imgui :: image section.
The part where I activate imgui from this host program:
This is the part that I use to load texture from the host program .. I just run it once in the host program.
This is the part I use to show texture in the loop;
LoadTextureFromFile part is the same with example..
In addition, I added the result I got as a video ..
Do you have an opinion on this matter?
IMGUIProblem.mp4
Beta Was this translation helpful? Give feedback.
All reactions