[vtkusers] vtkRayCaseVolume mapper in VTK 4.0

Charl P. Botha c.p.botha at its.tudelft.nl
Fri Dec 20 13:44:36 EST 2002


On Fri, Dec 20, 2002 at 09:42:30PM +0300, Alex Romadinoff wrote:
> When I use short or double type for data array and do
> SetDataScalarTypeTo{Short|Double} the resultant rendered image is empty.
> 
> When I use unsigned char for data transition, volume is visualized well.
> 
> What's up ?
> Is vtkVolumeRayCastMapper works only for unsigned char data ?

>From Rendering/vtkVolumeRayCastMapper.cxx:
  if (scalarType != VTK_UNSIGNED_SHORT && scalarType != VTK_UNSIGNED_CHAR)
    {
    vtkErrorMacro ("Cannot volume render data of type "
                   << vtkImageScalarTypeNameMacro(scalarType)
                   << ", only unsigned char or unsigned short.");
    return;
    }

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list