[vtkusers] Beautiful Rendering

David E DeMarle dave.demarle at kitware.com
Wed May 2 07:29:30 EDT 2018


Some things to try.

Swap out your data with something very simple and predictable like
vthSphereSource to simplify diagnosing the issues.

Compare you setup with the lighting examples in the vtk wiki examples
project.

Try the vtkLightKit instead of the single light you have now.

Turn down the ambient term further.

On Wed, May 2, 2018, 5:46 AM virtual tea kit <paul_geus at hotmail.com> wrote:

> Hi everyone,
>
> I created a surface volume with vtk extract surface and now want to render
> my creation :)
> Unfortunately, I can't get it to work properly and need your help.
>
> I am new to rendering, but this is what I tried.
>
>         actor->GetProperty()->ShadingOn();
>         actor->GetProperty()->SetInterpolationToPhong();
>         actor->GetProperty()->SetAmbient(0.3);
>         actor->GetProperty()->SetDiffuse(0.8);
>         actor->GetProperty()->SetSpecular(0.5);
>
>         renderer_->AddActor(actor);
>
>         vtkSmartPointer<vtkLight> light = vtkSmartPointer<vtkLight>::New();
>         light->SetIntensity(0.75);
>         light->SetFocalPoint(2, 0, 0);
>
> I uploaded two images, one is created within blender and is basically my
> aim. The other is what happens, when I use the code above. Where is my
> mistake?
> Any tutorial would be great as well, thanks :)
>
> My effort for creating a fluid-like body:
> 10miodambreak.png
> <http://vtk.1045678.n5.nabble.com/file/t342366/10miodambreak.png>
>
> What happens, when I use the code:
> 56screenshot.png
> <http://vtk.1045678.n5.nabble.com/file/t342366/56screenshot.png>
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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:
> https://vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180502/e7ab5a8f/attachment.html>


More information about the vtkusers mailing list