oops.. Image attached for real :)<br><br><br><div><span class="gmail_quote">On 4/5/06, <b class="gmail_sendername">Randall Hand</b> <<a href="mailto:randall.hand@gmail.com">randall.hand@gmail.com</a>> 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 style="direction: ltr;">Ok, I found the issue. Related to that last discovery, it looks like the Map2DependantComponents is suffering from a bit of "hasty cut-n-paste" from the Map4DependantComponents function. The two scalar fields are never passed through the lookup tables, so the first field is directly mapped to R, G, & B and the 4th field (which technically doesn't exist) is mapped to the opacity.
<br><br>By modifying it to pass them through the colormap/opacitymap functions it works marvelously :) Image attached.<br><br>Filed as Bug #3098 : <a href="http://www.vtk.org/Bug/bug.php?op=show&bugid=3098&pos=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.vtk.org/Bug/bug.php?op=show&bugid=3098&pos=1</a><br><br>btw, I can't get the bugsite to mail me my password so I had to create a new one.. Email b0rked?</div><div style="direction: ltr;"><span class="e" id="q_10a6b72bb36944a9_1">
<br><br><div><span class="gmail_quote">On 4/5/06,
<b class="gmail_sendername">Randall Hand</b> <<a href="mailto:randall.hand@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">randall.hand@gmail.com</a>> 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 style="direction: ltr;">Also, while I'm at it... In the vtkProjectedTetrahedraMapper.cxx around line 394 (Map2DependantComponents) is that a typo that you set colors[3] = scalars[3]? Shouldn't it be scalars[1] (2 components afterall) ?
</div><div style="direction: ltr;"><span><br><br><div>
<span class="gmail_quote">On 4/5/06, <b class="gmail_sendername">Randall Hand</b> <<a href="mailto:randall.hand@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">randall.hand@gmail.com</a>
> 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 style="direction: ltr;"><span style="font-style: italic;">Sending this to vtkUsers because i'm tired of fighting against the 40k VTK-Developers limit.</span></div><div style="direction: ltr;"><span>
<br><span class="gmail_quote"><br></span><div style="direction: ltr;"><div style="direction: ltr;">
Does the vtkProjectedTetrahedraMapper work
with 2 or 4 component datasets? I have a dataset with a 2-component
scalar field (after alot of processing) where I want the first
component mapped to color and the the 2nd to opacity. Unfortunatly I
seem to get the 2nd component mapped to both opacity & a grayscale
colormap.
<br><br>I've attached 2 images. the first (test-decent.jpg) is with a
single-component scalar mapped to both, showing kinda how I expect it.
I modify it to add the extra component for opacity, which should just
make the top half of the image (above the sphere) transparent.
According to all the stats I gather on the resulting scalar field, it
looks good (number of points, number of components, ranges, magnitudes,
etc all look right). The second (
test.jpg) is with the dual-component scalar showing what comes out.<br clear="all"></div></div><div style="direction: ltr;"><span><span></span><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS
<br>Homepage:
<a href="http://www.yeraze.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.yeraze.com</a>
</span></div><br clear="all"><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.yeraze.com</a>
</span></div><br clear="all"></blockquote></div><br><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.yeraze.com</a>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.yeraze.com</a>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com">http://www.yeraze.com</a>