[vtkusers] How to set four independent lookup functions for RGBA ?

Yi-Yu Chou chouyiyu at hotmail.com
Thu Aug 12 13:32:25 EDT 2004


Hi vtk users :

I am trying to build a lookup table with four independent lookup functions 
for RGBA components.
I have tried vtkColorTransferFunction, but it seems not flexible enough 
for me. Because it can't be used to build independent lookup functions for 
RGBA, and it only deals with RGB components.

I know there is a way to do it for volume rendering, and it's like :

opa = vtkpiecewiseFunction()
color = vtkColorTransferFunction()
volumeProperty = vtkVolumePorperty()
volumeProperty.SetColor(opa)
volumeProperty.SetColor(color)
volume = vtkVolume()
volume.SetMapper(mapper)
volume.SetProperty(volumeProperty)
...........................................................................................................................................

However, I need to implement it by texture mapping.

How should I do ? Any suggestions would be appreciated !!!!!
Thanks in advance.

Yi-Yu

_________________________________________________________________
現在就上 MSN 會員目錄:在線上結交新朋友,找到興趣相投的夥伴 
http://members.msn.com?pgmarket=zh-tw 




More information about the vtkusers mailing list