eth-ait / aitviewer

A set of tools to visualize and interact with sequences of 3D data.
MIT License
532 stars 47 forks source link

able to run test code, but returns a blank page #61

Open Aricling opened 1 week ago

Aricling commented 1 week ago

i'm running the test demo provided in https://eth-ait.github.io/aitviewer/ and here is my code on my remote linux server:

from aitviewer.viewer import Viewer
from aitviewer.configuration import CONFIG as C

C.update_conf({'smplx_models':'/home/guoling/HOIs/all_body_models'})

if __name__ == '__main__':
    v = Viewer()
    v.scene.add(SMPLSequence.t_pose())
    v.run()

Meanwhile, I use the XQuartz for visualization, after running python test_viewer.py, the terminal returns:

image

and an aitviewer page pumps out, but the page is only a blank page like this:

image

I have tried many times, but it's always a blank page, my xeyes command can work and cv2.imshow can work too(when using opencv-python). I'm using opencv-python-headless version for aitviewer but it just doesn't work. Hope someone can help, thanks a lot!

kaufManu commented 6 days ago

I am not entirely sure what your setup is here but I'm assuming you are trying to X forward the aitviewer output to your local machine from a Linux server? I have no experience with XQuartz unfortunately. You could try to swap the window type to pyglet instead of Qt, but I doubt that this will change anything:

from aitviewer.configuration import CONFIG as C
from aitviewer.viewer import Viewer
C.update_conf({"window_type": "pyglet"})
v = Viewer()
v.run()

Other than that I would simply avoid X forwarding and use the remote viewer capabilities to transfer data via TCP.