<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<title>Re: [Paraview] Transparency based on scalar</title>
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Tim,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">A workaround may be to create your own color map which includes alpha values. In Object Inspector, Display tab, Color panel, Edit Color Map… you can choose
from a set of preset color maps, and Import your own. I have used Export on an existing one to save as xml, then edited or written new xml color map, and Imported that although I never played with alpha values.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I have noticed in the interactive Color Scale Editor GUI some color maps allow you to interactively set alpha while at other times they do not ! Perhaps something
to do with the type of dataset? In which case you may be stuck? ie volumes allow alpha, surfaces don't? You might even try interactive editing first, by clicking in the color bar in the Color Scale Editor you can add new points, dragging those up or down changes
opacity, as does manually entering a value in the Opacity box, but sometimes that is disabled. Someone out there must know the reasons behind this? but perhaps there are enough clues here for you to make something work for you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> cheers Dave<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:gray">David Pont</span><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:gray"><br>
Scientist - Forest Management Science<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:gray">Scion<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:gray">49 Sala Street, Private Bag 3020, Rotorua 3046, New Zealand<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:gray">DDI +64 7 343 5663<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://www.scionresearch.com/"><span style="font-size:10.0pt">www.scionresearch.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><img border="0" width="107" height="17" id="Picture_x0020_4" src="cid:image001.png@01CBCC24.C93258C0" alt="cid:image001.png@01CB098E.0C2330F0"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> paraview-bounces@paraview.org [mailto:paraview-bounces@paraview.org]
<b>On Behalf Of </b>Moreland, Kenneth<br>
<b>Sent:</b> Sunday, 13 February 2011 7:16 p.m.<br>
<b>To:</b> gtg085x@mail.gatech.edu; paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] Transparency based on scalar<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">If I understand your question, this is not directly supported. Although in volume rendering you can set opacity based on the scalar value, in
surface rendering you cannot. There is an entry in ParaView UserVoice for this feature. If you feel ParaView should support this feature, you should go to this UserVoice link and vote for it. It will help ParaView developers determine which features to
next implement.<br>
<br>
<a href="http://paraview.uservoice.com/forums/11350-general/suggestions/1354583-transparency-opacity-in-surface-color-map?ref=title">http://paraview.uservoice.com/forums/11350-general/suggestions/1354583-transparency-opacity-in-surface-color-map?ref=title</a><br>
<br>
It may be possible to have a filter to create a field of colors with alpha value and then render dependent colors. I know of no existing filters that already do that, though.<br>
<br>
-Ken<br>
<br>
<br>
On 2/11/11 6:48 PM, "Tim Gallagher" <<a href="tim.gallagher@gatech.edu">tim.gallagher@gatech.edu</a>> wrote:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Hi,<br>
<br>
I would like to set the transparency of something based on a scalar. For example, if I took a Slice of a dataset, I would like to make it transparent based on, say, density gradient such that zero-gradient is transparent and some value indicates opaque.<br>
<br>
I haven't seen any existing filters to indicate this is possible. Is there a filter that does it? Is it something that's even possible to do through, say, a programmable filter?<br>
<br>
We're just getting into scripting with Paraview and it takes us a long time to figure out how to even do simple things, so before I spin my wheels on this one, I'd like to get some expert opinions on if it's even feasible.<br>
<br>
Thanks,<br>
<br>
Tim<br>
_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><br>
</span><span style="font-size:10.0pt;font-family:Consolas"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <u><span style="color:blue"><a href="kmorel@sandia.gov">kmorel@sandia.gov</a><br>
</span></u>** *** ** phone: (505) 844-8919<br>
*** web: <u><span style="color:blue"><a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a></span></u></span><o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
<br>
Discover Scion at SCIENCE IN THE PARK – our free open day.<br>
Saturday 12 March 2011, 9am to 3pm, 49 Sala Street, Rotorua.<br>
www.scionresearch.com/science-in-the-park<br>
<br>
This e-mail and any attachments may contain information which is confidential or subject to copyright. If you receive this e-mail in error, please delete it.<br>
Scion does not accept responsibility for anything in this e-mail which is not provided in the course of Scion’s usual business or for any computer virus, data corruption, interference or delay arising from this e-mail.<br>
</font>
</body>
</html>