-
Notifications
You must be signed in to change notification settings - Fork 53
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
Calling VisualizationSceneSolution3d from own application #274
Comments
I have succeeded to recreate a GLVis scene: ` // 0: use_soln, 1: use_vector_soln, 2: mesh SDLMainLoop(); I would like to encapsulate the SDLoutput from GLVis in a QT Window. I need more information about this SDLMainLoop(). How can I for example call required functions from a render() subfunction? Any ideas / recomendations / help greatly appreciated. Best Regards, |
I'm not really sure if it is possible to use an SDL2 application (GLVis) inside a Qt application (your application). Maybe you can check the SDL2 forums and issues, see https://www.libsdl.org. |
Yes, I studied SDL a bit and quickly realized that it would not be the smartest thing to do. I have mounted the core glvis code into a sdl imgui application, and I was able to run glvis frame within the imgui example application, with few minor problems, such as SDL already being open, etc. Like many visualization applications GLVis consists of multiple threads / workers that does different things, is that correct? What points should I handle when running it as an SDL app inside an sdl application? Best Regards, |
Yes, GLVis uses C++ threads.
I think you are the first to explore that. I suspect that as long as the events in the GLVis window are handled, things should work mostly fine. |
Hello,
I would like to use glVis for my own magnetometer calibration software. For this I am trying to use glVis as a library within QTCreator. I have solved all the dependency issues. And I have attempted to create a new VisualizationSceneSolution3d with a mesh and solution, and then callint SDLMainLoop(true), but it crashes.
And when I debugged it I got:
Indicating a problem with renderer.
How can I programmatically visualize a mesh, using glVis library within my own application?
Best Regards,
Can
The text was updated successfully, but these errors were encountered: