I'm just trying to visualise a 3D volume of a 83 dicom series loaded using ITK by using VTKvolume but the scene generated is just a 3d cube with the series diplayed on top an bottom sides of the cube, how can I view the whole series in all the dimensions ?<br>----------------------------------------------<br>//configuiring VTk<br>&nbsp;&nbsp;&nbsp; vtkRenderer* renderer = vtkRenderer::New();<br><br>&nbsp;&nbsp;&nbsp; vtkRenderWindow* renWin = vtkRenderWindow::New();<br><br>&nbsp;&nbsp;&nbsp; renWin-&gt;AddRenderer(renderer);<br><br>&nbsp;&nbsp;&nbsp; vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();<br><br>&nbsp;&nbsp;&nbsp; iren-&gt;SetRenderWindow(renWin);<br><br><br><br>&nbsp;&nbsp;&nbsp; // Create transfer mapping scalar value to opacity<br><br>&nbsp;&nbsp;&nbsp; vtkPiecewiseFunction* opacityTransferFunction = <br>&nbsp;&nbsp;&nbsp; vtkPiecewiseFunction::New();<br><br>&nbsp;&nbsp;&nbsp; opacityTransferFunction-&gt;AddPoint(20.0,
 0.0);<br><br>&nbsp;&nbsp;&nbsp; opacityTransferFunction-&gt;AddPoint(255.0, 0.2);<br><br>&nbsp;&nbsp;&nbsp; //Creating volume color <br>&nbsp;&nbsp;&nbsp; vtkColorTransferFunction * colorTransferFunction = vtkColorTransferFunction::New();<br>&nbsp;&nbsp;&nbsp; colorTransferFunction-&gt;AddRGBPoint(0.0, 0.0, 0.0, 0.0);<br>&nbsp;&nbsp;&nbsp; colorTransferFunction-&gt;AddRGBPoint(255.0, 1.0, 1.0, 1.0);<br><br>&nbsp;&nbsp;&nbsp; // The property describes how the data will look<br><br>&nbsp;&nbsp;&nbsp; vtkVolumeProperty* volumeProperty = vtkVolumeProperty::New();<br><br>&nbsp;&nbsp;&nbsp; volumeProperty-&gt;SetScalarOpacity(opacityTransferFunction);<br>&nbsp;&nbsp;&nbsp; volumeProperty-&gt;SetColor(colorTransferFunction);<br><br><br>&nbsp;&nbsp;&nbsp; // The mapper / ray cast functions know how to render the data<br><br>&nbsp;&nbsp;&nbsp; vtkVolumeRayCastCompositeFunction* compositeFunction = vtkVolumeRayCastCompositeFunction::New();<br><br>&nbsp;&nbsp;&nbsp;
 vtkVolumeRayCastMapper* volumeMapper = vtkVolumeRayCastMapper::New();<br><br>&nbsp;&nbsp;&nbsp; volumeMapper-&gt;SetVolumeRayCastFunction(compositeFunction);<br><br>&nbsp;&nbsp;&nbsp; volumeMapper-&gt;SetInput(connector-&gt;GetOutput());<br><br>&nbsp;&nbsp;&nbsp; //creating the camera<br>&nbsp;&nbsp;&nbsp; vtkCamera *aCamera = vtkCamera::New();<br>&nbsp;&nbsp;&nbsp; aCamera-&gt;SetViewUp (0, 0, -1);<br>&nbsp;&nbsp;&nbsp; aCamera-&gt;SetPosition (0, 1, 0);<br>&nbsp;&nbsp;&nbsp; aCamera-&gt;SetFocalPoint (0, 0, 0);<br>&nbsp;&nbsp;&nbsp; aCamera-&gt;ComputeViewPlaneNormal();<br>&nbsp;&nbsp;&nbsp; renderer-&gt;SetActiveCamera(aCamera);<br>&nbsp;&nbsp;&nbsp; aCamera-&gt;Dolly(1.5);<br>&nbsp;&nbsp;&nbsp; renderer-&gt;ResetCamera();<br>&nbsp;&nbsp;&nbsp; renderer-&gt;ResetCameraClippingRange();<br><br>&nbsp;&nbsp;&nbsp; // The volume holds the mapper and the property and can be used to position/orient the volume<br><br>&nbsp;&nbsp;&nbsp; vtkVolume* volume =
 vtkVolume::New();<br><br>&nbsp;&nbsp;&nbsp; volume-&gt;SetMapper(volumeMapper);<br><br>&nbsp;&nbsp;&nbsp; volume-&gt;SetProperty(volumeProperty);<br><br>&nbsp; <br>&nbsp;&nbsp;&nbsp; renderer-&gt;AddVolume(volume);<br>&nbsp;&nbsp;&nbsp; renderer-&gt;SetBackground(1,1, 1);<br><br>&nbsp;&nbsp;&nbsp; iren-&gt;Start();<br><BR><BR><p>&#32;
                <hr size=1>Stay in the know. Pulse on the new Yahoo.com. <a href="http://us.rd.yahoo.com/evt=42974/*http://www.yahoo.com/preview"> Check it out.</a>