Hi all,
I’m getting some problems running Panda3d on cluster.
On my laptop the following code works for both Win and Linux and I can render to texture off-screen:
def init(self):
# Initialize the ShowBase class from which we inherit, which will
# create a window and set up everything we need for rendering into it.
ShowBase.init(self, windowType = ‘offscreen’)
On the cluster I get this error:
Known pipe types:
glxGraphicsPipe
(all display modules loaded.)
:display:x11display(error): Could not open display ":0.0".
:ShowBase(warning): Unable to open 'offscreen' window.
Traceback (most recent call last):
File "./masonry_to_buffer.py", line 44, in <module>
cpi = ChronoPandaInterface.OffscreenRender()
File "/hpc/home/simone.benatti/codes/vision/ChronoPandaInterface/OffscreenRen$
ShowBase.__init__(self, windowType = 'offscreen')
File "/hpc/home/simone.benatti/miniconda3/envs/pychrono/lib/python3.6/site-pa$
self.openDefaultWindow(startDirect = False, props=props)
File "/hpc/home/simone.benatti/miniconda3/envs/pychrono/lib/python3.6/site-pa$
self.openMainWindow(*args, **kw)
File "/hpc/home/simone.benatti/miniconda3/envs/pychrono/lib/python3.6/site-pa$
self.openWindow(*args, **kw)
File "/hpc/home/simone.benatti/miniconda3/envs/pychrono/lib/python3.6/site-pa$
raise Exception('Could not open window.')
Exception: Could not open window.
Note that OpenGL is missing, could my issue be related to this?
glxinfo | grep “OpenGL version”
Error: unable to open display
Thanks,
Simone