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

White window is showed and closed in imgui example #131

Open
FreePhoenix888 opened this issue Feb 16, 2024 · 7 comments
Open

White window is showed and closed in imgui example #131

FreePhoenix888 opened this issue Feb 16, 2024 · 7 comments
Assignees

Comments

@FreePhoenix888
Copy link

FreePhoenix888 commented Feb 16, 2024

2024-02-16.18-57-05.mp4

How to reproduce

git clone https://github.com/conan-io/examples2
cd examples2\examples\examples\libraries\imgui\introduction
conan install . --build=missing
cmake --preset conan-default
cmake --build --preset conan-release
cd build\Release
.\dear-imgui-conan.exe 
@czoido
Copy link
Contributor

czoido commented Feb 16, 2024

Hi @FreePhoenix888,
Thanks for reporting.
I can't reproduce that, does that always happen? Could it be related to some graphics cards issues on your side?
For me building and running from powershell runs ok.

@FreePhoenix888
Copy link
Author

FreePhoenix888 commented Feb 16, 2024

Hi @FreePhoenix888, Thanks for reporting. I can't reproduce that, does that always happen? Could it be related to some graphics cards issues on your side? For me building and running from powershell runs ok.

Hi, @czoido ! What information could I provide to help us find it out?

@czoido
Copy link
Contributor

czoido commented Feb 16, 2024

Hi @FreePhoenix888, Thanks for reporting. I can't reproduce that, does that always happen? Could it be related to some graphics cards issues on your side? For me building and running from powershell runs ok.

Hi, @czoido ! What information could I provide to help us find it out?

To be honest, I'm not sure, what could be happening... A couple of things that may give us some hints...

  • If you resize the window, does something appear?
  • If you launch the exe from the windows explorer, does the same thing happen?
  • Are the shader files there besides the executable?

@FreePhoenix888
Copy link
Author

FreePhoenix888 commented Feb 16, 2024

Hi @FreePhoenix888, Thanks for reporting. I can't reproduce that, does that always happen? Could it be related to some graphics cards issues on your side? For me building and running from powershell runs ok.

Hi, @czoido ! What information could I provide to help us find it out?

To be honest, I'm not sure, what could be happening... A couple of things that may give us some hints...

  • If you resize the window, does something appear?
  • If you launch the exe from the windows explorer, does the same thing happen?
  • Are the shader files there besides the executable?
2024-02-16.20-34-35.mp4

In the video you may see that

  • 2 shader files are located with exe file
  • I am unable to resize window
  • The same happens if I launch by using explorer

Additional Info:
examples from official imgui repo are working for me, at least these:
https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx11
https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx12

@czoido
Copy link
Contributor

czoido commented Feb 16, 2024

Hi @FreePhoenix888, Thanks for reporting. I can't reproduce that, does that always happen? Could it be related to some graphics cards issues on your side? For me building and running from powershell runs ok.

Hi, @czoido ! What information could I provide to help us find it out?

To be honest, I'm not sure, what could be happening... A couple of things that may give us some hints...

  • If you resize the window, does something appear?
  • If you launch the exe from the windows explorer, does the same thing happen?
  • Are the shader files there besides the executable?

2024-02-16.20-34-35.mp4
In the video you may see that

  • 2 shader files are located with exe file
  • I am unable to resize window
  • The same happens if I launch by using explorer

Additional Info: examples from official imgui repo are working for me, at least these: https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx11 https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx12

This project uses opengl, are the opengl ones working for you? Maybe it could be some missing dll's?

@FreePhoenix888
Copy link
Author

opengl: glfw and win32 examples were working
Sdl is not because is not installed. As I see glfw and glew is user in this project
https://github.com/conan-io/examples2/assets/66206278/90bb78e8-2a16-44eb-afe3-786b9c82b507

Is there more info I can provide to find out are there missing dlls?

@czoido
Copy link
Contributor

czoido commented Feb 19, 2024

Maybe you can try to run the imgui example for opengl + glfw in case it is something wrong with the code. Try replacing the main.cpp from this repo with this: https://raw.githubusercontent.com/ocornut/imgui/master/examples/example_glfw_opengl3/main.cpp and build again.
Be aware that you have to add the path for the binding includes to build successfully:

#include "bindings/imgui_impl_glfw.h"
#include "bindings/imgui_impl_opengl3.h"

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

2 participants