<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=hz-gb-2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am trying to use filter vtkShepardMethod to
resample the points set to a structured points set and try to volume render the
dataset. The code for this pipeline is : </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkVolumeRayCastMapper *volumeMapper =
vtkVolumeRayCastMapper::New();<BR> volumeMapper->SetInput(shepard->GetOutput());<BR> volumeMapper->SetVolumeRayCastFunction(compositeFunction);<BR></DIV></FONT>
<DIV><FONT face=Arial size=2>Here is the error information i get:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ERROR: In
d:\nightly\vtk\graphics\vtkVolumeRayCastMapper.cxx, line
912<BR>vtkVolumeRayCastMapper (0x00307180): The scalar data type: 10 is not
supported when volume rendering. Please convert the data to unsigned char
or unsigned short.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Does vtkVolumeRayCast only support the data type of
unsigned char or unsigned short? If yes, how to convert the data set this two
types?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Bo</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>