-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
opengl_3d_example #606
opengl_3d_example #606
Conversation
Hello Johnathan, |
Exists some simulators that needs a virtual 3d/2d world and to simplify the interaction is added some GUI, like: https://github.com/SIRLab/VSS-Vision and https://github.com/roboime/ssl-sim, both working with robot soccer. |
Oh I totally get why you want to use ImGui in a 3d application, this is what I do all the time :)
I'm interested in your feedback about this. How else do you think the code/documentation/example could be improved that would have helped you? Thanks! |
I started trying to use freeglut3, but bugs happen when I defined the world in parameters of glut and ImGui, bugs like:
|
Perhaps a case of selecting/not-selecting current shader. If you used the GL2 code it doesn't know about shader, so you may need to call glUseProgram(0) on your side before calling render. I will a add more explicit comment about that. Have you noticed this comment in README.txt:
I will add it to the opengl_example/ code as well. |
I Understand, I will test this. |
It works =) |
@johnfercher You contribution lives on! = ) Check out https://github.com/valera-rozuvan/opengl-sample-with-imgui . |
Nice @valera-rozuvan, Thx =). |
Dear Omar,
I'm using the ImGui in some projects where I created a 3D World and I realized, there aren't a simple example of how to do that. So I made this pull request with an adaptation of opengl_example with this, to do that I used Glew and added some libs on Makefile, I only was able to test the Makefile with Ubuntu 14.04.
Example:
![3d](https://cloud.githubusercontent.com/assets/4752636/14766318/23842098-09db-11e6-987e-721476bf7338.png)
Sincerely,
Johnathan Fercher