[vtkusers] vtkFixedPointVolumeRayCastMapper producing incorect results.
Kevin H. Hobbs
hobbsk at ohiou.edu
Fri Nov 7 12:07:28 EST 2008
On Friday 07 November 2008 11:28:23 am Amy Squillacote wrote:
> Are you using the same color and opacity transfer functions in both cases?
>
> - Amy
>
They should be very nearly the same.
In PV I just selected the black body colors and moved the first point to 0. So
the max was left at the dataset max of 24821.
In VTK I set high and low on the command line to 0 and 2.8e4. the opacity and
Color were:
// Opacity
vtkPiecewiseFunction * opacity
= vtkPiecewiseFunction::New();
opacity->AddPoint( low, 0.0 );
opacity->AddPoint( high, 1.0 );
// Color
vtkColorTransferFunction * color_trans
= vtkColorTransferFunction::New();
color_trans->AddRGBPoint( low, 0.0, 0.0, 0.0 );
color_trans->AddRGBPoint( low + 1.0 * ( high - low ) / 3.0, 1.0, 0.0, 0.0 );
color_trans->AddRGBPoint( low + 2.0 * ( high - low ) / 3.0, 1.0, 1.0, 0.0 );
color_trans->AddRGBPoint( high, 1.0, 1.0, 1.0 );
This same opacity and color transfer function code block works fine with the
unstructured grid mappers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081107/0048ce38/attachment.pgp>
More information about the vtkusers
mailing list