Skip to content

Why does Open3d Visualization disappear when I left click the window? #4964

Answered by joschi1212
joschi1212 asked this question in Q&A
Discussion options

You must be logged in to vote

Finally I found a solution: Adding a Scenewidget to a gui container doesn't seem to work. But encapsulating it inside a frame and move it to the right side and add it directly to the window works.
_widget3d.frame = gui.Rect(500, w.content_rect.y, 900, w.content_rect.height)
Creating a frame for the gui in a similar way is also possible.

Here is the working code for anyone interested:

class WindowApp:

    def __init__(self):
        self.window = gui.Application.instance.create_window("Spinnables", 1400, 900)
        w = self.window

        # member variables
        self.model_dir = ""
        self.model_name = ""

        em = w.theme.font_size
        # 3D Widget
        _widget3d = …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joschi1212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant