[vtkusers] [Java] VTK volume rendering
Aashish Chaudhary
aashish.chaudhary at kitware.com
Wed Feb 17 21:20:05 EST 2016
Hi there,
On Wed, Feb 17, 2016 at 8:25 PM, atc1992vtk <atc1992vtk at gmail.com> wrote:
>
> Well as I mention I am using OSX 10.9.5
> Graphics : Intel Iris Pro 1536 MB
> but I am not sure how to check is Opengl2 or Opengl1 base
The VTK version I am using is 6.3.0
>
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.
> So *vtkProjectedTetrahedraMapper* should be the right filter?
>
> Here are part of the script i used. The input image is *UnstructuredGrid*
> and I map the output to a Actor. But the result was really to *laggy* can't
> even rotate the object.
> ======================================
> vtkProjectedTetrahedraMapper volumeMapper = new
> vtkProjectedTetrahedraMapper();
> vtkVolume volume = new vtkVolume();
> vtkVolumeProperty volumeProperty = new vtkVolumeProperty();
> volumeProperty.IndependentComponentsOn();
> volumeProperty.DisableGradientOpacityOn();
> volumeProperty.SetInterpolationType(1);
> volumeProperty.SetShade(0);
> volumeProperty.SetAmbient(0.5d);
> volumeProperty.SetDiffuse(0.4d);
> volumeProperty.SetSpecular(0.4d);
> volumeMapper.SetInputData(image);
> volumeMapper.Update();
> ======================================
>
> At the meantime, I got another question.
> From paraview, we can extract color maps into .json file.
> Is it possible to import that to my vtk project? What class should I be
> using to read them or by changing lookuptable? Need some lead on that
> too...
> thx
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567p5736620.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
--
*| Aashish Chaudhary | Technical Leader | Kitware Inc. *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160217/8a40f8c4/attachment.html>
More information about the vtkusers
mailing list