[vtk-developers] Re: vtkProjectedTetrahedraMapper & IndependantComponents
Randall Hand
randall.hand at gmail.com
Wed Apr 5 15:07:33 EDT 2006
oops.. Image attached for real :)
On 4/5/06, Randall Hand <randall.hand at gmail.com> wrote:
>
> 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.
>
> By modifying it to pass them through the colormap/opacitymap functions it
> works marvelously :) Image attached.
>
> Filed as Bug #3098 :
> http://www.vtk.org/Bug/bug.php?op=show&bugid=3098&pos=1
>
> btw, I can't get the bugsite to mail me my password so I had to create a
> new one.. Email b0rked?
>
>
> On 4/5/06, Randall Hand <randall.hand at gmail.com> wrote:
> >
> > 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) ?
> >
> >
> > On 4/5/06, Randall Hand <randall.hand at gmail.com > wrote:
> > >
> > > Sending this to vtkUsers because i'm tired of fighting against the 40k
> > > VTK-Developers limit.
> > >
> > >
> > > 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.
> > >
> > > 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.
> > >
> > > --
> > > Randall Hand
> > > Visualization Scientist,
> > > ERDC-MSRC Vicksburg, MS
> > > Homepage: http://www.yeraze.com
> > >
> > >
> > >
> > > --
> > > Randall Hand
> > > Visualization Scientist,
> > > ERDC-MSRC Vicksburg, MS
> > > Homepage: http://www.yeraze.com
> > >
> > >
> >
> >
> > --
> > Randall Hand
> > Visualization Scientist,
> > ERDC-MSRC Vicksburg, MS
> > Homepage: http://www.yeraze.com
> >
>
>
>
> --
> Randall Hand
> Visualization Scientist,
> ERDC-MSRC Vicksburg, MS
> Homepage: http://www.yeraze.com
>
--
Randall Hand
Visualization Scientist,
ERDC-MSRC Vicksburg, MS
Homepage: http://www.yeraze.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20060405/6c37e1b1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.jpg
Type: image/jpeg
Size: 21505 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20060405/6c37e1b1/attachment-0001.jpg>
More information about the vtk-developers
mailing list