Unfortunately, VTK doesn&#39;t support what most people think of as 2-dimensional transfer functions in Volume Mapping.<br><br>Look in the vtkVolumeProperty and you&#39;ll see an option for &quot;IndependentComponents&quot;.&nbsp; Using that, you can switch it through a few modes:
<br>1) Map each scalar through it&#39;s own COlor &amp; Opacity, and composite the results<br>2) Map the first scalar through color, and the second scalar through OPacity<br>3) Use the first 3 scalars as RGB directly, and map the 4th scalar through opacity.
<br><br>Using the Array-Calculator, and probably some custom code, you should be able to write code to generate a dataset with an RGBA (4-element) vector field and method #3 to get what you want.<br clear="all"><br>-- <br>
----------------------------------------<br>Randall Hand <br>Visualization Scientist<br>ERDC MSRC-ITL
<br><br><div><span class="gmail_quote">On 7/24/07, <b class="gmail_sendername">tony marrero</b> &lt;<a href="mailto:tony.marrero@gmail.com">tony.marrero@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi guys,</div>
<div>&nbsp;</div>
<div>I am trying to implement a&nbsp;Multi Dimensional &nbsp;transfer function design; similar to the work done by Kindlmann and Kniss et Al.</div>
<div>I have not found anything useful in VTK to achieve this,&nbsp; there was also a similar question posted a few years ago but there was no response, i dont know if now more people are aware of how this can be achieved.</div>


<div>&nbsp;</div>
<div>In VTK,&nbsp;i have found&nbsp;colour and&nbsp;opacity mappings&nbsp;that take their domain from&nbsp;<strong>either</strong> scalar values&nbsp;or gradient lookup tables, but not both simultaneously.</div>
<div>I would like to have greater control over the rendering process , find&nbsp;a way to set colour and opacities to particular voxels of my choosing.</div>
<div>&nbsp;</div>
<div>Can someone kindly tell me how this can be achieved, or at least guide me in the correct direction.</div>
<div>&nbsp;</div>
<div>Thanks in advance,</div><span class="sg">
<div>&nbsp;</div>
<div>Tony Marrero</div>
</span><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br>