[vtkusers] problems with rendering using ray casting

peterm madapeti at gmail.com
Wed Sep 21 14:11:12 EDT 2011


Hi

It seems that the opacity transfer function specification is commented out
in your code for some reason.
I don't know what the default behavior should be, but did you try using some
proper values within the range of the volume intensities? What I mean is
that if using the values in your code that are commented out, and the max
value in the volume is lets say 1, than getting a blank screen is the
expected behavior.

Assuming a 0 255 range for the volume, what happens if you use:

opacity_transfer_function->AddPoint(0, 1.0);
opacity_transfer_function->AddPoint(255, 1.0);

Peter


--
View this message in context: http://vtk.1045678.n5.nabble.com/problems-with-rendering-using-ray-casting-tp4825037p4827311.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list