Hi ,<br><br>I want to create a RGBA volume in order to do some volume rendering.<br>I would like to create a volume voxel by voxel, then fill each pixel with different values of R, G, B and A.<br><br>Is there any convenient method to do it in VTK?<br>
How should I proceed to create each voxel?<br><br>From what I read, I should create a vtkImageData, set the dimension, scalar type, number of scalar components, origin...<br>Then fill it (R,G,B and A values) with a for loop using vtkImageData-&gt;GetScalarPointer(i,j,k).<br>
<br>Then if I map the data then add it in an actor, would the output volume be a rgba volume? Indeed, it seems that the color and alpha information are always passed through the vtk transfer function which I can&#39;t use in my case.<br>
<br>Would this method work and would it be fast enough to create/modify/update a 500*500*100 volume while interacting on different parameters?<br><br>Thanks!<br><br>Nicolas<br><pre><br></pre><br><br><br>