John,<div><br></div><div>Look at vtkStructuredGridVolumeRepresentation, It passes a  &quot;ExtentTranslator&quot; to the view. The view uses the extent translator to build the KdTree. That&#39;s one of specifying the cuts. You can indeed provide a custom extent translator or if need be, that API can be extended to pass some other data-structure to extract the relevant information for ordered compositing. </div>
<div><br></div><div>For using opacity with polygonal data, simply go to the lookup table editor dialog and (in the advanced mode) you&#39;ll see a checkbox to &quot;Enable Opacity Function&quot;. Check that and you can specify the opacity function.</div>
<div><br></div><div>Utkarsh</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 10:49 AM, Biddiscombe, John A. <span dir="ltr">&lt;<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="color:#1f497d">Thanks Ken,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">My suspicions are confirmed. I had a poke around with the ordered compositing code (vtkOrderedCompositeDistributor et al) and saw that the BSP cuts from the D3 filter are set to match those from the PKDTree internally.
 I notice that in the BSPcuts code it says<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"> 
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608b4e;background:black">// Description:</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"> 
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608b4e;background:black">//   Initialize the cuts with arrays of information.  This type of</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"> 
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608b4e;background:black">//   information would be obtained from a graph partitioning software</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"> 
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608b4e;background:black">//   package like Zoltan.</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Do you know if there exists such an example. I am infact partitioning the data using Zoltan and have the exact bounds etc of the partitions, so I can work out what to pass into the BSPcuts  class and could potentially
 fool the IceT composiining into using my partitions. Can you point me to any crucial function that I must call. Is it sufficient to do a SetCuts on the compositing code – which class do I need to take control of?).<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">I shall create a custom representation to handle the depth sort. I’ve done the same some time ago for the point sprite renderer so I’ll manage that ok, but I’ll need to override the IceT compositing pass too
 as alluded to above , so any pointers welcome. (Could I somehow subclass on of the painters for the IceT pass and set the cuts to what I’ve got, then proceed as usual?)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">JB<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
 Moreland, Kenneth [mailto:<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>] <br>
<b>Sent:</b> 19 November 2012 16:13<br>
<b>To:</b> Biddiscombe, John A.<br>
<b>Cc:</b> <a href="mailto:paraview-developers@paraview.org" target="_blank">paraview-developers@paraview.org</a>; <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview-developers] (Ordered) Compositing question.<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">You are correct in that if you disable ordered composite it will disabled the distribution and the composite ordering. The problem is that the geometry distribution also creates a k-d tree structure that the compositing
 uses to determine the visibility order. So it would not be sufficient to simply have geometry that is in non-overlapping pieces. You would also have to provide some meta-structure that could be used to determine an appropriate ordering given a viewpoint. Even
 if you had that, there is no mechanism to feed that to the compositor in the view. I can&#39;t think of any way of doing that that would not be a huge hack.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">As far as I know, there is no support for the DepthSortPolyData filter. You would probably have to create a custom representation to support that. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I believe the transparent lookup table for poly data is supported in 3.98, but to be honest I have not yet tried it.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">-Ken<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">Sent from my iPad so blame autocorrect.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<br>
On Nov 19, 2012, at 3:46 AM, &quot;Biddiscombe, John A.&quot; &lt;<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I have geometry distributed into parallel pieces such that they are non overlapping and therefore compositing should only need to use a back to front sort last frame buffer operation with no redistribution of
 geometry.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">I’m worried that when I turn on transparency, paraview will try to redistribute my data, even though I have already partitioned it nicely for this. I’d like to use ordered sort last compositing at the top level,
 and use DepthSortPolyData on each node (no depth peeling for now) to ensure I get a true image. What isn’t clear to me is if I “disable ordered compositing” if this disables the transfer of geometry AND also disables the ordered compositing necessary for correct
 transparent blending (I may be confused here about the blend modes used or the term “ordered compositing” as used in the docs).<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">Is there written down anywhere a complete description of the pipelines used by the various rendering modes so that I can be sure the pipeline is doing what I want. I can create a custom representation which does
 what I want, but it’ll take time and if the existing mechanism support it, I shouldn’t need to.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">Also, I specifically want to use a transparent lookuptable, does the newer paraview 3.98 have anything to support this. I thought I’d seen a thread about this recently, but cannot find it now.<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">In summary : For the rendering, I’d like Ordered sort-last compositing, no geometry redistribution, Depth sort of polygons on each node. Transparent lookup table.<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">What settings should I use <span style="font-family:Wingdings">
J</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">Thanks<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">JB<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">--
</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">John Biddiscombe,                        email:biddisco @.at.@
<a href="http://cscs.ch" target="_blank">cscs.ch</a></span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><a href="http://www.cscs.ch/" target="_blank"><span style="color:windowtext">http://www.cscs.ch/</span></a></span><u></u><u></u></p>

<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">CSCS, Swiss National Supercomputing Centre  | Tel:  <a href="tel:%2B41%20%2891%29%20610.82.07" value="+41916108207" target="_blank">+41 (91) 610.82.07</a></span><u></u><u></u></p>

<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">Via Trevano 131, 6900 Lugano</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">,
 Switzerland   | Fax:  <a href="tel:%2B41%20%2891%29%20610.82.82" value="+41916108282" target="_blank">+41 (91) 610.82.82</a></span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <u></u><u></u></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org" target="_blank">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><u></u><u></u></span></p>
</div>
</blockquote>
</div></div></div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>