Hey there,
I am using VTK, I create several planes and set a texture on them with a for loop.
I total 43 different ones.
A snipped of my code. I a loop, where texture[i] is a list of textures:
texturePlane = vtk.vtkTextureMapToPlane()
texturePlane.SetInputConnection(aPlane.GetOutputPort())
texturePlane.AutomaticPlaneGenerationOn()
polarMapper = vtk.vtkPolyDataMapper()
polarMapper.SetInputConnection(texturePlane.GetOutputPort())
PolarActor = vtk.vtkFollower()
PolarActor.SetMapper(polarMapper)
PolarActor.SetTexture(texture[i])
PolarActorlist.append(PolarActor)
and then
for i in PolarActorlist:
renderer.AddActor(i)
Unfortunately I get the error:
ERROR:root:Hardware does not support the number of textures defined.
Does anyone know how I deal with this problem?
Regards,