[vtkusers] (no subject)

Vincenzo Mormino viciomor at tin.it
Tue Mar 18 10:24:15 EST 2003


Hello  i have a  problem with a vrml class and Volume rendering.
The message that go in to the screen is 
 
<vtkVRMLExporter (0x009DD8E0): no actors found for writing VRML file.>
 
The part of code for this problem is:
 
 
            vtkVolumeTextureMapper2D *VolumeTextureMapper =
vtkVolumeTextureMapper2D::New();
            vtkVRMLExporter *esportazione = vtkVRMLExporter::New();

            vtkVolumeRayCastCompositeFunction *compositeFunction =
vtkVolumeRayCastCompositeFunction::New();
            compositeFunction->SetCompositeMethodToInterpolateFirst();
 
            vtkVolumeRayCastIsosurfaceFunction *iso =
vtkVolumeRayCastIsosurfaceFunction::New();
            vtkVolumeRayCastMIPFunction *mip =
vtkVolumeRayCastMIPFunction::New();
            mip->SetMaximizeMethodToOpacity();
 
            //compositeFunction->SetCompositeMethodToInterpolateFirst();
 
            vtkVolumeRayCastMapper *volumeMapper =
vtkVolumeRayCastMapper::New();
            volumeMapper->SetVolumeRayCastFunction(compositeFunction);
            volumeMapper->SetInput(v16->GetOutput());
            volumeMapper->SetSampleDistance(0.3);
            //volumeMapper->SetImageSampleDistance(1.0);
 
            VolumeTextureMapper->SetInput(v16->GetOutput());
            
            vtkVolume *Volume = vtkVolume::New();
 Volume->SetMapper(volumeMapper);   (or
Volume->SetMapper(VolumeTextureMapper))
 
            Volume->SetProperty(volumeProperty);
            ren1->SetBackground(0.8,0.8,0.8);
            ren1->AddVolume(Volume);
            renWin->AddRenderer(ren1);
            renWin->SetSize(300,300);
            renWin->Render();
            esportazione->SetInput(renWin);
            //esportazione->SetFilePrefix("encefalo.wrl");
            esportazione->SetFileName("c:\\encefalo.wrl");
            esportazione->SetSpeed(5.5);
            esportazione->Write();
            iren->SetRenderWindow(renWin);
            iren->Start();
 
 
The vtkVRMLExporter works with volume rendering and with vtkVolume??
Can you help me to find the solution of this problem please thanks!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030318/da85fec2/attachment.htm>


More information about the vtkusers mailing list