-
Notifications
You must be signed in to change notification settings - Fork 590
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
Scene viewer as a widget in a window #368
Comments
I played with this briefly-
And it didn't work immediately. The widget would be a nice abstraction for sure, seems like it would however require a lot of re- implementation. |
At least, below example does work, right?
But it doesn't work with other widget like |
I successfully implemented the widget that visualizes If you run this script, the window looks like below: It supports multiple Another thing, this is a bit out of the scope of this issue, but I felt cc @kalekundert |
Oh neat! Yeah definitely, maybe included as something like: What do you think? Your example looked pretty much ready to go, though if you could add a few docstrings it would be nice. With regards to including |
Nice. First of all, I sent PR about |
I'm totally cool with it, of course! Feel free to copy code over as needed. |
Thanks, @mmatl ! |
Added in #387. Thanks for the PR! |
To use SceneViewer as a widget in a window (for real application with buttons, labels, and additional image widgets), glooey looks good.
(
trimesh.SceneViewer
is apyglet.Window
by itself, so we can create multiple windows but we cannot tile multipleSceneViewer
in a single window.)Does anyone know any other options?
In glooey, it creates
pyglet.Window
and add Widgets (e.g.,glooey.Image
) to that.So, in order to render
trimesh.Scene
ortrimesh.Trimesh
in a widget, we need creates a custom widget (e.g,TrimeshSceneViewerWidget
), which is similar totrimesh.viewer.SceneViewer
.Here is a workaround of this (actually it still doesn't work): https://gist.github.com/wkentaro/d8cc30c6634389db02ba53adb7b934b2
The text was updated successfully, but these errors were encountered: