-
Notifications
You must be signed in to change notification settings - Fork 51
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
Render to external window #757
Comments
Maybe we're passing different params to ogre2 when creating the render window? the params that are passed to ogre2 when creating the render window can be found here: you can see that we are setting the |
I did a simple demo using ogre2 directly with Qt, but setting the |
The diff based on ogre's doc is that One thing to try is modify this line in gz-rendering to create a window of proper size and see if it attaches to the external window that you have. Some additional details: In gazebo, we're currently just creating a 1x1 window for initializing ogre. Then we do a trick in gz-gui that tells Qt window to render the texture generated by the user camera we created in ogre. |
This is ultimately what I want to do, but I am using QWidgets and have been unsuccessful in making this work using QOpenglWidget. Do you have or no of any examples where this has been used with QWidgets? |
Here is my old post where I have a minimal example I was trying to get working. If I can get things working I would contribute back to this repository as an example similar to the gazebo qml example. I have it partially working using the drawPixel command but once I add anything to the environment which has transparency it has issues. If the object with transparency is in view of the camera that color takes up the entire screen. If it goes out of view everything is normal. I will create a video and post. |
Is this fixed by #992? |
How to render to external window? I was expecting if I set the
winID
to the QWidget window id that it would draw the content to this location. This works if I use ogre2 directly so not sure why this does not work here.The text was updated successfully, but these errors were encountered: