[vtkusers] prob. with colors in vtkVRMLExporter

Galen Wilkerson galen at sp1.compbio.washington.edu
Fri Oct 11 23:29:01 EDT 2002


Hi,

I am using a vtkVRMLExporter to create .wrl files.

For some reason, everything is either blue or black in the output file.

Does anyone know how to get the VRML output to truly match the VTK 
rendering?  My 3-d objects are not very complex:


 def write_vrml(self,event):
        vrml = vtkVRMLExporter()
        vrml.SetInput(self.renWin)

        vrml_filename = self.abs_file_name + ".wrl"
        vrml.SetFileName(vrml_filename)
        vrml.Write()
        print "Wrote VRML output: ", vrml_filename



I don't think it matters, but the render window is created by using a 
vtkTKRenderWidget:



 self.root = Tk()

 self.vtk_tkrenwigt = vtkTkRenderWidget(self.root, height = 800, width = 
800)

 self.renWin = self.vtk_tkrenwigt.GetRenderWindow()



thanks,
Galen Wilkerson

-- 
Computational Biology Research Group
http://compbio.washington.edu/
phone: 206 732 6127
fax: 206 732 6055




More information about the vtkusers mailing list