mesh
mesh copied to clipboard
Error running on Virtual Machine
I tries running Mesh on Ubuntu Virtual Machine. meshviewer view teddy.obj give result
INFO:root:started remote viewer on port 61956
What do i do next!!
Same here. How do I access with just a port? HELPPPP!
Same issue here, please help!
There could be several issues. I'm not connected with the project. However, I may be able to provide some insight.
First, try running meshviewer open
instead.
It may be that meshviewer
is failing and not outputting an error when run with the view
option. Doing this, I got a Python traceback containing
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
This meant that glut
, the OpenGL Utility Toolkit used for rendering things like windows, wasn't available on the system.
- For a Debian based distro (e.g. Ubuntu), running
sudo apt-get install freeglut
was sufficient to render a window and show the object. - For other GNU/Linux systems, use the appropriate package manager (e.g.
yum
,rpm
, etc.) to install GLUT–the package will be named similarly tofreeglut
. Search the internet or relevant package archive for the correct name. - For Windows, you'll likely have success with PyOpenGL packaged by Christoph Gohlke (https://www.lfd.uci.edu/%7Egohlke/pythonlibs/#pyopengl). He's a researcher from University of California, Irvine who compiles and hosts Python packages requiring binaries. His version of PyOpenGL includes GLUT. (Python pip doesn't really package binaries, hence Gohlke and hence Conda). The usual warnings apply for installing binaries: If you don't trust them, don't install them!
Running meshviewer open
may produce a different error. If it does, try pasting the error output here.
Second, mesh
may not be able to render within a virtual machine. For example, VirtualBox on Windows doesn't grant machines access to the GPU. Therefore, while the application may function, the GPU related parts may not. The same may be true for virtualization on GNU/Linux. (EDIT: It looks like QEMU supports GPU virtualization. So, it may be that you need to enable GPU support for your machine.)