Hi Sven,
i am not sure in which scope the possibilties of vtk are accessible from mitk
code and i don't know which documentation you have already discovered while
trying to solve that issue but i think you should take a look into the vtkLight
<https://www.vtk.org/doc/nightly/html/classvtkLight.html> class.
Also? here ?<http://docs.mitk.org/nightly/QVTKRendering.html>is an overview
about the mitk rendering pipeline where the vtkLight is mentioned.
Unfortunately it is not exactly described how to add a vtkLight object, but
maybe its a start and you can check the vtk-API as well.
At least the rendering pipeline should help to get an understanding how vtk
classes are embedded into the mitk context.
Best,
Tobias
________________________________
Von: [email protected] <[email protected]>
Gesendet: Mittwoch, 5. September 2018 17:38
An: [email protected]
Betreff: [mitk-users] Volume Rendering DICOM-Dataset
Hello MITK users,
I am working on a MITK plugin and use the Volume Visualization plugin to render
a 3d DICOM-Dataset in a preprocessing step. After rendering the DICOM-Dataset I
want to change the lightning in the scene using my plugin. The scene should
contain one positonal light only.
My problem is that the lightsource seems to be a nonpositional for the
DICOM-Dataset. To check the light settings I added a vtkPlanesource to the
scene. The result is that the light behaves the way I supposed (influence of
the attenuation value and cone angel are reconizable). In the same scene with
the DICOM-Dataset only changes of the lightning direction lead to a different
lightning. The attenuation value and cone angel have no influence on the
lighning of DICOM-Dataset. I also changed the volume rendering properities of
the datanode containing the DICOM-Datatset and set the ambient lightning to
zero. So when I turn off the light the DICOM-Dataset is completly dark, which
proves that it is the only lightsource in the scene (also reconizable on the
vtkPlanesource where some parts are not lighted).
The question: How is it possible to use positional lighning during the volume
visualization of a DICOM-Dataset?
Thanks for your help!
Sven
?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users