You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Update]
For the error, my fixture is at Line 1091 and 1096:
num_samples = min(glGetIntegerv(GL_MAX_SAMPLES), 4) # No more than GL_MAX_SAMPLES
glRenderbufferStorageMultisample(GL_RENDERBUFFER, num_samples, GL_RGBA, self.viewport_width, self.viewport_height)
glRenderbufferStorageMultisample(GL_RENDERBUFFER, num_samples, GL_DEPTH_COMPONENT24, self.viewport_width, self.viewport_height)
For the problem of empty images, I also use explicit flags. After digging into the offscreen.py, I find RenderFlags.OFFSCREEN is added automatically, so there is no need to explicitly use RenderFlags.OFFSCREEN in flags.
if self._platform.supports_framebuffers():
flags |= RenderFlags.OFFSCREEN
...
else:
# If your platform doesn't support framebuffers, it cannot render with `RenderFlags.OFFSCREEN`.
...
So argument flags should not contain RenderFlags.OFFSCREEN.
I am running the second example code from the quickstart changing/adding this part of the code:
And it works fine. However, when I ask it to work with OSMESA at the beginning of the code with:
I get the following error:
This would be useful for anyone wanting to work via ssh and without the need to render color (which is particularly our case)
Thank you!
The text was updated successfully, but these errors were encountered: