<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#cae2b4>
<DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>can somebody tell me how to make the
exterior of an image transparent? I need only the "middle".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance!</FONT></DIV>
<DIV><FONT face=Arial size=2>Istvan Matis</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Below is my code: -I tried to map an image on
a plane as a texture. It will generate an error, that it couldn't find any
scalar! What is that?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> vtkPlaneSource *
tPlaneSource=vtkPlaneSource::New();</FONT></DIV>
<DIV><FONT face=Arial size=2> vtkThresholdTextureCoords *
thresh=vtkThresholdTextureCoords::New();<BR> thresh->SetInput((vtkDataSet
*)tPlaneSource->GetOutput());<BR> thresh->ThresholdByUpper(0.5);<BR> vtkDataSetMapper
*tDataSetMapper_Plane=vtkDataSetMapper::New();<BR> tDataSetMapper_Plane->SetInput(thresh->GetOutput());<BR> vtkPolyData
*temp=tPlaneSource->GetOutput();<BR> tDataSetMapper_Plane->SetScalarRange(temp->GetScalarRange()); <BR> anActor_Reslice->SetMapper(tDataSetMapper_Plane);<BR> <BR> vtkTexture
*
tTexture=vtkTexture::New();<BR> tTexture->SetInput(anImageReslice->
GetOutput());<BR> tTexture->InterpolateOn();</FONT></DIV>
<DIV><FONT face=Arial
size=2> anActor_Reslice->SetTexture(tTexture);
//nothing will happen, image will be "black", error will be
generated<BR></DIV></FONT></BODY></HTML>