Hi VTKuser,<br><div class="gmail_quote"><br>I&#39;m trying to write a program with VTK 5.10.0 which will render a volume using<br>different color transfer functions (I will change it with the keyboard)<br><br>I use a vtkSmartVolumeMapper to use GPU rendering if possible, and fall to <br>

CPU raycast if not available.<br><br>The problem is that changing the color transfer function is not working if a<br>GPU is present. It will accept any vtkColorTransferFunction, but after doing<br>a first render, changing the color transfer will have no effect.<br>

This problem is not present if GPU acceleration is disabled by calling to <br>SetRequestedRenderModeToRayCast().<br><br>So I attach a minimal example. I will render a sphere in red color, then change the <br>vtkColorTransferFunction to green and do another render. I expected to see the <br>

sphere in green, but I get the sphere in red.<br><br>The change of color is done in line marked as TESTLINE2, and will not work if <br>the render() call in TESTLINE1 is executed. Disabling TESTLINE1 will produce <br>the desired color.<br>

<br>Does anybody know a method to change the color function after an initial render?<br><br>Thanks for your ideas...<br><br>
</div><br>