MantisBT - VTK
View Issue Details
0010708VTK(No Category)public2010-05-12 09:402014-10-05 15:07
xabi riobe 
Cory Quammen 
normalminoralways
closedfixed 
 
6.2.0 
0010708: vtkMapper::InterpolateScalarsBeforeMappingOn interfers with 2D actor
In the following example there is a cube with scalars on the PointData, and a lut is applied to its mapper.
There is also a line with a 2D actor in the scene.
If InterpolateScalarsBeforeMappingOn is not called on the cube's mapper, the line is correctly red, but if it is called, then it looks like the cube lut is interferring with the rendering of the line.
And if there is more 2D actors, the first one that is added to the renderer always presents the same problem.
picture good.png shows the line correctly rendered in red when InterpolateScalarsBeforeMapping is Off on the cube's mapper.
picture bad.png shows the wrong rendering of the line when InterpolateScalarsBeforeMapping is On.
No tags attached.
cpp ColorBug.cpp (5,044) 2010-05-12 09:40
https://www.vtk.org/Bug/file/8106/ColorBug.cpp
png good.png (5,598) 2010-05-12 09:41
https://www.vtk.org/Bug/file/8107/good.png
png

png bad.png (5,609) 2010-05-12 09:41
https://www.vtk.org/Bug/file/8108/bad.png
png

cpp ColorBug-6.0.cpp (5,009) 2013-09-30 03:46
https://www.vtk.org/Bug/file/9536/ColorBug-6.0.cpp
Issue History
2010-05-12 09:40xabi riobeNew Issue
2010-05-12 09:40xabi riobeFile Added: ColorBug.cpp
2010-05-12 09:41xabi riobeFile Added: good.png
2010-05-12 09:41xabi riobeFile Added: bad.png
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2012-03-07 04:09xabi riobeStatusexpired => backlog
2012-03-07 04:09xabi riobeResolutionopen => reopened
2013-06-05 14:24Jean-Christophe Fillion-RobinNote Added: 0030902
2013-09-30 03:46xabi riobeFile Added: ColorBug-6.0.cpp
2013-09-30 03:48xabi riobeNote Added: 0031655
2014-10-02 21:35Cory QuammenNote Added: 0033561
2014-10-02 21:35Cory QuammenAssigned To => Cory Quammen
2014-10-02 21:35Cory QuammenStatusbacklog => gerrit review
2014-10-05 15:07Cory QuammenNote Added: 0033585
2014-10-05 15:07Cory QuammenStatusgerrit review => closed
2014-10-05 15:07Cory QuammenResolutionreopened => fixed
2014-10-05 15:07Cory QuammenFixed in Version => 6.2.0

Notes
(0030902)
Jean-Christophe Fillion-Robin   
2013-06-05 14:24   
Does the problem still occur with VTK 5.10 ? VTK 6 ?
(0031655)
xabi riobe   
2013-09-30 03:48   
The problem is still there with VTK 5.10 and VTK 6.0
I updated the example code to be used with 6.0
(0033561)
Cory Quammen   
2014-10-02 21:35   
Possible fix with test here:

http://review.source.kitware.com/#/t/4792/ [^]
(0033585)
Cory Quammen   
2014-10-05 15:07   
Fix in

commit 37259c004230d1a96994f6c702591198828602c8
Author: Cory Quammen <cory.quammen@kitware.com>
Date: Thu Oct 2 21:30:03 2014 -0400

    BUG 10708: Fix vtkPolyDataMapper2D color mapping
    
    If another actor in the scene enabled GL_TEXTURE_2D and the
    vtkPolyDataMapper2D's input had a texture coordinate attribute, the
    vtkPolyDataMapper2D would apply the texture map while mapping the
    input. Fix by disabling GL_TEXTURE_2D if ScalarVisbility is off.
    
    Change-Id: I187cafe3bebe03082be04e0f65b140f3f6b3ad67