[vtkusers] Color becomes dark when an object is rotated

John Platt jcplatt at dsl.pipex.com
Wed Mar 2 13:17:30 EST 2016


Hi,

Have you tried setting the diffuse & specular coefficients of the actor 
property to zero?

      vtkProperty* actorPrpty(myActor->GetProperty());
      actorPrpty->SetAmbient( 1.0 );
      actorPrpty->SetDiffuse( 0.0 );
      actorPrpty->SetSpecular( 0.0 );

John.

On 02/03/2016 17:19, newcfd via vtkusers wrote:
> The color becomes dark when an object is rotated. I would like to keep the
> same color when an object is rotated.
> I tried
>      renderer->TwoSidedLightingOn ()
> and
>      renderer->LightFollowCameraOn()
>
> both did not work. How can I make changes for this. Thanks for your help
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Color-becomes-dark-when-an-object-is-rotated-tp5736973.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
>



More information about the vtkusers mailing list