<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hey Denis,<br><br>That works !!<br>now the program is running, but i am not getting the desired results. I do get a rendered image , but it looks far from a volume rendering. I need to work on it more to narrow down on the possible causes, but here are a few observations : <br><br>The initialization : <br><br><span style="font-weight: bold;">volumeMapperSoftware.SetVolumeRayCastFunction(new </span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkVolumeRayCastCompositeFunction());</span><br><br>gave an error with<span style="font-weight: bold;"> vtkFixedPointVolumeRayCastMapper</span>. I changed it to <span style="font-weight: bold;">vtkVolumeRayCastMapper </span>and it fixed it. But with this mapper, I had to change the data type by using vtkImageCast, and it
 worked.<br>Maybe i am messing things up while converting the image data??<br>Is there a way i can use the volume mapper I was using originally ??<br><br>Any insights?<br><br>I really appreciate your help so far.<br><br><br><br>--- On <b>Tue, 11/3/09, Denis Barbier <i>&lt;bouzim@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Denis Barbier &lt;bouzim@gmail.com&gt;<br>Subject: Re: [vtkusers] Java EXCEPTION_ACCESS_VIOLATION<br>To: "Divye" &lt;zombi2_84@yahoo.com&gt;<br>Cc: vtkusers@vtk.org<br>Date: Tuesday, November 3, 2009, 4:55 AM<br><br><div class="plainMail">On 2009/10/25 Divye wrote:<br>&gt;<br>&gt; Hi All,<br>&gt;<br>&gt; I am trying to run a program for 3d rendering of DICOM images , using java on win vista 32 - bit using vtk 5.4.2 and am getting the following EXCEPTION_ACCESS_VIOLATION.<br>[...]<br>&gt; &nbsp;&nbsp;&nbsp; private boolean setupRendererMIP()
 {<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; volumeProperty.SetColor(colorTransferFunction);<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; volumeProperty.SetScalarOpacity(opacityTransferFunction);<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; volumeProperty.SetInterpolationTypeToLinear();<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; volumeProperty.ShadeOff();<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; volume.SetProperty(volumeProperty);<br>&gt;<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; volumeMapperSoftware.SetInput(imageData);<br>[...]<br><br>Add<br>&nbsp; volumeMapperSoftware.SetVolumeRayCastFunction(new<br>vtkVolumeRayCastCompositeFunction());<br><br>I do not understand why VolumeRayCastFunction is initialized to NULL<br>in vtkVolumeRayCastMapper constructor, rendering will crash unless<br>SetVolumeRayCastFunction is called.<br><br>Denis<br></div></blockquote></td></tr></table><br>