View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011298ParaViewBugpublic2010-10-07 11:282011-09-01 13:31
ReporterDave DeMarle 
Assigned ToAndy Bauer 
PriorityhighSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.12 
Summary0011298: upper limit on number of colors in colormap
DescriptionWe 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.
TagsNo tags attached.
Project
Topic Name
Type
Attached Files? file icon colorlimit.pvsm [^] (149,852 bytes) 2010-10-07 11:28

 Relationships

  Notes
(0022438)
Ken Moreland (manager)
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 (developer)
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 (developer)
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 (manager)
2010-11-08 18:07

Tested local server, Windows, trunk.

 Issue History
Date Modified Username Field Change
2010-10-07 11:28 Dave DeMarle New Issue
2010-10-07 11:28 Dave DeMarle File Added: colorlimit.pvsm
2010-10-07 12:28 Ken Moreland Note Added: 0022438
2010-10-21 14:46 Andy Bauer Note Added: 0022651
2010-11-04 12:11 Andy Bauer Status backlog => tabled
2010-11-04 12:11 Andy Bauer Assigned To => Andy Bauer
2010-11-04 12:16 Andy Bauer Note Added: 0022834
2010-11-04 12:16 Andy Bauer Status tabled => @80@
2010-11-04 12:16 Andy Bauer Fixed in Version => Development
2010-11-04 12:16 Andy Bauer Resolution open => fixed
2010-11-08 18:07 Alan Scott Note Added: 0023090
2010-11-08 18:07 Alan Scott Status @80@ => closed
2011-09-01 13:31 Utkarsh Ayachit Fixed in Version Development => 3.12


Copyright © 2000 - 2018 MantisBT Team