MantisBT - ParaView
View Issue Details
0011298ParaViewBugpublic2010-10-07 11:282011-09-01 13:31
Dave DeMarle 
Andy Bauer 
highminoralways
closedfixed 
 
3.12 
0011298: upper limit on number of colors in colormap
We appear to be limited to a fixed maximum number of colors in the color map.

The attached state file demonstrates the problem. Turning off "Use Discrete Colors" on the edit color map dialog should result in a smooth rainbow. So should typing in a really large number in the Resolution field. In 3.8.1 the upper limit is 256. In 3.9 it is 1024.

See COLOR_TEXTURE_MAP_SIZE in vtkScalarsToColorsPainter.cxx for where those limits come from. With Use Discrete off this limit shouldn't be hit at all.
No tags attached.
? colorlimit.pvsm (149,852) 2010-10-07 11:28
https://www.vtk.org/Bug/file/8438/colorlimit.pvsm
Issue History
2010-10-07 11:28Dave DeMarleNew Issue
2010-10-07 11:28Dave DeMarleFile Added: colorlimit.pvsm
2010-10-07 12:28Ken MorelandNote Added: 0022438
2010-10-21 14:46Andy BauerNote Added: 0022651
2010-11-04 12:11Andy BauerStatusbacklog => tabled
2010-11-04 12:11Andy BauerAssigned To => Andy Bauer
2010-11-04 12:16Andy BauerNote Added: 0022834
2010-11-04 12:16Andy BauerStatustabled => @80@
2010-11-04 12:16Andy BauerFixed in Version => Development
2010-11-04 12:16Andy BauerResolutionopen => fixed
2010-11-08 18:07Alan ScottNote Added: 0023090
2010-11-08 18:07Alan ScottStatus@80@ => closed
2011-09-01 13:31Utkarsh AyachitFixed in VersionDevelopment => 3.12

Notes
(0022438)
Ken Moreland   
2010-10-07 12:28   
I believe there is a technical reason for the implicit limit, which is that table lookups are much faster than computing it from the interpolated control points, particularly when there are many control points.
(0022651)
Andy Bauer   
2010-10-21 14:45   
I've put a fix for this up for review at http://review.source.kitware.com. [^] Look under Id Ic0d7f4fa. VTK is passing all tests that were passing without the change so I think it works but I'm not that familiar with this code so I'm putting it at gerrit for review.
(0022834)
Andy Bauer   
2010-11-04 12:16   
Fixed in SHA f3c935c1050450fb647d03c1e9121e97b9689746

The limit is now set properly to GL_MAX_TEXTURE_SIZE. The slider bar in Color Scale Editor Resolution now goes between 2 and 2048 but the user can enter a larger number as well.
(0023090)
Alan Scott   
2010-11-08 18:07   
Tested local server, Windows, trunk.