View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014350ParaView(No Category)public2013-10-23 03:522014-01-11 08:39
Reporterthorenz 
Assigned ToDan Lipsa 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version4.0 
Target VersionFixed in Version4.1 
Summary0014350: "Color Map Editor" -> "Enable opacity ..." extremely slow and throws errors
DescriptionBug report is for Paraview 4.0.1-394-g0bf0d74 64bit, git-pull on 2013-10-13

When extracting a slice from an unstructured dataset, coloring it with a variable, opening "Color Map Editor" and checking "Enable opacity ..." get extremely slow and throws gazillions of errors:

ERROR: In /tmp/ParaView/VTK/Common/Core/vtkDataArray.cxx, line 469
vtkFloatArray (0x1f1809d0): The number of components do not match the number requested: 3 != 1


Bye,

Carsten
TagsNo tags attached.
ProjectParaViewPro
Topic Name14350-opacity-interpolate-scalars
Typeperformance
Attached Fileszip file icon simple.zip [^] (531,079 bytes) 2013-10-29 03:39

 Relationships

  Notes
(0031717)
thorenz (reporter)
2013-10-23 03:57

Addon: I tried to color on the basis of the velocity field (3d-vector). If I choose a scalar, it works o.k., no errors.
(0031718)
thorenz (reporter)
2013-10-23 03:59

Workaround: Compute magnitude of the velocity with the calculator, use the result
(0031720)
Alan Scott (manager)
2013-10-23 17:33

Thorenz,
I tried to replicate this, and could not. Could you please provide us exact steps how to replicate this error (complete with dataset)? For instance, that works is:
Linux, master, local server.
Open Can.exo (from the ParaView data), all variables on, apply.
Color by ACCL.
Color Editor/ Enable Opacity.
I tried magnitude, and X, and Y.
No errors were thrown, which is very likely that is slowing you down.
(0031763)
thorenz (reporter)
2013-10-29 03:41

Hi Alan,

here are the steps to reproduce:

- unpack attached file
- load OpenFOAM-dataset "result.foam"
- extract slice
- Select as "Coloring" cellbased U
- Edit colormap
- Enable opacity mapping and update

Now it should throw some errors.

Bye,

Carsten
(0031770)
Alan Scott (manager)
2013-10-29 13:01

I did replicate this bug.
(0031854)
Utkarsh Ayachit (administrator)
2013-11-14 16:09

Another way to reproduce:

+ Sphere, Apply.
+ RandomVectors, Apply
+ Color by BrownianVectors
+ Uncheck "Interpolate Scalars Before Mapping"
+ Edit colormap
+ Enable opacity mapping and update

The problem is vtkDiscretizableColorTransferFunction::MapScalars(...).
It's asssuming scalars is single component as well as it's using the "slow" API to access data.
(0031883)
Dan Lipsa (developer)
2013-11-29 14:18

Paraview commits:
commit f3ab2b0348c2e256e007249704e66ae17238ac40
Author: Dan Lipsa <dan.lipsa@kitware.com>
Date: Fri Nov 22 14:31:04 2013 -0500

    Add documentation to 'Interpolate Scalars Before Mapping' check box.
    
    Change-Id: I37d96061fcda8498707972ce9e243860b539bbbe

VTK commits:
commit 92f48c6f056be1041c00f46d8bc9fc6e336bbe69
Author: Dan Lipsa <dan.lipsa@kitware.com>
Date: Mon Nov 25 10:27:50 2013 -0500

    Test for generating opacity from vectors (multi-component scalars).
    
    We either select one component or compute the vector magnitude.
    We test vtkMapper::InterpolateScalarsBeforeMapping on or off.
    
    Change-Id: I9ed01063c6858dca99297311c509e1fea0f2099d

commit caf6bf1d44104804422d7e3559dbad6e9914b536
Author: Dan Lipsa <dan.lipsa@kitware.com>
Date: Fri Nov 22 14:34:11 2013 -0500

    Compute opacity corectly for vectors.
    
    Compute either vector magnitude or select the correct component. Use data
    pointers instead of general api for accessing tuples.
    
    Change-Id: Ie7bfbb276aacb7c652b61ffe64111bc7f4181ed4

commit 358a5887480e3ffe636e3ed805d852e52894cd2a
Author: Dan Lipsa <dan.lipsa@kitware.com>
Date: Thu Nov 21 17:15:06 2013 -0500

    Remove VTK_USE_DISPLAY from CMakeLists, cxx and h.in files.
    
    This variable is not set anywhere, only tested. Additional tests
    are included because of this change : tcl:squadViewer,
    cxx:RenderNonFinite, SurfacePlusEdges, TestLabelPlacementMapper
    
    Change-Id: I1ffa1462d6fb4aed3fb0ee60ec94ffae93b48fe0

(0031895)
Utkarsh Ayachit (administrator)
2013-12-04 11:56

Topics merged into master:
        14295_search_text
        14342-integrate-empty-servers
(VTK) 14350-opacity-interpolate-scalars
        14424_fix_copy_paste
        14428_expand_valid_range
        export-tensor-glyph
        fix-streaming-behavior
        fix_SLAC_tools_segfault
        improve-selection-inspector
        make-sciberquest-module
        pv-collaboration-fix
(VTK) pvweb-doc-update
        pvweb-fix-start-test-names
        pvweb-group-pattern-option
(VTK) pvweb-integrate-test-packages-alternate
(VTK) pvweb-session-manager-url-update
        pvwev-select-box-for-viewport-selection
        sqtk-cmake-warnings
(VTK) update_vtk_master
(0032003)
Alan Scott (manager)
2013-12-17 21:23

Tested Linux, master, remote server.

 Issue History
Date Modified Username Field Change
2013-10-23 03:52 thorenz New Issue
2013-10-23 03:57 thorenz Note Added: 0031717
2013-10-23 03:59 thorenz Note Added: 0031718
2013-10-23 17:33 Alan Scott Note Added: 0031720
2013-10-29 03:39 thorenz File Added: simple.zip
2013-10-29 03:41 thorenz Note Added: 0031763
2013-10-29 13:02 Alan Scott Note Added: 0031770
2013-11-14 16:09 Utkarsh Ayachit Note Added: 0031854
2013-11-14 16:09 Utkarsh Ayachit Assigned To => Dan Lipsa
2013-11-19 16:23 Dan Lipsa Topic Name => 14350-opacity-interpolate-scalars
2013-11-19 16:23 Dan Lipsa Status backlog => active development
2013-11-29 14:18 Dan Lipsa Note Added: 0031883
2013-11-29 14:18 Dan Lipsa Status active development => gatekeeper review
2013-11-29 14:18 Dan Lipsa Resolution open => fixed
2013-12-04 11:55 Utkarsh Ayachit Fixed in Version => git-next
2013-12-04 11:56 Utkarsh Ayachit Status gatekeeper review => customer review
2013-12-04 11:56 Utkarsh Ayachit Note Added: 0031895
2013-12-17 21:23 Alan Scott Note Added: 0032003
2013-12-17 21:23 Alan Scott Status customer review => closed
2014-01-09 08:47 Utkarsh Ayachit Fixed in Version git-next => git-master
2014-01-11 08:39 Utkarsh Ayachit Fixed in Version git-master => 4.1


Copyright © 2000 - 2018 MantisBT Team