[vtkusers] Help vtkPNMReader

tom fogal tfogal at apollo.sr.unh.edu
Thu Dec 9 23:48:53 EST 2004


 <20041210044019.61A541CE304 at ws1-6.us4.outblaze.com>"Anderson Cordeiro" writes:
>This is my first try with volume rendering in VTK. I have 188 ppm files and wa
>nt to use them to view a volume. The following code works, but shows only a bl
>ack box. What is wrong/missing?
>
<snip>
>        vtkPNMReader *pnm = vtkPNMReader::New();
>        pnm->SetDataExtent(0,103,0,127,0,188);
>        pnm->SetFilePrefix("..\\PPM-Imgs\\a_vm1001-m.ppm");
>
>// volume stuff
<snip>
>        volumeMapper->SetInput(pnm->GetOutput());

Try a 'pnm->Update()' call before you try to get the output.

Just an idea... good luck.

-tom



More information about the vtkusers mailing list