New issue 14 by thibault...@gmail.com: Glumpy fails: "Too many vertex
shader texture samplers"
http://code.google.com/p/glumpy/issues/detail?id=14
What steps will reproduce the problem?
1. install glumpy
2. run any demo
What is the expected output? What do you see instead?
See a matrix out of simple.py.
Instead, a black window shows up. Error message:
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 313, in 'calling callback function'
File "/usr/lib/python2.7/site-packages/glumpy/window/backend_glut.py",
line 237, in _display
self.dispatch_event('on_draw')
File "/usr/lib/python2.7/site-packages/glumpy/window/event.py", line 349,
in dispatch_event
if handler(*args):
File "simple.py", line 41, in on_draw
image.draw( x=0, y=0, z=0, width=fig.width, height=fig.height )
File "/usr/lib/python2.7/site-packages/glumpy/image/image.py", line 207,
in draw
self._filter.activate( self._texture )
File "/usr/lib/python2.7/site-packages/glumpy/image/filter.py", line 172,
in activate
self.build()
File "/usr/lib/python2.7/site-packages/glumpy/image/filter.py", line 279,
in build
self._shader = Shader(self._vertex_code, self._fragment_code)
File "/usr/lib/python2.7/site-packages/glumpy/graphics/shader.py", line
91, in __init__
self._link()
File "/usr/lib/python2.7/site-packages/glumpy/graphics/shader.py", line
147, in _link
raise ShaderException, 'Linking: '+ log
glumpy.graphics.shader.ShaderException: Linking: Too many vertex shader
texture samplers
What version of the product are you using? On what operating system?
glumpy 0.2.1
Linux 2.6.41.4-1.fc15.x86_64 #1 SMP x86_64 x86_64 GNU/Linux
Mesa DRI Intel(R) Sandybridge Mobile
2.1 Mesa 7.11
Please provide any additional information below.
Attached: glxinfo
Attachments:
glx.info 12.0 KB
From mesa sources, it seems that the "Too many vertex shader texture
samplers" relates to the maximum number of texture unit but glumly uses
only 2. Do you know if the intel driver provides more than one texture
unit ?
In any case, I will have to add some test on the configuration and provides
alternative.
No idea if more than one texture unit is provided by that driver. I will
try to know more about that.
It seems that only a single texture unit is provided by these GC. Are 2 of
them mandatory ? (I haven't really read the code yet :))
BTW, is that project still active ?
That's bad. One texture is used to represent the array and the other is
used as a colormap so yes, two texture units is mandatory unfortunately.
Could you try to show a MxNx3 matrix ? (this would require only one texture
unit).
And yes, project is still alive but I'm a bit busy until end of February.
At that time, I will update glumpy and handle all the bug reports.