Comments (9)
Which offscreen renderer are you using (pyglet, EGL, osmesa)?
from pyrender.
I tried egl and osmesa.
I just tried using the script and model from the quickstart "minimal example of offscreen rendering" and when i run it using either egl or osmesa i get the following error
OpenGL.error.NullFunctionError: Attempt to call an undefined function glGenVertexArrays, check for bool(glGenVertexArrays) before calling
maybe i did not install something correctly?
Sorry for the rookie questions - 3D rendering is a new area for me.
from pyrender.
No stress! Make sure to follow the instructions for installing OSMesa if you're using that (see here: https://pyrender.readthedocs.io/en/latest/install/index.html#getting-pyrender-working-with-osmesa). For EGL, some NVIDIA drivers work with it, while some don't - it can be a bit finnicky.
from pyrender.
@flugenheimer Were you able to fix your issue?
from pyrender.
Hi @mmatl ,
I ran into the same problem.
Attached is my code:
py_render.txt
-
It gives following error when I use a monitor:
File "/home/user/anaconda3/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 407, in call
self.name, self.name,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glGenVertexArrays, check for bool(glGenVertexArrays) before calling -
It gives following errors when I use SSH:
File "/home/user/anaconda3/lib/python3.7/site-packages/pyrender/viewer.py", line 347, in init
self._init_and_start_app()
File "/home/user/anaconda3/lib/python3.7/site-packages/pyrender/viewer.py", line 995, in _init_and_start_app
height=self._viewport_size[1])
File "/home/user/anaconda3/lib/python3.7/site-packages/pyglet/window/xlib/init.py", line 170, in init
super(XlibWindow, self).init(*args, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/pyglet/window/init.py", line 592, in init
config = screen.get_best_config(config)
File "/home/user/anaconda3/lib/python3.7/site-packages/pyglet/canvas/base.py", line 197, in get_best_config
raise window.NoSuchConfigException()
pyglet.window.NoSuchConfigException
Could you please help to give some advice?
Thanks.
from pyrender.
@mmatl: I tried installing osmesa again first by using the .deb file, which did not solve the issue, and then by building it from source, which also did not help.
so i am still kind of stuck - is there another way to test if it has been installed correctly?
from pyrender.
Also tried it on another pc with a GTX 1080, with driver: 390.116
could not get EGL to work
from pyrender.
Hi @mmatl ,
I ran into the same problem.
Attached is my code:
py_render.txt
- It gives following error when I use a monitor:
File "/home/user/anaconda3/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 407, in call
self.name, self.name,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glGenVertexArrays, check for bool(glGenVertexArrays) before calling- It gives following errors when I use SSH:
File "/home/user/anaconda3/lib/python3.7/site-packages/pyrender/viewer.py", line 347, in init
self._init_and_start_app()
File "/home/user/anaconda3/lib/python3.7/site-packages/pyrender/viewer.py", line 995, in _init_and_start_app
height=self._viewport_size[1])
File "/home/user/anaconda3/lib/python3.7/site-packages/pyglet/window/xlib/init.py", line 170, in init
super(XlibWindow, self).init(*args, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/pyglet/window/init.py", line 592, in init
config = screen.get_best_config(config)
File "/home/user/anaconda3/lib/python3.7/site-packages/pyglet/canvas/base.py", line 197, in get_best_config
raise window.NoSuchConfigException()
pyglet.window.NoSuchConfigExceptionCould you please help to give some advice?
Thanks.
hello, have you solved the second error, I got the same error and don't know solve it.
from pyrender.
os.environ['PYOPENGL_PLATFORM'] = 'egl'
For those who try to do offscreen like me with this line, might get this error above. Removing this line helps.
from pyrender.
Related Issues (20)
- Disabling mipmapping on textures
- How to define a glass/gold/metal Texture?
- Rendering light HOT 2
- error in material.SpecularGlossinessMaterial()
- Request for Assistance: Obtaining Pixel-to-Face Index in Pyrender
- BROKEN LINK: Google colab notebooks HOT 1
- Invalid device ID (0), Pyrender NOT working on Python 3.10 HOT 5
- Inverted triangles?
- How to retrieve intrinsic camera parameters from PerspectiveCamera
- Textures rendering slanted
- Sphere Rendered with Non-reflective Material Not Appearing Black
- offscreen error
- 'Viewer' object has no attribute 'render'. Did you mean: '_render'?
- Interpolation artifacts in segmentation masks.
- Unable to get color on running the bottle example code HOT 1
- Wrong depth rendering in WSL-ubuntu environment
- Path3D type error when loading trimesh scene
- GLB is not rendered correctly HOT 1
- How to properly merge the Scenes from multiple trimeshes?
- Request for Release of Tag 0.1.46 with auto_start Option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrender.