bill-jiang commited on
Commit
26344c4
1 Parent(s): 44c4801

Fix render

Browse files
Files changed (3) hide show
  1. app.py +0 -3
  2. packages.txt +8 -1
  3. render.py +4 -0
app.py CHANGED
@@ -1,7 +1,4 @@
1
  import os
2
- os.environ['DISPLAY'] = ':0.0'
3
- os.environ['PYOPENGL_PLATFORM'] = 'egl'
4
- os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
5
  os.system('pip install /home/user/app/pyrender')
6
  os.system('pip install pyglet==1.4.0a1')
7
  os.system('pip install triangle==20220202')
 
1
  import os
 
 
 
2
  os.system('pip install /home/user/app/pyrender')
3
  os.system('pip install pyglet==1.4.0a1')
4
  os.system('pip install triangle==20220202')
packages.txt CHANGED
@@ -1 +1,8 @@
1
- xvfb
 
 
 
 
 
 
 
 
1
+ libgl1
2
+ unzip
3
+ ffmpeg
4
+ libsm6
5
+ libxext6
6
+ libgl1-mesa-dri
7
+ libegl1-mesa
8
+ libgbm1
render.py CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  from argparse import ArgumentParser
3
  import numpy as np
4
  import OpenGL.GL as gl
 
1
 
2
+ import os
3
+ os.environ['DISPLAY'] = ':0.0'
4
+ os.environ['PYOPENGL_PLATFORM'] = 'osmesa'
5
+ os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
6
  from argparse import ArgumentParser
7
  import numpy as np
8
  import OpenGL.GL as gl