[Solved][vtkusers] How apply color mapping on volume with a lut.

Francois Louis LAILLIER flaillier at eldim.fr
Tue Feb 27 05:44:20 EST 2007


Hi every body after search and test I solve myself this problem, to
apply a color mapping on volume render by ray casting we need do that.
(Under Visual Basic)

 

Dim lut As vtkColorTransferFunction
Set lut = New vtkColorTransferFunction
lut.AddRGBPoint 0#, 0#, 0#, 0#
lut.AddRGBPoint 64#, 1#, 0#, 0#
lut.AddRGBPoint 128#, 0#, 0#, 1#
lut.AddRGBPoint 192#, 0#, 1#, 0#
lut.AddRGBPoint 255#, 0#, 0.2, 0#
 
Dim property As new vtkVolumeProperty
 
property.SetColor_3 lut
 
Before I have used the setcolor function and the console say me that
applying of color canceled.
 
 

 

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


More information about the vtkusers mailing list