[Paraview] Constant coloring of surfaces

Moreland, Kenneth kmorel at sandia.gov
Fri Aug 8 17:30:14 EDT 2008


Well, there is a workaround to get it in the GUI, but, in the words of Henry
Ford, "You can have any color you want, as long as its black."  Change the
color of the surface to black and turn off any specular highlighting; you
won't be able to see any shading.

It's not a good solution, but it has the benefit of being easy.

-Ken


On 8/8/08 1:22 PM, "Berk Geveci" <berk.geveci at kitware.com> wrote:

> Not just from the GUI. You can achieve it using GUI+python:
>
> * Turn off all lights from the Render View Options
> * Turn on Ambient of the representation from python with something like:
>
> v = servermanager.GetRenderView()
> v.Represenations[0].Ambient = 0.5
>
> Of course, I was lazy and picked the first representation of the first
> view. You can get a collection of all views with GetRenderViews() and
> iterate until you find the one you want. Which I just realized is not
> easy because views are not named. I will create a feature request for
> that. Once you have  a view, you get iterate  over its representations
> until you find one that has your source/filter as input. Something
> like:
>
> pm = servermanager.ProxyManager()
> myfilter = pm.GetProxy("sources", "filter name")
> for rep in representations:
>  if rep.Input[0].Proxy == myfilter:
>   rep.Ambient = 0.5
>   break
>
> -berk
>
> On Fri, Aug 8, 2008 at 4:02 AM,  <Thierry.CARRARD at cea.fr> wrote:
>> Hi,
>>
>>
>>
>> Is it possible to render a 3D surface with a constant colour (without any
>> lighting at all) ?
>>
>>
>>
>> Thanks,
>>
>> Thierry
>>
>>
>>
>> ________________________________
>>
>> De : paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] De
>> la part de MirJafar Ali
>> Envoyé : jeudi 7 août 2008 23:38
>> À : paraview at paraview.org
>> Objet : [Paraview] ParaView Crashes with PLY files
>>
>>
>>
>> Hi,
>>
>> Has anybody experienced that paraview immediately crashes with ASCII
>> PLY ?
>>
>> I tried with model bunny.ply from Stanford University.
>>
>> Any help ?
>>
>> MirJafar
>>
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>


   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 845-0833




More information about the ParaView mailing list