[vtkusers] Transparency in VTK

John Eke tonee47 at yahoo.com
Thu Sep 24 14:48:39 EDT 2009


Look in the VTK API for a class called vtkProperty. vtkProperty::SetOpacity is what you want. Most actors have a get property method. So you can do:

actor->GetProperty()->SetOpacity (0.5);

That will give you exactly what you need

- John E




________________________________
From: Arsham Mesbah <arsham at uga.edu>
To: vtkusers at vtk.org
Sent: Thursday, September 24, 2009 2:44:54 PM
Subject: [vtkusers] Transparency in VTK

Is there any way in VTK that we can change or set the transparency factor?! Let say we have an object that is is visualized (a surface) and we want to change the transparency factor to 50% or change it so it will become see through (Not wire frame or anything! ) just see through! 

-- 
Sincerely Yours,
Arsham Mesbah
University of Georgia
Department of Computer Science
415 Graduate Studies Research Center
Athens, GA 30602
Web: cs.uga.edu/~ars



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090924/a4726203/attachment.htm>


More information about the vtkusers mailing list