View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010708VTK(No Category)public2010-05-12 09:402014-10-05 15:07
Reporterxabi riobe 
Assigned ToCory Quammen 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version6.2.0 
Summary0010708: vtkMapper::InterpolateScalarsBeforeMappingOn interfers with 2D actor
DescriptionIn 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.
Additional Informationpicture 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.
TagsNo tags attached.
Project
Type
Attached Filescpp file icon ColorBug.cpp [^] (5,044 bytes) 2010-05-12 09:40
png file icon good.png [^] (5,598 bytes) 2010-05-12 09:41


png file icon bad.png [^] (5,609 bytes) 2010-05-12 09:41


cpp file icon ColorBug-6.0.cpp [^] (5,009 bytes) 2013-09-30 03:46

 Relationships

  Notes
(0030902)
Jean-Christophe Fillion-Robin (manager)
2013-06-05 14:24

Does the problem still occur with VTK 5.10 ? VTK 6 ?
(0031655)
xabi riobe (reporter)
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 (developer)
2014-10-02 21:35

Possible fix with test here:

http://review.source.kitware.com/#/t/4792/ [^]
(0033585)
Cory Quammen (developer)
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

 Issue History
Date Modified Username Field Change
2010-05-12 09:40 xabi riobe New Issue
2010-05-12 09:40 xabi riobe File Added: ColorBug.cpp
2010-05-12 09:41 xabi riobe File Added: good.png
2010-05-12 09:41 xabi riobe File Added: bad.png
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2012-03-07 04:09 xabi riobe Status expired => backlog
2012-03-07 04:09 xabi riobe Resolution open => reopened
2013-06-05 14:24 Jean-Christophe Fillion-Robin Note Added: 0030902
2013-09-30 03:46 xabi riobe File Added: ColorBug-6.0.cpp
2013-09-30 03:48 xabi riobe Note Added: 0031655
2014-10-02 21:35 Cory Quammen Note Added: 0033561
2014-10-02 21:35 Cory Quammen Assigned To => Cory Quammen
2014-10-02 21:35 Cory Quammen Status backlog => gerrit review
2014-10-05 15:07 Cory Quammen Note Added: 0033585
2014-10-05 15:07 Cory Quammen Status gerrit review => closed
2014-10-05 15:07 Cory Quammen Resolution reopened => fixed
2014-10-05 15:07 Cory Quammen Fixed in Version => 6.2.0


Copyright © 2000 - 2018 MantisBT Team