Open jiangwei221 opened 5 years ago
MacBook Pro, 10.14.3, Intel Iris Graphics 550 1536 MB
Python 3.6.7 :: Anaconda, Inc.
glumpy 1.0.6 PyOpenGL 3.1.0 PyOpenGL-accelerate 3.1.0
any suggestion or workaround?
I think the reason is that I do not have a depth buffer. After attaching the depth buffer:
texture = np.zeros((1024, 1024, 4),np.float32).view(gloo.TextureFloat2D)
depth_buffer = np.zeros((1024, 1024, 1),np.float32).view(gloo.TextureFloat2D)
framebuffer = gloo.FrameBuffer(color=[texture], depth=depth_buffer)
I got the following error:
File "///miniconda3/lib/python3.6/site-packages/glumpy-1.0.6-py3.6-macosx-10.7-x86_64.egg/glumpy/gloo/framebuffer.py", line 423, in _attach
'FrameBuffer attachments are incomplete.')
RuntimeError: FrameBuffer attachments are incomplete.
and following code are not working:
texture = gloo.ColorBuffer(1024, 1024)
depth_buffer = gloo.DepthBuffer(1024, 1024)
stencil_buffer = gloo.StencilBuffer(1024, 1024)
framebuffer = gloo.FrameBuffer(color=texture, depth=depth_buffer, stencil=stencil_buffer)
framebuffer.activate()
Error:
miniconda3/lib/python3.6/site-packages/glumpy-1.0.6-py3.6-macosx-10.7-x86_64.egg/glumpy/gloo/framebuffer.py in _attach(self)
432 'is not renderable.')
433 elif res == gl.GL_FRAMEBUFFER_UNSUPPORTED:
--> 434 raise RuntimeError('Combination of internal formats used '
435 'by attachments is not supported.')
RuntimeError: Combination of internal formats used by attachments is not supported.
Can you look into the demos the ones that used a framebuffer to check if they're working on your machine?
Hi:
I'm trying to render a Voronoi diagram to numpy array using the rasterizer.
Here is my code:
It can successfully render a Voronoi map to the app window
But failed to render correctly to the texture.
Thank you for your time!