[Paraview-developers] Lighting in Paraview

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Mar 6 13:46:11 EST 2013


Oops wrong screenshot, image attached.

On Wed, Mar 6, 2013 at 1:44 PM, Utkarsh Ayachit
<utkarsh.ayachit at kitware.com> wrote:
> Look at the attached script. I don't see any lighting other than
> ambient or am I missing something?
>
> On Wed, Mar 6, 2013 at 1:05 AM, the lily <the.1.lily at hotmail.com> wrote:
>> Dear Utkarsh
>>
>> I did that and I got a surface with some lighting but there is a shading
>> effects which is something that you do not
>>
>> get from Ambient lighting you only get it from normals, so is Paraview
>> applying other lighting ?
>>
>> or are these steps gonna give me Ambient lighting only
>>
>>> Date: Tue, 5 Mar 2013 10:01:22 -0500
>>> Subject: Re: [Paraview-developers] Lighting in Paraview
>>> From: utkarsh.ayachit at kitware.com
>>> To: the.1.lily at hotmail.com
>>> CC: paraview-developers at paraview.org
>>
>>>
>>> ParaView uses multiple lights by default. To disable all lights, use
>>> the following:
>>>
>>> RenderView1 = GetRenderView()
>>>
>>> # Turn off "Head Light"
>>> RenderView1.LightSwitch = 0
>>>
>>> # Turn off "Light Kit"
>>> RenderView1.UseLight = 0
>>>
>>> Don't forget to set the ambient factor on your representations of
>>> you'll see nothing.
>>> r = GetDisplayProperties()
>>> r.Ambient = 1.0
>>>
>>>
>>>
>>> On Tue, Mar 5, 2013 at 5:38 AM, the lily <the.1.lily at hotmail.com> wrote:
>>> >
>>> >
>>> > Dear all
>>> >
>>> > I'm trying to understand how is paraview applying the lighting, is it
>>> > using
>>> > more than one lighting resource
>>> >
>>> > I found head lighting, back lighting ...
>>> >
>>> > and how can I disable all different lights (using python scripting) and
>>> > work
>>> > only with a regular ambient light ?
>>> >
>>> > _______________________________________________
>>> > Paraview-developers mailing list
>>> > Paraview-developers at paraview.org
>>> > http://public.kitware.com/mailman/listinfo/paraview-developers
>>> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2013-03-06 13:45:48.png
Type: image/png
Size: 7314 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130306/505599e6/attachment.png>


More information about the Paraview-developers mailing list