<div dir="ltr">Hi there, <div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 17, 2016 at 8:25 PM, atc1992vtk <span dir="ltr"><<a href="mailto:atc1992vtk@gmail.com" target="_blank">atc1992vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Well as I mention I am using OSX 10.9.5<br>
Graphics : Intel Iris Pro 1536 MB<br>
but I am not sure how to check is Opengl2 or Opengl1 base </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The VTK version I am using is 6.3.0<br></blockquote><div><br></div><div>Since you are using VTK 6.3.0 and unless you change the VTK_BACKEND to OPENGL2 you are using OPENGL1 backend. Would it be possible for you to switch to VTK 7.0? or VTK master. Also, You are not using a GPU which will also affect the performance. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So *vtkProjectedTetrahedraMapper* should be the right filter?<br>
<br>
Here are part of the script i used. The input image is *UnstructuredGrid*<br>
and I map the output to a Actor. But the result was really to *laggy* can't<br>
even rotate the object.<br>
======================================<br>
vtkProjectedTetrahedraMapper volumeMapper = new<br>
vtkProjectedTetrahedraMapper();<br>
vtkVolume volume = new vtkVolume();<br>
vtkVolumeProperty volumeProperty = new vtkVolumeProperty();<br>
volumeProperty.IndependentComponentsOn();<br>
volumeProperty.DisableGradientOpacityOn();<br>
volumeProperty.SetInterpolationType(1);<br>
volumeProperty.SetShade(0);<br>
volumeProperty.SetAmbient(0.5d);<br>
volumeProperty.SetDiffuse(0.4d);<br>
volumeProperty.SetSpecular(0.4d);<br>
volumeMapper.SetInputData(image);<br>
volumeMapper.Update();<br>
======================================<br>
<br>
At the meantime, I got another question.<br>
>From paraview, we can extract color maps into .json file.<br>
Is it possible to import that to my vtk project? What class should I be<br>
using to read them or by changing lookuptable? Need some lead on that too...<br>
thx<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567p5736620.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567p5736620.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div></div>