Hi Evan,

This is already supported in VTK for the volume mapper. You can have a
single array with either 2 components and set them as dependent components
via vtkVolumeProperty
<http://www.vtk.org/doc/nightly/html/classvtkVolumeProperty.html#aea26cdad334f47cf078c3ab9f1b70764>.
This feature is not exposed in ParaView but it would just be a matter of
creating the GUI elements and adding a filtering step to combine two arrays
into a single two-component array.

For polygonal data, can’t think of a better route than the one suggested by
Utkarsh i.e. manually map the arrays through the lookup tables and create
an RGBA array. Make sure to uncheck Map Scalars to use the RGBA values
directly. Having said that, this can also be implemented as a feature on
the vtkPolyDataMapper similar to the volume mapper.

Hope that helps,
Sankhesh


From: Utkarsh Ayachit
[utkarsh.ayac...@kitware.com](mailto:utkarsh.ayac...@kitware.com)
<http://mailto:[utkarsh.ayac...@kitware.com](mailto:utkarsh.ayac...@kitware.com)>
To: Evan Kao [tos...@gmail.com](mailto:tos...@gmail.com)
<http://mailto:[tos...@gmail.com](mailto:tos...@gmail.com)>
Cc: ParaView [paraview@paraview.org](mailto:paraview@paraview.org)
<http://mailto:[paraview@paraview.org](mailto:paraview@paraview.org)>
Bcc:
Date: Thu, 29 Jun 2017 10:55:45 -0400
Subject: Re: [Paraview] Use separate arrays for colormap and opacity
One option is to use “Python Programmable Filter” to generate an RGBA
array in which you do the color and opacity mapping yourself. You
won’t have access to the color and opacity transfer ParaView sets up,
but you can create your own internally. Not the most elegant solution
— but a solution, nonetheless.

Utkarsh

​
-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to